Documentation

Quick Start Guide

Get started with LedgerMind in minutes. Follow these steps to deploy smart contracts, run the MCP server, and create your first payment intent.

1. Set up environment variables

# Copy environment template
cp .env.example .env

# Configure your keys
PRIVATE_KEY_PAYER=your_payer_private_key
PRIVATE_KEY_AGENT=your_agent_private_key
FACTORY_ADDRESS=0xfF0e7F71a0e19E0BF037Bd90Ba30A2Ee409E53a7
USDC_ADDRESS=0x4fCF1784B31630811181f670Aea7A7bEF803eaED

2. Deploy smart contracts to Sei

# Install dependencies
npm install

# Deploy contracts to Sei testnet
npm run deploy:testnet

# Verify deployment
npm run verify:testnet

3. Configure MCP server

# Start the MCP server
cd packages/mcp
npm run dev

# Server will run on http://localhost:3001
# Connect your AI tool to this endpoint

4. Create payment intents

Use the dashboard or MCP tools to create your first payment intent:

  • • Set spending limits (total and per-transaction)
  • • Choose authorized agent address
  • • Configure merchant allowlist (optional)
  • • Set expiration time