Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XRPL to Flare Smart Accounts Backend

Backend for XRPL to Flare Smart Accounts flow using Fastify, TypeScript, Zod, Prisma, and SQLite.

Setup

  1. Install dependencies:

    npm install
  2. Generate Prisma client:

    npm run prisma:generate
  3. Run migrations:

    npm run prisma:migrate
  4. Set environment variables in .env:

    PORT=3000
    FLARE_RPC_URL=https://flare-api.flare.network/ext/C/rpc
    FLARE_PRIVATE_KEY=your_private_key
    XRPL_WALLET_ID=0
    DATABASE_URL="file:./dev.db"
    
  5. Run in development:

    npm run dev
  6. Build for production:

    npm run build
    npm start

API

  • POST /api/intents - Create a new intent
  • GET /api/intents - List all intents
  • GET /api/intents/:id - Get intent by ID

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages