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

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
Parametersarray of objects 
blockHashstring Specifies the block hash to filter logs from. If this parameter is set, the fromBlock and toBlock parameters will be ignored.
addressarray_of_strings (optional) Contract address or a list of addresses from which logs should originate.
fromBlockstring (optional) The starting block for the filter.
toBlockstring(optional) The ending block for the filter
topicsarray_of_strings (optional) An array of log topics.

Response

200
The ID of the newly created filter, represented as a hexadecimal string.
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultarray_of_objects