eth_newFilter
Creates a filter object to notify when logs that match specific criteria are added to the blockchain
Request
Examples
curl https://rpc.xone.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_newFilter","params":[{"fromBlock": "0xe20360", "toBlock": "0xe20411", "address": "0x6b175474e89094c44da98b954eedeac495271d0f","topics": []}],"id":1}'
'Response
200 OK
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
}Request params
| Name | Type | Description | 
|---|---|---|
| id | integer | Request identifier | 
| jsonrpc | string | JSON-RPC version | 
| method | string | API method name | 
| Parameters | array of objects | |
| blockHash | string | Specifies the block hash to filter logs from. If this parameter is set, the fromBlock and toBlock parameters will be ignored. | 
| address | array_of_strings | (optional) Contract address or a list of addresses from which logs should originate. | 
| fromBlock | string | (optional) The starting block for the filter. | 
| toBlock | string | (optional) The ending block for the filter | 
| topics | array_of_strings | (optional) An array of log topics. | 
Response
200
The ID of the newly created filter, represented as a hexadecimal string. | Name | Type | Description | 
|---|---|---|
| Parameters | object | |
| id | integer | |
| jsonrpc | string | |
| result | array_of_objects |