EVM RPC API
eth_getFilterChanges
Returns an array of objects of type Log
an array of block hashes (for eth_newBlockFilter) or an array of transaction hashes (for eth_newPendingTransactionFilter) or an empty array if nothing has changed since the last poll.
Note
In solidity: The first topic is the hash of the signature of the event (if you have not declared the event anonymous.
Parameters
QUANTITY
- The filter id
Returns
Object
- An object of type FilterLog is defined asremoved
:BOOLEAN
- true when the log was removed, due to a chain reorganization. false if its a valid loglogIndex
:QUANTITY
- Integer of the log index position in the block. null when its pending logtransactionIndex
:QUANTITY
- Integer of the transactions index position log was created from. null when its pending logtransactionHash
:DATA
, 32 Bytes - hash of the transactions this log was created from. null when its pending logblockHash
:DATA
, 32 Bytes - hash of the block where this log was in. null when its pending. null when its pending logblockNumber
:QUANTITY
- The block number where this log was in. null when its pending. null when its pending logaddress
:DATA
, 20 Bytes - address from which this log originateddata
:DATA
- contains one or more 32 Bytes non-indexed arguments of the logtopics
:Array of DATA
- Array of 0 to 4 32 Bytes DATA of indexed log arguments.
POST
https://{network}.s.chainbase.online/v1
/
{api-key}
Path Parameters
api-key
string
requiredBody
application/json
id
integer
default: 1requiredjsonrpc
string
default: 2.0requiredmethod
string
default: eth_getFilterChangesrequiredparams
any[]
requiredResponse
200 - application/json
id
integer
requiredjsonrpc
string
requiredresult
required