⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
/

Nervos Network (CKB)

ckb

Nervos Network (CKB)

Method: POST subscribe

dropdown
POST

subscribe

Subscribes to a topic.

Parameters

topic - string

Subscription topic (enum: new_tip_header | new_tip_block | new_transaction | proposed_transaction | rejected_transaction)

Request

curl --location --request POST 'https://ckb.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "subscribe",
"params": ["new_tip_header"],
"id": "getblock.io"}'


Response

{
  "id": "getblock.io,
  "jsonrpc": "2.0",
  "result": "0x2a"
}