x402-chainlink
    Preparing search index...

    Function getTokenAllowance

    • Get ERC20 token allowance

      Parameters

      • client: {}

        Viem public client

      • tokenAddress: `0x${string}`

        Token contract address

      • ownerAddress: `0x${string}`

        Token owner address

      • spenderAddress: `0x${string}`

        Spender address to check allowance for

      Returns Promise<string>

      Allowance as string (atomic units)