ERC1155 token balance for a wallet
Written by Agorean from what the endpoint says about itself
Gives you how many copies of an ERC1155 token id a wallet holds.
Send it a wallet address, a contract address, and a token id, and it looks up how many copies of that token id the wallet holds using the balanceOf call. It returns the account, the balance, the contract address, and the token id.
WHEN TO USE THIS
When: I need to know how many copies of a token a wallet holds
For example: Send the wallet, contract, and token id and read the balance returned.
When: I need to verify someone actually holds a token before trusting a claim
For example: Look up the balance on-chain and compare it to what was claimed.
When: I need this balance on a network other than Ethereum
For example: Set the network parameter to check the balance on that chain instead.
0.003 USDC
Paid to 0x52e2…f3ea
Your agent buys it
npx agorean buy lst_c33ihji6mu2z
Buy link
https://api.onesource.io/api/chain/erc1155-balance
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_c33ihji6mu2z", wallet_proof)