request(
"POST",
"/v1/custody/mpc/babylon/drop_staking/",
{
"request_id": "1717059604245",
"related_request_id": "1717059601673",
"fee_rate": 9.5,
"max_staking_fee": 2000
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/mpc/babylon/drop_staking/', {
"request_id": "1717059604245",
"related_request_id": "1717059601673",
"fee_rate": 9.5,
"max_staking_fee": 2000
}, api_key, api_secret, host)
.then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("POST", "/v1/custody/mpc/babylon/drop_staking/", map[string]string{
"request_id": "1717059604245",
"related_request_id": "1717059601673",
"fee_rate": 9.5,
"max_staking_fee": 2000
})
{
"success": true,
"result": ""
}
Babylon Staking
Babylon Drop Staking
This endpoint specify the pre-signed staking transaction, create a new transaction to drop the corresponding transaction, accepting parameters such as request_id, related_request_id, fee_rate, and max_staking_fee.
POST
/
v1
/
custody
/
mpc
/
babylon
/
drop_staking
/
request(
"POST",
"/v1/custody/mpc/babylon/drop_staking/",
{
"request_id": "1717059604245",
"related_request_id": "1717059601673",
"fee_rate": 9.5,
"max_staking_fee": 2000
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/mpc/babylon/drop_staking/', {
"request_id": "1717059604245",
"related_request_id": "1717059601673",
"fee_rate": 9.5,
"max_staking_fee": 2000
}, api_key, api_secret, host)
.then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("POST", "/v1/custody/mpc/babylon/drop_staking/", map[string]string{
"request_id": "1717059604245",
"related_request_id": "1717059601673",
"fee_rate": 9.5,
"max_staking_fee": 2000
})
{
"success": true,
"result": ""
}
Request
String
required
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)
String
required
request ID of the transaction to be dropped
Only transactions with the status 100 and 200 are eligible to be dropped.
Float
required
transaction fees per byte
Int
maximum fee for constructing the transaction. If the actual fee exceeds this limit, the creation will fail. The default is None.
Response
bool
request successful or failed
String
""
request(
"POST",
"/v1/custody/mpc/babylon/drop_staking/",
{
"request_id": "1717059604245",
"related_request_id": "1717059601673",
"fee_rate": 9.5,
"max_staking_fee": 2000
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/mpc/babylon/drop_staking/', {
"request_id": "1717059604245",
"related_request_id": "1717059601673",
"fee_rate": 9.5,
"max_staking_fee": 2000
}, api_key, api_secret, host)
.then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("POST", "/v1/custody/mpc/babylon/drop_staking/", map[string]string{
"request_id": "1717059604245",
"related_request_id": "1717059601673",
"fee_rate": 9.5,
"max_staking_fee": 2000
})
{
"success": true,
"result": ""
}
