From e8c0e49f57dc6c00fbce24df952cf874a9759e02 Mon Sep 17 00:00:00 2001 From: Danny Daniil Date: Thu, 16 Jan 2025 03:48:04 -0500 Subject: [PATCH] fix: update Uniswap example URL and API key (#231) add the values --- typescript/examples/vercel-ai/uniswap/.env.template | 4 ++-- typescript/examples/vercel-ai/uniswap/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/typescript/examples/vercel-ai/uniswap/.env.template b/typescript/examples/vercel-ai/uniswap/.env.template index 266796815..d9655f6d1 100644 --- a/typescript/examples/vercel-ai/uniswap/.env.template +++ b/typescript/examples/vercel-ai/uniswap/.env.template @@ -1,2 +1,2 @@ -UNISWAP_API_KEY= -UNISWAP_BASE_URL= +UNISWAP_API_KEY=kHEhfIPvCE3PO5PeT0rNb1CA3JJcnQ8r7kJDXN5X +UNISWAP_BASE_URL=https://trade-api.gateway.uniswap.org/v1 diff --git a/typescript/examples/vercel-ai/uniswap/README.md b/typescript/examples/vercel-ai/uniswap/README.md index f6f70bbca..f5996a142 100644 --- a/typescript/examples/vercel-ai/uniswap/README.md +++ b/typescript/examples/vercel-ai/uniswap/README.md @@ -12,7 +12,7 @@ cp .env.template .env ## Usage -1. Create an API key for Uniswap's Trading API by visiting [this page](https://hub.uniswap.org/) and following the instructions. Also obtain the url from the API key creation page. +1. Create an API key for Uniswap's Trading API by visiting [this page](https://hub.uniswap.org/) and following the instructions. To obtain the URL, visit the Uniswap Trading API docs site [here](https://uniswap-docs.readme.io/reference/trading-flow). Otherwise, you can use the sample values in `.env.template`. 2. Run the script with your prompt!