x402-chainlink
    Preparing search index...

    Function hasSufficientAllowance

    • Check if spender has sufficient allowance

      Parameters

      • client: {}

        Viem public client

      • tokenAddress: `0x${string}`

        Token contract address

      • ownerAddress: `0x${string}`

        Token owner

      • spenderAddress: `0x${string}`

        Spender address

      • requiredAmount: string

        Required amount in atomic units

      Returns Promise<boolean>

      True if allowance is sufficient