Skip to main content

Result Codes

Result Codes describe why a transaction or operation failed in Stellar Core and are communicated in the “extras” field of a Horizon response when the “Transaction Failed” Status Code is returned.

In the “extras” field, the errors returned are referred to as “Result Codes” and are Horizon’s abstraction of “Stellar Protocol Codes”, which are more specific codes available in the XDR. Result Codes are Horizon’s way of normalizing Stellar Protocol Codes.

There are three types of Result Codes: Transaction Result Codes, Operation Result Codes, and Operation-Specific Result Codes.

Result Code Types
Transaction Result CodesGeneric errors about transaction failures.
Operation Result CodesGeneric errors about operation failures.
Operation-Specific Result CodesErrors specific to each operation type.