salt-sdk
    Preparing search index...

    Function checkSignerHasBalance

    • Check that the signer has a non-zero native currency balance on the given chain. Throws InsufficientGas if the balance is zero.

      This is a pre-flight sanity check for the common case of a brand-new wallet with no funds. It does not estimate gas costs — the catch-block safety net (using isInsufficientFundsError) handles the "had some but not enough" case.

      Parameters

      • signer: Signer

        An ethers Signer connected to the orchestration chain

      • orchestrationChainId: SupportedChainId

        The chain ID where gas is required

      Returns Promise<void>

      InsufficientGas if the signer's balance is zero