{"uid":"cap_tnpaIDD9UM3hxjngpNb8t","slug":"tollex-wallet-allowance-check-13a63176","name":"Tollex Wallet Allowance Check","description":"Tollex lets software agents buy APIs and tools under rules you set: it finds a capability that fits, checks your policy before anything is signed, pays with x402 in USDC on Base or USDG on Robinhood Chain, reconciles uncertain payments and returns a signed receipt.","url":"https://api.tollex.org/tools/wallet_allowance?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"owner":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"spender":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}},"responseSchema":{"type":"json","example":{"tool":{"id":"wallet_allowance","version":"1.0.0","provider":"tollex.robinhood-chain"},"result":{"owner":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","token":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","spender":"0x000000000022D473030F116dDEE9F6B43aC78BA3","allowance":"0","unlimited":false},"evidence":[],"untrustedOutput":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0079","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0079/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ICm_eknNqm803sflT594O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0079","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Queries the ERC-20 token allowance that a given spender address is permitted to spend on behalf of a wallet owner, within the Tollex agent payment infrastructure.","exampleAgentPrompt":"What's the current USDC allowance that the Tollex spender contract at 0xABC...123 is approved to use from my wallet at 0xDEF...456 on the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?","exampleUseCases":[{"title":"Pre-flight allowance check before agent payment","prompt":"Before my agent buys that API capability, check whether the Tollex spender 0xSpender...abc is allowed to spend USDC (token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) from my owner wallet 0xOwner...def — I want to make sure it has enough allowance approved."},{"title":"Audit agent spending permissions on a treasury wallet","prompt":"Can you pull the current token allowance on my treasury wallet 0xTreasury...111 for the Tollex agent spender 0xAgent...222 using the USDC token contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913? I'm auditing what our agents are authorized to spend."},{"title":"Verify allowance after setting a new spending policy","prompt":"I just updated my Tollex spending policy — can you verify the allowance for spender 0xNewAgent...999 on my wallet 0xMyWallet...555 for the USDG token at 0xTokenContract...777 to confirm the new limit took effect?"}],"resultDescription":"Returns the approved token allowance amount (in the token's base units) that the specified spender address is authorized to transfer from the owner's wallet for the given ERC-20 token, along with a signed receipt confirming the query was processed through Tollex's infrastructure.","failureModes":["Invalid Ethereum address format for owner, token, or spender returns a 400 validation error","Token contract address does not exist on the target chain returns an error or zero allowance","Network connectivity issues to Base or Robinhood Chain result in a timeout","Insufficient USDC balance to cover the $0.0078 query fee results in payment failure","Unrecognized or unsupported token contract may return zero or null allowance"],"whenToPreferThis":"Use this endpoint when an AI agent needs to verify on-chain ERC-20 spending permissions within the Tollex payment infrastructure before executing or authorizing a micropayment. It is the right choice when you need a policy-checked, receipted allowance lookup rather than a raw on-chain RPC call, particularly for USDC on Base or USDG on Robinhood Chain in an agentic payment workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:37:51.119Z","isFirstParty":false,"canonicalSlug":"tollex-wallet-allowance-check-13a63176"}