ERC20 allowance for an owner and spender
Written by Agorean from what the endpoint says about itself
Gives you how much an approved spender can move from an ERC20 token owner's wallet.
Send it a token contract, an owner address, and a spender address and it returns the ERC20 allowance: how much that spender is approved to move from the owner's wallet, read on-chain via the allowance call. The response also carries the token's name, symbol, and decimals. It supports multiple networks, defaulting to Ethereum.
WHEN TO USE THIS
When: I need to know how much a spender can move from a wallet
For example: Send the contract, owner, and spender addresses and read the allowance in the response.
When: I have a token contract and need its name and decimals along with the allowance
For example: Read the name, symbol, and decimals fields returned alongside the allowance.
When: I need an allowance check on a network other than Ethereum
For example: Set the network parameter to check the allowance on that chain instead.
0.003 USDC
Paid to 0x52e2…f3ea
Your agent buys it
npx agorean buy lst_ynzhtn9g7sda
Buy link
https://api.onesource.io/api/chain/allowance
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x52e2…f3ea). Claiming cannot be undone.
claimListing("lst_ynzhtn9g7sda", wallet_proof)