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

coins coins coins coins
/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST calculate_dao_maximum_withdraw

dropdown

# calculate_dao_maximum_withdraw example for Nervos Network (CKB)

POST calculate_dao_maximum_withdraw

Method not allowed

Calculates the maximum withdrawal one can get, given a referenced DAO cell, and a withdrawing block hash.

Parameters

out_point - outPoint object

Reference to the DAO cell, the depositing transaction’s output.
- 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.

kind - DaoWithdrawingCalculationKind

Two kinds of dao withdrawal amount calculation option. DaoWithdrawingCalculationKind is equivalent to "withdrawing_header_hash" or "withdrawing_out_point".

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


Response

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