New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

1 min read

Method eth_subscribe Gnosis Chain (GNO)
connect with JSON-RPC protocol



Subscribes to a specified event type, optionally restricted to one ormany objects. This method is available via websocket only.


type - string

A subscription type, such as newHeads (new headers appended to the chain, including chain reorganizations), logs (logs that are included in new imported blocks and match the given filter criteria) or newPendingTransactions (hashes for all transactions that are added to the pending state and are signed with a key that is available in the node).

objects - hex string

Optional argumants such as an address, multiple addresses, and topics.


curl --location --request POST '' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_subscribe",
"params": ["newHeads", null],
"id": ""}'


    "error": {
        "code": -32600,
        "message": "eth_subscribe found for the url '' but is disabled for Https"
    "id": "",
    "jsonrpc": "2.0"
banner icon

Start Building with GetBlock RPCs for Free