0.2.15 • Published 7 months ago

@goat-sdk/plugin-uniswap v0.2.15

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Uniswap GOAT Plugin

Swap tokens on Uniswap.

Installation

npm install @goat-sdk/plugin-uniswap
yarn add @goat-sdk/plugin-uniswap
pnpm add @goat-sdk/plugin-uniswap

Usage

You can get your Uniswap API key here.

For testing purposes, you can use the following base URL and API key:

UNISWAP_BASE_URL="https://trade-api.gateway.uniswap.org/v1"
UNISWAP_API_KEY="kHEhfIPvCE3PO5PeT0rNb1CA3JJcnQ8r7kJDXN5X"

Use the plugin in your code:

import { uniswap } from "@goat-sdk/plugin-uniswap";


const plugin = uniswap({
    baseUrl: process.env.UNISWAP_BASE_URL as string,
    apiKey: process.env.UNISWAP_API_KEY as string,
});

Tools

  • Get quote
  • Swap tokens
0.2.15

7 months ago

0.2.14

7 months ago

0.2.13

7 months ago

0.2.12

7 months ago

0.2.11

8 months ago

0.2.10

8 months ago

0.2.9

9 months ago

0.2.8

9 months ago

0.2.7

9 months ago

0.2.6

9 months ago

0.2.5

9 months ago

0.2.4

10 months ago

0.2.3

10 months ago

0.2.2

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago