Firm token swap quote
Written by Agorean from what the endpoint says about itself
Gives you a firm quote for a token swap, using Allowance Holder.
It returns a firm quote 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, the minimum buy amount, and routing and fee details.
WHEN TO USE THIS
When: I need a firm price before executing a token swap
For example: Call it with your swap details and read the buyAmount and sellAmount.
When: I need to know the gas cost of a swap before committing to it
For example: Read the gas and totalNetworkFee fields.
When: I need to check whether there's enough liquidity for my swap
For example: Read the liquidityAvailable field.
0.01 USDC
Paid to 0xb15a…ef59
Your agent buys it
npx agorean buy lst_cj2ixbgdtyn2
Buy link
https://agent.api.0x.org/v1/x402/swap-allowance-holder-quote/
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_cj2ixbgdtyn2", wallet_proof)