Skip to main content

ExecutionError

Represents execution error information for failed transactions.

type ExecutionError {
abortCode: BigInt
constant: String
function: MoveFunction
identifier: String
instructionOffset: Int
message: String!
module: MoveModule
sourceLineNumber: Int
}

Fields

ExecutionError.abortCode ● BigInt scalar

The error code of the Move abort, populated if this transaction failed with a Move abort.

Returns the explicit code if the abort used code annotation (e.g., abort(ERR, code = 5) returns 5), otherwise returns the raw abort code containing encoded error information.

ExecutionError.constant ● String scalar

An associated constant for the error. Only populated for clever errors.

Constants are returned as human-readable strings when possible. Complex types are returned as Base64-encoded bytes.

ExecutionError.function ● MoveFunction object

The function that the abort originated from. Only populated for Move aborts and primitive runtime errors that have function name information.

ExecutionError.identifier ● String scalar

The error's name. Only populated for clever errors.

ExecutionError.instructionOffset ● Int scalar

The instruction offset in the Move bytecode where the error occurred. Populated for Move aborts and primitive runtime errors.

ExecutionError.message ● String! non-null scalar

Human readable explanation of why the transaction failed.

For Move aborts, the error message will be resolved to a human-readable form if possible, otherwise it will fall back to displaying the abort code and location.

ExecutionError.module ● MoveModule object

The module that the abort originated from. Only populated for Move aborts and primitive runtime errors.

ExecutionError.sourceLineNumber ● Int scalar

The source line number for the abort. Only populated for clever errors.

Member Of

TransactionEffects object