![cover_image](https://private-user-images.githubusercontent.com/12901349/349380652-aa54bac4-30ef-49bb-bac7-732ff561bd95.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTQ2ODEsIm5iZiI6MTcyNTU5NDM4MSwicGF0aCI6Ii8xMjkwMTM0OS8zNDkzODA2NTItYWE1NGJhYzQtMzBlZi00OWJiLWJhYzctNzMyZmY1NjFiZDk1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDAzNDYyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc0MDczYjY0NzZiNTE3MmNiOWM1MzQwMmE3OTRmMTUwYzczM2MzMDUzNTQ1NWExNDk1NzhmNzllOTU2Nzg0YTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jc1zYaznTC_Zuf13TIOIyRCrp3nqifO6G6gRynmTymk)
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.
Tooling:
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
https://ref-finance-agent.vercel.app
-
Token Metadata
GET
/api/token/{token}
-
Swap Transactions
GET
/api/swap/{tokenIn}/{tokenOut}/{quantity}
Make LLM requests to the endpoints above. Refer to the full API documentation for detailed parameter and response information.
Set NEAR_ENV="mainnet"
in your .env.local
file.
# install dependencies
pnpm i
# start the development server
pnpm dev
DeFi.Swaps.AI.Ref.NEAR.Bitte.mp4
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.