Type alias AptosError

AptosError: {
    error_code: AptosErrorCode;
    message: string;
    vm_error_code?: number;

This is the generic struct we use for all API errors, it contains a string message and an Aptos API specific error code.

Type declaration

  • error_code: AptosErrorCode
  • message: string

    A message describing the error

  • Optional vm_error_code?: number

    A code providing VM error details when submitting transactions to the VM

Generated using TypeDoc