FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Other
TEXT MESSAGE
0/300
⚡ Test Our Private Nodes of 40+ Blockchains just for $50!
Method: 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.
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".
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"}'
{ "result": "null", "id": "getblock.io", "status_code": 405, "message": "Method not allowed" }