Class InsufficientFundsError

Error thrown when an account does not have enough token balance for a lock operation.

Hierarchy

Constructors

Properties

code: INSUFFICIENT_FUNDS = LockErrorCode.INSUFFICIENT_FUNDS
message: string
requiredAmount: TokenAmount

The required amount for the operation.

sender: AccountAddress

The account lacking sufficient balance.

stack?: string
token: TokenId

The token involved in the operation.

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Accessors

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc