{"slug":"agent402-tools-api-token-allowance-cd8fd4","title":"How much of an ERC-20 token a spender contract is approved to move from an owner","host":"agent402.tools","method":"POST","resource":"https://agent402.tools/api/token-allowance","category":"market","description":"How much of an ERC-20 token a spender contract is approved to move from an owner wallet - the approval check an agent runs before a swap, a bridge, or an x402 transferWithAuthorization flow. Returns the allowance as an exact decimal string scaled by the token's decimals, the raw uint256, and an `unl","price_listed":0.002,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":5,"reported_payers_30d":1,"networks":["algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=","eip155:10","eip155:1329","eip155:137","eip155:143","eip155:42161","eip155:42220","eip155:43114","eip155:4663","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","stellar:pubnet"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"contract":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","network":"ethereum","owner":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","spender":"0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"contract":{"description":"0x-prefixed 40-char ERC-20 contract address.","type":"string"},"network":{"description":"ethereum / base / polygon / arbitrum / optimism (default ethereum).","type":"string"},"owner":{"description":"Wallet that granted (or did not grant) the approval.","type":"string"},"spender":{"description":"Contract or wallet whose allowance to read.","type":"string"}},"required":["contract","owner","spender"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"How much of an ERC-20 token a spender contract is approved to move from an owner wallet - the approval check an agent runs before a swap, a bridge, or an x402 transferWithAuthorization flow. Returns the allowance as an exact decimal string scaled by the token's decimals, the raw uint256, and an `unlimited` flag for max-uint style approvals.","last_updated":"2026-09-22T11:51:31.089Z","schemes":["exact","upto"]}