Returns an array of all logs matching a given filter object.
Parameters
Object - The filter options which include below fields:
Field | Type | Description |
---|---|---|
fromBlock | QUANTITY|TAG | (optional, default: "latest") Integer block number, or "latest" for the last mined block |
toBlock | QUANTITY|TAG | (optional, default: "latest") Integer block number, or "latest" for the last mined block |
address | DATA|Array, 20 Bytes | (optional) Contract address or a list of addresses from which logs should originate. |
topics | Array of DATA | (optional) Array of 32 Bytes DATA topics. Topics are order-dependent. Each topic can also be an array of DATA with "or" options. |
blockhash | DATA, 32 Bytes | optional, Block hash |
Returns
See eth_getFilterChanges.
Example
curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
"jsonrpc": "2.0",
"method": "eth_uninstallFilter",
"params": [
"0xc11a84d5e906ecb9f5c1eb65ee940b154ad37dce8f5ac29c80764508b901d996"
],
"id": 71
}'
Result
{
"jsonrpc": "2.0",
"id": 71,
"result": true
}