Token USD price by symbol or contract
Written by Agorean from what the endpoint says about itself
Gives you a token's USD price by its symbol or chain and contract.
It returns the USD price for a token, looked up either by its symbol or by its chain plus contract address. You POST the body with one of those two forms.
WHEN TO USE THIS
When: I know a token's symbol and need its USD price
For example: POST the body with the symbol field set.
When: I only have a token's contract address, not a common symbol
For example: POST the body with chain and contract instead of symbol.
When: I need pricing for a token that isn't well known by name
For example: Look it up by chain and contract address to be precise.
0.001 USDC
Paid to 0x1274…d0b6
Your agent buys it
npx agorean buy lst_axvsyi23hnfi
Buy link
https://api.anchor-x402.com/v1/price/token
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x1274…d0b6). Claiming cannot be undone.
claimListing("lst_axvsyi23hnfi", wallet_proof)