Uniswap API Tasks with an AI Assistant

Use AI with Uniswap Trading API to inspect quotes, check token approval needs and prepare swap calldata.

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

  1. Connect Your Account

    Provide a Uniswap Trading API key.

  2. 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 →
  3. 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.

Prepare Swap Calldata

Check approval and create calldata from a prior quote.

View All 3 Actions
  • Get Quote
  • Check Approval
  • Create Swap

Visit Provider Website ↗

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.