Skip to main content

Transaction Result Codes

These are Result Codes that communicate success (200) or failure (400) at the transaction level: bad sequence numbers, insufficient balances, insufficient fees, etc.

  • RESULT CODESTELLAR PROTOCOL CODE

    DESCRIPTION

  • tx_successtxSUCCESS

    The transaction succeeded.

  • tx_failedtxFAILED

    One of the operations failed (none were applied).

  • tx_too_earlytxTOO_EARLY

    The ledger closeTime was before the minTime.

  • tx_too_latetxTOO_LATE

    The ledger closeTime was after the maxTime.

  • tx_missing_operationtxMISSING_OPERATION

    No operation was specified

  • tx_bad_seqtxBAD_SEQ

    sequence number does not match source account

  • tx_bad_authtxBAD_AUTH

    too few valid signatures / wrong network

  • tx_insufficient_balancetxINSUFFICIENT_BALANCE

    fee would bring account below reserve

  • tx_no_source_accounttxNO_ACCOUNT

    source account not found

  • tx_insufficient_feetxINSUFFICIENT_FEE

    fee is too small

  • tx_bad_auth_extratxBAD_AUTH_EXTRA

    unused signatures attached to transaction

  • tx_internal_errortxINTERNAL_ERROR

    an unknown error occured

  • Example Response for a 'tx_bad_seq' Result Code
    {
    "type": "https://stellar.org/horizon-errors/transaction_failed",
    "title": "Transaction Failed",
    "status": 400,
    "detail": "The transaction failed when submitted to the stellar network. The `extras.result_codes` field on this response contains further details. Descriptions of each code can be found at: https://www.stellar.org/developers/learn/concepts/list-of-operations.html",
    "extras": {
    "envelope_xdr": "AAAAANPRjCD1iCti3hovsrrz6aSAjmp263grVr6+mI3SQSkcAAAAZAAPRLgAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAArki/TnIipBc7Y+Hd87mnZdtBxzm7vu6iXpwcRz6zGskAAAAAAAAAAAAHoSAAAAAAAAAAAdJBKRwAAABANWeKuRYFmBm1lrMQqMvhbSouwL270SnxcTtv1XI4Y+uVe4yw4Jq7/43EoxwLbRh/pC3V4WfOZRzDqwsTyEztAA==",
    "result_codes": {
    "transaction": "tx_bad_seq"
    },
    "result_xdr": "AAAAAAAAAAD////7AAAAAA=="
    }
    }