Skip to main content
POST
/
v1
/
custody
/
mpc
/
babylon
/
prepare_staking
/
request(
    "POST",
    "/v1/custody/mpc/babylon/prepare_staking/",
    {
        "request_id": "1717059604245",
        "stake_info": '{"asset_coin": "SIGNET_BTC", "stake_address": "tb1pg4n40etj6qf8c7zj0lzfswaey58f30ps4d9fnezwj5m7fc62w2pqgp0fxm", "amount": 50000, "stake_block_time": 64000, "finality_provider": "88b32b005d5b7e29e6f82998aff023bff7b600c6a1a74ffac984b3aa0579b384"}',
        "fee_rate": 7.5,
        "max_staking_fee": 2000
    },
    api_key, api_secret, host
)
{
  "success": true,
  "result": ""
}

Request

request_id
String
required
transaction request 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)
stake_info
String
required
detailed information for constructing a staking transaction in JSON format
  • asset_coin: string, code of the staking token
  • stake_address: string, staking address
  • amount: int, staking amount
  • stake_block_time: int, number of staking blocks, which starts counting after the transaction is on the chain
  • finality_provider: string, pubkey hex of the provider to be used for staking. The default is None, which uses the provider pubkey hex managed by Cobo
Sample
'{"asset_coin": "SIGNET_BTC", "stake_address": "tb1pg4n40etj6qf8c7zj0lzfswaey58f30ps4d9fnezwj5m7fc62w2pqgp0fxm", "amount": 50000, "stake_block_time": 64000, "finality_provider": "88b32b005d5b7e29e6f82998aff023bff7b600c6a1a74ffac984b3aa0579b384"}'
fee_rate
Float
required
transaction fees per byte
max_staking_fee
Int
maximum fee for constructing the transaction. If the actual fee exceeds this limit, the creation will fail. The default is None.

Response

success
bool
request successful or failed
result
String
""
request(
    "POST",
    "/v1/custody/mpc/babylon/prepare_staking/",
    {
        "request_id": "1717059604245",
        "stake_info": '{"asset_coin": "SIGNET_BTC", "stake_address": "tb1pg4n40etj6qf8c7zj0lzfswaey58f30ps4d9fnezwj5m7fc62w2pqgp0fxm", "amount": 50000, "stake_block_time": 64000, "finality_provider": "88b32b005d5b7e29e6f82998aff023bff7b600c6a1a74ffac984b3aa0579b384"}',
        "fee_rate": 7.5,
        "max_staking_fee": 2000
    },
    api_key, api_secret, host
)
{
  "success": true,
  "result": ""
}

Feel free to share your feedback to improve our documentation!