Withdraw
Speedup Transaction
This endpoint allows users to speed up a previously submitted transaction by replacing it with a new transaction with higher transation fee. The endpoint accepts a POST request with parameters including cobo_id, request_id, fee, gas_price, gas_limit, and fee_amount. The response is a JSON object containing the updated transaction information.
POST
/
v1
/
custody
/
mpc
/
speedup_transaction
/
Only transactions with the status 401, 402, and 403 are eligible to be replaced.
Request
cobo_id
String
requiredUnique transaction ID
request_id
String
requiredRBF 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)
fee
Float
Transaction fees per byte; must be higher than the original transaction fees; applicable to the UTXO model
gas_price
Int
The gas price for the new transaction(must be higher than the original gas price)
gas_limit
Int
The gas limit for the new transaction.
fee_amount
Int
transaction fee; applicable to UTXO model; use either fee or fee_amount for UTXO model.
auto_fuel
Int
How the transaction utilizes the gas station, 0: no refueling(default); 1: passive use of the gas station; 2: active use of the gas station.
This parameter is used when you’ve activated the gas station service and use the gas station to support the transaction fee for MPC transactions.
This parameter is used when you’ve activated the gas station service and use the gas station to support the transaction fee for MPC transactions.
The gas station will definitely refuel for the transaction when in active use, while for passive use, refueling by the gas station occurs only when the address balance is insufficient for transaction fees.
extra_parameters
String
UTXO Model:
- utxo_from_address: Given that the new transaction fee is higher, if the new transaction requires additional inputs, then the new inputs will be selected from
utxo_from_address
. Please note that the new inputs will be selected from the current wallet if this parameter is not provided.
Sample
extra_parameters: '{"utxo_from_address": "tb1qpllcnnpt3z9nkxtj3a0jmhdj5xvxaerhv5xs5n"}'
Response
success
bool
request successful or failed
result
object