Filter Methods
hmy_getFilterLogs
Returns an array of all logs matching filter with given id.
Method: POST
https://one.nownodes.io
Example body (raw)
{
"jsonrpc": "2.0",
"method": "hmy_getFilterLogs",
"params": [
"0x16"
],
"id": 74
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 74,
"error": {
"code": -32000,
"message": "filter not found"
}
}
hmy_newFilter
Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call hmy_getFilterChanges
Method: POST
https://one.nownodes.io
Example body (raw)
{
"jsonrpc": "2.0",
"method": "hmy_newFilter",
"params": [
{
"topics": [
"0x0000000000000000000000000000000000000000000000000000000012341234"
]
}
],
"id": 73
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 73,
"result": "0x92b65d6ba7d6a463334f99c5239ec027"
}
hmy_newPendingTransactionFilter
Method: POST
https://one.nownodes.io
Example body (raw)
{
"jsonrpc": "2.0",
"method": "eth_newPendingTransactionFilter",
"params": [],
"id": 73
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 73,
"result": "0x8f40a9a79853dd949e18c9c52dfdb42d"
}
hmy_newBlockFilter
Method: POST
https://one.nownodes.io
Example body (raw)
{
"jsonrpc": "2.0",
"method": "eth_newBlockFilter",
"params": [],
"id": 73
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 73,
"result": "0x328be7f207b25d3c806e97f9513dd6ca"
}
hmy_getFilterChanges
Method: POST
https://one.nownodes.io
Example body (raw)
{
"jsonrpc": "2.0",
"method": "hmy_getFilterChanges",
"params": [
"0x16"
],
"id": 73
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 73,
"error": {
"code": -32000,
"message": "filter not found"
}
}
hmy_getLogs
Get harmony logs for smart contracts or transactions
Method: POST
https://one.nownodes.io
Example body (raw)
{
"jsonrpc": "2.0",
"method": "hmy_getLogs",
"params": [
{
"topics": [
"0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
]
}
],
"id": 74
}
Example response: 200
{
"jsonrpc": "2.0",
"id": 74,
"result": []
}
Last updated