Skip to main content

Operation Result Codes

These are Result Codes that communicate success (200) or failure (400) at the operation level: no source account, too many subentries, etc.

  • RESULT CODESTELLAR PROTOCOL CODE

    DESCRIPTION

  • op_inneropINNER

    The inner object result is valid and the operation was a success.

  • op_bad_authopBAD_AUTH

    There are too few valid signatures, or the transaction was submitted to the wrong network.

  • op_no_source_accountopNO_ACCOUNT

    The source account was not found.

  • op_not_supportedopNOT_SUPPORTED

    The operation is not supported at this time.

  • op_too_many_subentriesopTOO_MANY_SUBENTRIES

    Max number of subentries (1000) already reached

  • op_exceeded_work_limitopEXCEEDED_WORK_LIMIT

    Operation did too much work

  • Example Response for an 'op_no_source_account' 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+mI3SQSkcAAAAZAAPRLgAAAADAAAAAAAAAAAAAAABAAAAAQAAAACuSL9OciKkFztj4d3zuadl20HHObu+7qJenBxHPrMayQAAAAUAAAABAAAAANPRjCD1iCti3hovsrrz6aSAjmp263grVr6+mI3SQSkcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtJBKRwAAABA1N0iqDAgqS6+3RIZGoNB9OXrY3wd/nLruXYi+eiTt4jn94fLVLwAw6jJCaK+qxStwO7c4kP6u5k0RPbuYC55CT6zGskAAABAiUGCNCS4pGlfcRmi82kbralzcFlTQAFzLyfUrYGn3RtQ4p/7TUwAqIanVoWGfEqzIJo64ZT+mYtJ72BfI+FiDg==",
    "result_codes": {
    "transaction": "tx_failed",
    "operations": ["op_no_source_account"]
    },
    "result_xdr": "AAAAAAAAAGT/////AAAAAf////4AAAAA"
    }
    }