salt-sdk
    Preparing search index...

    Function isInsufficientFundsError

    • Check whether an error indicates that the signer does not have enough native currency to pay for gas. Applies to errors from ethers.js, on-chain calls, or the API (e.g. ApiError with code INSUFFICIENT_FUNDS or a matching message).

      Parameters

      • error: unknown

        The error to check

      Returns boolean

      true if the error indicates insufficient funds for gas