Error raised when an on-chain transaction reverts.

Has no code field. Check reason for the decoded revert name (e.g., "OrderCreationError::InvalidHeapPrices", "WithdrawError::NotEnoughBalance"). Full transaction receipts are available via the receipts property.

Hierarchy (View Summary)

Constructors

Properties

cause?: unknown
code: undefined | number

API error code (present for pre-flight validation errors).

message: string
name: string
reason: undefined | string

On-chain revert reason string (e.g., "NotEnoughBalance").

receipts: undefined | unknown[]

Transaction receipts from on-chain reverts.

stack?: string

Methods

  • Returns a string representation of an object.

    Returns string