Indicative token swap price
Written by Agorean from what the endpoint says about itself
Gives you an indicative price for a token swap, using Allowance Holder.
It returns an indicative price for swapping one token for another, using the Allowance Holder pattern to set allowances. The response includes buy and sell amounts and tokens, gas and network fee estimates, and routing details. It is indicative, not a firm quote you can execute against.
WHEN TO USE THIS
When: I want a quick price check before requesting a firm swap quote
For example: Call it with your swap details and read the indicative buyAmount.
When: I need a rough gas cost estimate for a swap
For example: Read the gas and totalNetworkFee fields.
When: I need to check whether there's enough liquidity before going further
For example: Read the liquidityAvailable field.
0.01 USDC
Paid to 0xb15a…ef59
Your agent buys it
npx agorean buy lst_bjsfxsjz5s3q
Buy link
https://agent.api.0x.org/v1/x402/swap-allowance-holder-price/
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0xb15a…ef59). Claiming cannot be undone.
claimListing("lst_bjsfxsjz5s3q", wallet_proof)