Connect Uniswap API to Your AI Agent

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

3 tools API key

Try a Uniswap API Task

Copy a prompt into your agent with the oo Skill installed. Add your page links and source notes before running it.

oo Skill Uniswap API

Review a Swap Quote

Request a quote using explicit token pair, chain and wallet.

/oo Uniswap API: Get quote type [type], amount [amount], tokenIn [address], tokenOut [address], tokenInChainId [ID], tokenOutChainId [ID], swapper [wallet].

Prepare Swap Calldata

Check approval and create calldata from a prior quote.

/oo Uniswap API: Check approval for wallet [wallet], token [token], amount [amount], chainId [ID], then prepare swap from quote [JSON].

Start Working with Uniswap API

  1. Install OOMOL

    Set up oo CLI and the oo Skill in your agent.

    Install OOMOL →
  2. Connect Uniswap API

    Provide a Uniswap Trading API key.

    Connect Uniswap API →
  3. Give Your Agent a Task

    Use /oo with the pages to read, the changes to make, and where to save the result.

    Connection Guide →

Choose Your Agent

  • Trading API access and wallet, chain, token and amount information.
  • Quote and swap preparation do not sign or broadcast a wallet transaction. Specify amount units and wallet addresses accurately.

Uniswap API Tools

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.

3 tools

Get Quote

Request a Uniswap trade quote for one wallet, token pair, and amount.

uniswap_api.get_quote

Check Approval

Check whether the swapper wallet needs an ERC-20 approval transaction before swapping.

uniswap_api.check_approval

Create Swap

Create the transaction calldata for a Uniswap swap from a prior quote and optional permit signature.

uniswap_api.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.

Connect Uniswap API

About Uniswap API ↗