The BSV Blockchain AI Agent is an innovative platform designed to simplify and revolutionize how users interact with the Bitcoin SV blockchain. By leveraging advanced natural language processing capabilities, the AI Agent abstracts the complexity of blockchain transactions and empowers users to perform a wide array of on-chain activities using simple, intuitive prompts.
This project allows innovators to develop a variety of application scenarios that demonstrate the synergistic potential of the BSV Blockchain and AI.
This hackathon project invites participants to experiment with creative and impactful solutions, showcasing how BSV blockchain and AI can work together to solve critical problems in areas like data integrity, security, micropayments and beyond.
Bitcoin SV (BSV) is a blockchain that aims to maintain the original vision of Bitcoin, focusing on scalability, security, and stability. This list gathers various resources to help you explore, develop, and contribute to the BSV ecosystem.
- Bitcoin SV Website
- Bitcoin SV Wiki
- BSV Developer Documentation
- BSV GitHub Repository
- Open Standards for industry collaboration
- BSV Wiki – Aim to provide correct and up-to-date information on the Bitcoin protocol, network, and its features and functionality.
- Paymail – A collection of protocols for BSV blockchain wallets that allow for a set of simplified user experiences to be delivered across all wallets in the ecosystem.
- Official BSV SDK maintained by the BSV Association with zero dependencies.
- Bitcoin SV Lib - A pure and powerful JavaScript Bitcoin SV library. A fork of BitPay's bitcore-lib-cash, but for Bitcoin SV only. Maintained by Yours Inc.
- Framework - Next.js (App Router)
- Language - TypeScript
- Auth - Clerk
- Database - Postgres
- ORM - Prisma
- Deployment - Vercel
- Styling - Tailwind CSS
- Analytics - Vercel Analytics
- Code Formatting/Linting - Biome
- AI Agent Tools - BrianAPI
- AI Agent Tools - LangChain
This uses the new Next.js App Router. This includes support for enhanced layouts, colocation of components, tests, and styles, component-level data fetching, and more.
To successfully finish this guide, you'll need:
- Node.js >= 22
- pnpm >= 9
- A Vercel Account (to set up a free Postgres database and deploy the app)
During the deployment, Vercel will prompt you to create a new Postgres database. This will add the necessary environment variables to your project.
Next, copy the .env.example file to .env.local and update the values. Follow the instructions in the .env.example file to set up your env variables.
npm i -g vercel
vercel link
vercel env pull
When your env variables are setup you then need to install the dependencies and you'll be able to setup the database and seed it:
pnpm install
pnpm prisma:migrate:reset
Finally, run the following command to start the development server:
pnpm dev
You should now be able to access the application at http://localhost:3000.
Maintaining a consistent PostgreSQL database schema is crucial for collaboration among all contributors.
This section outlines the process for managing schema changes, creating migration scripts, and ensuring everyone is on the same page.
First, make some change to the Prisma schema in prisma/schema.prisma
.
To create a migration script, run the following command in your terminal:
pnpm prisma:migrate:dev
You will be prompted for a name to describe the changes being made (e.g., create_users_table). The migration script will be run against your own local DB so you can start developing your new feature right-away.
Read more about the Prisma workflow.
After testing your migration scripts, create a pull request (PR) in the repository: Include a concise description of the schema changes. List the migration scripts included in the PR. Reference any discussions related to your changes. Tag other contributors for review.
Update the README or project wiki to reflect any changes to the schema, including new tables, fields, or relationships.