Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Crossmint/crossmint-agentic-finance/llms.txt
Use this file to discover all available pages before exploring further.
Overview
All demos in Crossmint Agentic Finance can be run locally for development and testing. This guide covers setting up your local environment and running demos.Prerequisites
Required Tools
- Node.js: 18.17.0 or higher
- npm: 9.0.0 or higher
- Git: For cloning the repository
Required API Keys
Get Crossmint API Key
- Visit Crossmint Console
- Create a new Smart Wallet project
- Navigate to API Keys section
- Create an API key with scopes:
wallets.create,wallets.read,wallets:messages.sign - Copy the key (starts with
sk_)
Get OpenAI API Key (for AI agents)
Visit OpenAI Platform and create an API key
Get Testnet USDC
For blockchain interactions, get test USDC from Circle Faucet
- Select Base Sepolia network
- Paste your wallet address
- Mint 1-10 USDC for testing
Quick Start: Simplest Demo
Theping demo is the simplest way to understand the x402 payment flow:
Running Events Concierge Demo
The events concierge is the most complete demo with MCP, autonomous payments, and Cloudflare Durable Objects.Step 1: Install Dependencies
Step 2: Configure Environment
Create.dev.vars file with your API keys:
.dev.vars
Step 3: Run Development Server
- React UI at
http://localhost:5173 - Cloudflare Worker with Durable Objects
- WebSocket server for agent communication
Step 4: Test the Payment Flow
Connect the agents
- Open
http://localhost:5173 - Click “Connect to Events” in the chat
- Guest agent establishes MCP connection to Host
Create an event (as host)
- Go to
http://localhost:5173/?view=my-mcp - Sign in with email OTP
- Create an event with a price (e.g., $0.05)
Fund the guest wallet
- Copy the Guest wallet address from chat
- Visit Circle Faucet
- Select “Base Sepolia” and paste address
- Mint 1 USDC
Running Other Demos
HTTP Paywalls
Ping (Express + x402)Agent-to-Agent Demos
Basic A2A with EOA WalletsDevelopment Workflow
File Structure (events-concierge)
Testing Payment Verification
Browser Console Testing
Network Configuration
Base Sepolia (Testnet - Default)
- USDC: Circle Faucet
- ETH: Base Sepolia Faucet
Troubleshooting
”Cannot find module” Errors
Port Already in Use
Wrangler Dev Issues
Payment Verification Failed
Check wallet has USDC
Check wallet has USDC
Verify network consistency
Verify network consistency
Ensure all components use the same network:
- Guest agent:
base-sepolia - Host agent:
base-sepolia - USDC contract:
0x036CbD53842c5426634e7929541eC2318f3dCF7e - Chain ID:
84532
Check facilitator is accessible
Check facilitator is accessible
Durable Objects State Issues
Development Tips
For Cloudflare Workers, local development uses
wrangler dev which simulates the Cloudflare runtime. Some features may behave differently than in production.Next Steps
Deploy to Cloudflare
Deploy your agent to Cloudflare Workers and Durable Objects
Production Checklist
Prepare your app for mainnet deployment