Skip to content

bluepeacock-lab/coinbase-sdk-ai-agent-sample

 
 

Repository files navigation

Coinbase-SDK - Onchain Machine Learning

The Onchain Machine Learning template provides a simple app for Reinforcement Learning from Human Feedback using the CDP SDK. The application shows how to create an MPC wallet, fund the wallet, and send Base Sepolia to a recipient who controls a Coinbase Smart Wallet.

aiwallet-demo.mp4

Getting Started

To start, create a CDP API Key.

Then, set the following environment variables - for example, within a .env file, or by using Replit Secret Manager (if you are accessing this template from Replit).

API_KEY_NAME="YOUR_API_KEY_NAME"
API_KEY_PRIVATE_KEY="YOUR_API_KEY_PRIVATE"

Install the dependencies:

npm install
# or
yarn

Then, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to use the application.

Learn More

To learn more about the CDP SDK, take a look at the following resources:

Deploy on Vercel

If you are accessing this template from GitHub, you can click the button below to deploy your own copy of the AI Feedback tool:

Deploy with Vercel

References

The images in the demo are sourced from Unsplash.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.4%
  • JavaScript 1.3%
  • CSS 0.3%