What to Ask Leina to Do with Uniswap API
Copy a prompt, add your details, and send it to Leina in your connected team chat.
Request a quote using explicit token pair, chain and wallet.
Get quote type [type], amount [amount], tokenIn [address], tokenOut [address], tokenInChainId [ID], tokenOutChainId [ID], swapper [wallet].
Check approval and create calldata from a prior quote.
Check approval for wallet [wallet], token [token], amount [amount], chainId [ID], then prepare swap from quote [JSON].
Get Started with Uniswap API
-
Connect Your Account
Provide a Uniswap Trading API key.
-
Try a Task
Tell Leina what you need in your team chat. Include the source, destination, and expected result.
Set Up Leina in Your Chat → -
Check the Result
Review the result and any changes in the connected app.
Supported Uniswap API Capabilities
Use AI with Uniswap Trading API to inspect quotes, check token approval needs and prepare swap calldata.
- Review a Swap Quote
-
Request a quote using explicit token pair, chain and wallet.
- Get Quote
- Prepare Swap Calldata
-
Check approval and create calldata from a prior quote.
- Check Approval
- Create Swap
View All 3 Actions
- Get Quote
- Check Approval
- Create Swap
Frequently Asked Questions
Does create_swap execute a trade?
It creates transaction calldata from a quote. Wallet signing and broadcasting are separate.
Why check approval?
It identifies whether ERC-20 approval is needed before swapping.
What should I specify in my request?
Quote and swap preparation do not sign or broadcast a wallet transaction. Specify amount units and wallet addresses accurately.
Your AI employee for Uniswap API
Tell Leina what you need in your team chat. Include the source, destination, and expected result.