You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no universal solution to see activity of an address. Today, one way is to listen and look block logs activity but they are not covering all cases, some are not emitting events. in addition to subscribe to nonce, balance, code update, this method tries to watch all account activity by looking at the KECCAK256 and SSTORE level.
Websocket specification
Parameters:
accountUpdate
object
2.a. nonce (optional): boolean to subscribe to nonce update
2.b. balance (optional): boolean to subscribe to balance update
2.c. code (optional): boolean to subscribe to code update
2.d. storageSlots (optional): list of storage slots update (SSTORE)
2.f. preKeccak256StorageKey (optional): list of keccak256 input used as storage key
List of addresses to watch. If null, watch all changes (optional)
{
"jsonrpc": "2.0",
"method": "eth_subscribe",
"params": [
"accountUpdate",
{
"nonce": true, // optional"balance": true, // optional"code": true, // optional"storageSlots": [
"..."// storage slots - optional
],
"preKeccak256StorageKey": [
"..."// list of addresses used in a keccak256 for an SSTORE - optional
],
},
[...] // list of smart contract/EOA addresses - optional
],
"id": 1
}
>>>
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x9ce59a13059e417087c02d3236a0b1cc"
}
Notification Response:
subscription id
result
blockHash: 32 bytes. Hash of the block including this transaction
blockNumber: Block number including this transaction.
transactionHash: 32 bytes. The hash of the transaction.
OR
nonceUpdate
balanceUpdate
codeUpdate
storageUpdate object:
account address: list of accounts with update
storageKey list of storage key with update
preKeccak256StorageKey Input of the Keccak256 used for the storage
object
1.a. nonce (optional): boolean to subscribe to nonce update
1.b. balance (optional): boolean to subscribe to balance update
1.c. code (optional): boolean to subscribe to code update
1.d. storageSlots (optional): list of storage slots update (SSTORE)
1.f. preKeccak256StorageKey (optional): list of keccak256 input used as storage key
List of addresses to watch. If null, watch all changes (optional)
{
"jsonrpc": "2.0",
"method": "eth_newStorageUpdateFilter",
"params": [
{
"nonce": true, // optional"balance": true, // optional"code": true, // optional"storageSlots": [
"..."// storage slots - optional
],
"preKeccak256StorageKey": [
"..."// list of addresses used in a keccak256 for an SSTORE - optional
],
},
[...] // list of smart contract/EOA addresses - optional
],
"id": 1
}
>>>
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x9ce59a13059e417087c02d3236a0b1cc"
}
Motivation
There is no universal solution to see activity of an address. Today, one way is to listen and look block logs activity but they are not covering all cases, some are not emitting events. in addition to subscribe to nonce, balance, code update, this method tries to watch all account activity by looking at the KECCAK256 and SSTORE level.
Websocket specification
Parameters:
accountUpdate
object
2.a.
nonce
(optional): boolean to subscribe to nonce update2.b.
balance
(optional): boolean to subscribe to balance update2.c.
code
(optional): boolean to subscribe to code update2.d.
storageSlots
(optional): list of storage slots update (SSTORE)2.f.
preKeccak256StorageKey
(optional): list of keccak256 input used as storage keyNotification Response:
subscription id
result
blockHash
: 32 bytes. Hash of the block including this transactionblockNumber
: Block number including this transaction.transactionHash
: 32 bytes. The hash of the transaction.nonceUpdate
balanceUpdate
codeUpdate
storageUpdate
object:account address
: list of accounts with updatestorageKey
list of storage key with updatepreKeccak256StorageKey
Input of the Keccak256 used for the storagevalue
new value of the storage keyHTTP filter subscription specification
Parameters:
object
1.a.
nonce
(optional): boolean to subscribe to nonce update1.b.
balance
(optional): boolean to subscribe to balance update1.c.
code
(optional): boolean to subscribe to code update1.d.
storageSlots
(optional): list of storage slots update (SSTORE)1.f.
preKeccak256StorageKey
(optional): list of keccak256 input used as storage keyeth_getFilterChanges response:
The text was updated successfully, but these errors were encountered: