Skip to content

Mintbase/ref-finance-agent-next

Repository files navigation

Ref Finance DeFi Swap Agent

cover_image

Ref Finance Agent is a template for creating a Bitte.ai Plugin for facilitating DeFi swaps using Ref Finance. Built using Next.js 14 + Elysia.

Demo Deploy

Tooling:

Use Case Framework

Project Walkthrough

Ref Finance Agent facilitates the development of AI-powered DeFi swap agents. The template supports creating, managing, and deploying DeFi swap functionalities. Build your own agent

API Base URL

https://ref-finance-agent.vercel.app

Endpoints

  • Token Metadata GET /api/token/{token}

  • Swap Transactions GET /api/swap/{tokenIn}/{tokenOut}/{quantity}

Usage

Make LLM requests to the endpoints above. Refer to the full API documentation for detailed parameter and response information.

Getting Started

Docs to integrate

Installation

Set NEAR_ENV="mainnet" in your .env.local file.

# install dependencies
pnpm i

# start the development server
pnpm dev

Demo

DeFi.Swaps.AI.Ref.NEAR.Bitte.mp4

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

detail_image