Skip to main content
POST
Submit Signed
Endpoint: POST https://api.rebelfi.io/v1/transactions/submit-signed
Submit a signed transaction for RebelFi to broadcast. Use this when you want RebelFi to handle broadcasting. RebelFi broadcasts only for an operation still waiting for a signature (AWAITING_SIGNATURE, or SUBMITTED with a transaction still to sign), before its expiresAt. Every check runs before anything is broadcast:
  • Past the operation’s signing deadline (expiresAt): OPERATION_EXPIRED. If an earlier submit returned resubmitSameTransaction: true, or you reported a hash, the operation stays live until RebelFi sees whether that transaction landed: poll Get Operation until it leaves AWAITING_SIGNATURE before planning again (a plan meanwhile gets OPERATION_IN_PROGRESS). If it becomes SUBMITTED or CONFIRMED, the transaction landed and there is nothing to plan again.
  • The operation is not waiting for a signature (for example, CANCELLED, including a supply cancelled because its client account was suspended): VALIDATION_FAILED.
  • The signed transaction is not one RebelFi planned for this operation: TRANSACTION_MISMATCH. RebelFi compares what it does with the plan: on EVM the chain, sender, contract (to), call data and value (nonce and gas may differ); on Solana the wallet’s signature and the instructions (compute budget and fee payer may differ). For an EVM approve and supply, RebelFi works out which of the two you sent.
Don’t broadcast a cancelled or expired operation’s transaction yourself either. If one lands anyway, report its hash with Submit Hash: RebelFi records it and the operation becomes CONFIRMED.

Request Body

The transaction hash is computed from signedTransaction; a txHash field (sent by SDKs before 1.4.5) is ignored. There is no transactionId: RebelFi recognizes which of the operation’s transactions you signed.

Example Request

Example Response

202 Accepted
id is the operation’s transaction the signed transaction was recorded for.

Retrying safely

RebelFi sends one signed transaction per planned transaction, so one plan can never land twice (on EVM, a re-signed transaction at the next nonce would otherwise be a second supply).
  • The same signed bytes can be resubmitted safely. Once RebelFi has recorded them, a resubmission is answered with the same 202 and nothing is broadcast again, whatever the operation’s status (a retry after a lost reply). Before that, sending the same transaction again is harmless and is also a 202.
  • A different signature of the same transaction while the first one is being broadcast or may still land is refused with 409 OPERATION_ALREADY_SUBMITTED. Nothing is broadcast. Resubmit the first signed transaction, or check the operation’s status, before signing again.
  • A failed broadcast is 400 OPERATION_ALREADY_SUBMITTED. Read details.resubmitSameTransaction:
    • false: the node refused the transaction before accepting it (for example, not enough gas, or an expired Solana blockhash). Nothing is on its way. Fetch fresh unsigned transactions and sign again.
    • true: the transaction may have reached the network (no answer, a gateway error, or the node already knows it). Resubmit the same signed transaction; do not sign again. A different signature is refused with 409 until the first one lands or the operation passes its expiresAt.
  • If the plan cannot be checked right now, the reply is 503 INTERNAL_ERROR and nothing was broadcast. Retry the same signed transaction shortly.

Errors