eth_getLogs

Returns an array of all logs matching a given filter object.

Parameters
Object - The filter options which include below fields:

FieldTypeDescription
fromBlockQUANTITY|TAG(optional, default: "latest") Integer block number, or "latest" for the last mined block
toBlockQUANTITY|TAG(optional, default: "latest") Integer block number, or "latest" for the last mined block
addressDATA|Array, 20 Bytes(optional) Contract address or a list of addresses from which logs should originate.
topicsArray 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.
blockhashDATA, 32 Bytesoptional, 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
}