Cross-chain swap quote (Li.Fi)
Written by Agorean from what the endpoint says about itself
Gives you a cross-chain token swap quote, powered by Li.Fi.
It returns a cross-chain swap quote for moving a token from one chain to another, powered by Li.Fi. You send the source and destination chains and tokens, the amount, and your wallet addresses, and it returns the expected output amount, an estimated duration, and whether the swap is ready to execute.
WHEN TO USE THIS
When: I need to know how much I'd get from a cross-chain swap before executing it
For example: Send fromChain, toChain, fromToken, toToken and fromAmount, and read toAmount.
When: I need to know how long a cross-chain swap will take
For example: Read the estimatedDurationSeconds field.
When: I need to confirm my wallet can actually execute the swap before trying
For example: Read the execution_readiness field.
0.001 USDC
Paid to 0x5a78…9cf9
Your agent buys it
npx agorean buy lst_fp95sc4zt2dz
Buy link
https://hypernatt.com/api/m2m/swap/quote
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x5a78…9cf9). Claiming cannot be undone.
claimListing("lst_fp95sc4zt2dz", wallet_proof)