Skip to main content

TransactionsAPI

Access via client.transactions.

submitHash

Submit transaction hash after external broadcast. RebelFi records it only if it is the transaction planned for the operation (otherwise TRANSACTION_MISMATCH). Never refused for the signing deadline: it is accepted on EXPIRED and CANCELLED operations too, which become CONFIRMED when their planned transaction lands late.

submitSigned

Submit signed transaction for RebelFi to broadcast. Checked before anything is broadcast: past expiresAt is OPERATION_EXPIRED; a transaction that isn’t one planned for the operation is TRANSACTION_MISMATCH.
Retrying: the same signed bytes may be resubmitted safely; once recorded, the reply is the same and nothing is broadcast again. A different signature while one is in flight is a 409 OPERATION_ALREADY_SUBMITTED (details: { operationId, transactionId }). A failed broadcast is a 400 OPERATION_ALREADY_SUBMITTED with details: SubmitSignedFailureDetails:
A 503 INTERNAL_ERROR means the transaction could not be checked against the plan right now; nothing was broadcast. Retry the same signed transaction.

get

Get transaction status.

recover (deprecated)

Deprecated in 1.4.5: use submitHash({ operationId, txHash, transactionId }). recover is now an alias of submitHash (same checks, same record) and is removed in 2.0.0.
Recover a transaction that was broadcast but not submitted to RebelFi.

TransactionStatusResponse