Lightlines
By uniswap

swap-integration

uniswap2.1k installs

Add Uniswap token swaps to your application.

What it does

Guides the creation of Uniswap token-swap integrations for frontends, backends, and smart contracts.

When to use it

Use when the user requests Uniswap swap functionality, a swap frontend or script, or smart-contract swap integration.

How to use it

Give it an application and a request for swap functionality; it implements an integration using the Trading API or Universal Router.

What you provide

  • An existing project

Uses

Good to know

  • cannot be undone: Uniswap
  • acts without asking
  • edits its own instructions

Latest review

What you need · 2

The recommended Trading API path requires registration in the developer portal to obtain an API key.

The backend script example reads a wallet private key from the environment for local transaction signing; the frontend pattern instead uses a connected wallet.


Access · 4

This skill

Uniswap

Write

Submits approved token transactions (irreversible)

Trading API

Write

Sends swap details to Uniswap