state_subscribestorage bittensor
Parameters
Parameter
Type
Required
Description
Request Example
# WebSocket-only method. Use wscat (or similar) to connect first:
wscat -c 'wss://go.getblock.io/<ACCESS-TOKEN>/'
# Then send:
{"jsonrpc": "2.0", "method": "state_subscribeStorage", "params": [["0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9"]], "id": "getblock.io"}import WebSocket from 'ws';
const ws = new WebSocket('wss://go.getblock.io/<ACCESS-TOKEN>/');
ws.on('open', () => {
ws.send(JSON.stringify({
"jsonrpc": "2.0",
"method": "state_subscribeStorage",
"params": [
[
"0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9"
]
],
"id": "getblock.io"
}));
});
ws.on('message', (data) => {
console.log(JSON.parse(data.toString()));
});Response Example
{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": "F4dG5hI6jK7lM8nO9pQ0r"
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
Status Code
Error Message
Cause
SDK Integration
Was this helpful?