Skip to main content
POST
Recover Transaction
Endpoint: POST https://api.rebelfi.io/v1/transactions/:operationId/recover
Recover a transaction that was broadcast to the blockchain but not properly submitted to RebelFi. Use this when you broadcast a signed transaction but forgot to call submit-hash, or if the submit-hash call failed.

Path Parameters

ParameterTypeRequiredDescription
operationIdnumberYesOperation ID the transaction belongs to

Request Body

FieldTypeRequiredDescription
txHashstringYesOn-chain transaction hash that was broadcast
transactionIdnumberNoTarget transaction ID. If omitted, matches the first unsigned transaction.

Example Request

Example Response

Errors

CodeDescription
OPERATION_NOT_FOUNDOperation ID doesn’t exist
TRANSACTION_NOT_FOUNDNo matching transaction found in the operation
INVALID_OPERATION_STATUSOperation is not in a recoverable state
Recovery is useful when your application crashes after broadcasting but before calling submit-hash. The transaction is already on-chain — recovery links it back to the operation so RebelFi can track confirmation.