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

coins coins coins coins
/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST generate_block

dropdown

# generate_block example for Nervos Network (CKB)

POST generate_block

Method not allowed

Generate block with block_assembler_config, process the block(with verification) and broadcast the block.

Parameters

block_assembler_script - script object | null

specified block assembler script

block_assembler_message - jsonBytes | null

specified block assembler message

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


Response

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