On-chain Operations
Replace a Transaction
Replace a submitted transaction on a supported chain, if it doesn’t already have an active replacement.
Request example
Response example
POST
/api/external/transactions/replace_transaction/
Replacement is accepted only for a SUBMITTED transaction on a chain that supports replacement and when no active replacement already exists.
Request body
Response
Returns the replacement Transaction. Itsstatus is the lifecycle source of truth.
Transaction ID. Use it with Retrieve Transaction to track status.
Lifecycle status. Track it until
COMPLETED, FAILED, or DECLINED. See TransactionStatus.See TransactionType.
For example
TRANSFER or CONTRACT_CALL. See TransactionCategory.Where the funds come from. Which fields are present depends on
type. See TransferPartyData.Where the funds go. Same fields as
source. See TransferPartyData.Approve the transaction
New transactions returnstatus: "PENDING" and wait for approval. Get the approval message for the transaction id, sign it with your API user’s key, then submit the approval. See Approvals.
With the SDK, call approveChangeRequest({ entityId: transaction.id, action: "approve" }) after this call.
Request example
Response example