Check out our new component library - build.abs.xyz!
cURL
curl --request POST \ --url https://api.mainnet.abs.xyz/eth_subscribe \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "method": "eth_subscribe", "params": [ "newHeads" ], "id": 1 }'
{ "jsonrpc": "2.0", "id": 1, "result": "0x9cef478923ff08bf67fde6c64013158d" }
Creates a new subscription for events.
JSON-RPC version
The method to call
Request identifier
1
Parameters for the subscription
Show child attributes
["newHeads"]
A subscription ID used to identify and manage the subscription
"2.0"
Subscription ID
"0x9cef478923ff08bf67fde6c64013158d"
Was this page helpful?