POST
/
eth_unsubscribe
curl --request POST \
  --url https://api.mainnet.abs.xyz/eth_unsubscribe \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_unsubscribe",
  "params": [
    "0x9cef478923ff08bf67fde6c64013158d"
  ],
  "id": 1
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:eth_unsubscribe
required

The method to call

id
integer
required

Request identifier

Example:

1

params
string[]

Parameters for unsubscribing

The ID of the subscription to cancel

Example:
["0x9cef478923ff08bf67fde6c64013158d"]

Response

200 - application/json
Boolean indicating if the subscription was successfully cancelled
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
boolean

Success status

Example:

true