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

coins coins coins coins

Nervos Network (CKB)

Nervos Network (CKB)

Method: POST notify_transaction


# notify_transaction example for Nervos Network (CKB)

POST notify_transaction

Method not allowed

Add transaction to tx-pool.


transaction - transaction object

specified transaction to add in format:
- version - (32-bit unsigned integer) Reserved for future usage. It must equal 0 in current version.
- cell_deps - array of cell deps in format:
- out_point - Reference to the cell in format:
- tx_hash - (h256) Transaction hash in which the cell is an output.
- index - (uint32) The output index of the cell in the transaction specified by tx_hash.
- dep_type - Dependency type in format, either "code" or "dep_group".
- header_deps - (array of h256) An array of header deps.
- inputs - array of input cells in format:
- since - (uint64) Restrict when the transaction can be committed into the chain.
- previous_output - (OutPoint) Reference to the input cell.
- outputs - array of output cells in format:
- capacity - (64-bit unsigned integer) the cell capacity
- lock - the lock script
- type_ - the optional type script
- outputs_data - (array of jsonBytes) output cells data
- witnesses - (array of jsonBytes) - an array of variable-length binaries.


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": "notify_transaction",
"params": [null],
"id": "getblock.io"}'


    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"