📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

/

Nervos Network (CKB)

ckb
Nervos Network (CKB)

Method: POST calculate_dao_maximum_withdraw

dropdown

方法 RPC calculate_dao_maximum_withdraw 例如 Nervos Network (CKB)

POST calculate_dao_maximum_withdraw

Method not allowed

计算最大提款可以得到,给定一个引用的DAO单元和一个提取块哈希。

Parameters

out_point - Outpoint对象

参考DAO单元,即存款交易的输出。 -TX_HASH-(H256)单元格是输出的事务哈希。 - 索引 - (UINT32)TX_HASH指定的事务中单元格的输出索引。

kind - daowithDrawingCalculationKind

两种DAO撤回金额计算选项。 daowithDrawingCalculationKind等于“ futting_header_hash”或“ forting_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"
}