⚡ Heavy Workload? We Offer Higher Rate Limits to Accelerate Your dApp Performance

bg pattern bg pattern xs
/

Nervos Network (CKB)

ckb

Nervos Network (CKB)

Method: POST verify_transaction_proof

dropdown
POST

verify_transaction_proof

Verifies that a proof points to transactions in a block, returning the transaction hashes it commits to.

Parameters

transaction_proof - transaction proof object

proof generated by get_transaction_proof.

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": "verify_transaction_proof",
"params": [{"block_hash": "0xe8038094a1e2c82c45401e2089ec28f0f99b0b71eb385307e4f3c3a54c643294", "proof": {"indices": ["0x5", "0x4", "0x3"], "lemmas": ["0xa01e11c5dd8c0b89eaa3f4f6340aa212dc24b7f5530dcfbe0b1c34400ef91947"]}, "witnesses_root": "0xa34817edae01ed9c44d25822a0cc998de2348558f79dc2c78ec113e775c98302"}],
"id": "getblock.io"}'


Response

{
    "jsonrpc": "2.0",
    "id": "getblock.io",
    "result": [
        "0x6676e2b8d46b4f89cb686c46b574ef758e255e7e88f2c16b7179f5019f0c94c6",
        "0x66efb1d569ca38f5f505edaef3032d8c1727d2481638585806e6de497bc868d7",
        "0xe8a106be755bdb9fa0b452297edb5785f6d901f8a3b5f74044ab2f5d8cfb0ed1"
    ],
}