Request
transaction ID (unique identifier of a transaction request, which must correspond to a client’s transaction; UUID should be used and the length should be equal to or less than 120 characters)
transaction fees per byte
maximum fee for constructing the transaction. If the actual fee exceeds this limit, the creation will fail. The default is None.
request ID of the staking transaction to be withdrawn
Please note that only staking transactions with status 520 are eligible to be withdrawn.
request ID of the unbonding transaction
Please note that the staking_request_id and unbonding_request_id parameters are mutually exclusive. If the staking transaction has naturally expired, please provide the staking_request_id parameter. If the staking transaction has been successfully unbonded, please provide the unbonding_request_id parameter.
Response
request successful or failed
request(
"POST",
"/v1/custody/mpc/babylon/withdraw/",
{
"request_id": "1717059604245",
"fee_rate": 9.5,
"max_staking_fee": 2000,
"unbonding_request_id": "1717059601673",
},
api_key, api_secret, host
)
{
"success": true,
"result": ""
}