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.
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"
}
A subscription ID used to identify and manage the subscription
The response is of type object
.
Was this page helpful?