curl --request POST \
--url https://api.mainnet.abs.xyz/eth_newBlockFilter \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_newBlockFilter",
"params": []
}'
{
"jsonrpc": "2.0",
"result": "0xb415d4b0e6ca750802be8c84c99a68170deeb9ed09c4e2eb0dc5299ab715e978",
"id": 1
}
Creates a filter to notify when a new block arrives
curl --request POST \
--url https://api.mainnet.abs.xyz/eth_newBlockFilter \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_newBlockFilter",
"params": []
}'
{
"jsonrpc": "2.0",
"result": "0xb415d4b0e6ca750802be8c84c99a68170deeb9ed09c4e2eb0dc5299ab715e978",
"id": 1
}
Returns the filter ID
The response is of type object
.
Was this page helpful?