Get your AI agent banking in under 10 minutes. This guide walks through creating an agent account, configuring spending policies, and executing your first autonomous payment on Solana via Machine Payments Protocol (MPP).
Node.js 18+ or Python 3.9+
Basic understanding of AI agent architecture
(Optional) Solana wallet for blockchain verification
What You'll Build
By the end of this guide, your AI agent will:
Have its own banking account with cryptographic identity
Hold USDC stablecoins on Solana blockchain
Execute autonomous payments within programmable spending limits
Settle transactions via Machine Payments Protocol in under 400ms
TypeScript/Node.js
Step 1: Initialize the SDK
Step 2: Create Agent Account
Each AI agent gets a dedicated banking account with cryptographic identity on Solana.
Response:
What just happened:
MPPFi created a dedicated account for your agent
Generated cryptographic identity (public/private key pair)
Created Solana blockchain address for settlement
Established MPP endpoint for protocol-compliant payments
Funded account with 1,000 USDC stablecoins
Define programmable spending rules enforced on-chain via Solana smart contracts.
Security Note: All policy rules are enforced via Solana smart contracts, providing cryptographic guarantees that the agent cannot exceed these limits without explicit authorization updates.
Step 4: Make Your First Payment
Execute an autonomous payment using Machine Payments Protocol.
Response:
Settlement Flow:
Agent requests payment terms from merchant via MPP
Merchant responds with price and conditions
Agent authorizes payment (validated against spending policy)
MPPFi submits transaction to Solana blockchain
Settlement confirmed in ~287ms with cryptographic finality
Agent receives resource access token from merchant
Step 5: Verify On-Chain
Every transaction is verifiable on Solana blockchain.
Step 6: Monitor Agent Activity
Query transaction history and spending analytics.
Complete Example: Autonomous Data Agent
Full implementation of an AI agent that autonomously purchases datasets via MPP:
Sandbox Testing
Test all functionality without real funds on Solana Devnet:
Get testnet tokens:
Cryptographic Agent Identity
Each agent has a unique public/private key pair:
Public key: Identifies agent in transactions
Private key: Signs transactions (managed by MPPFi HSM)
Solana address: Blockchain account for settlement
MPP endpoint: Protocol-compliant payment receiver
Machine Payments Protocol (MPP)
Standardized protocol for machine-to-machine payments:
Agent requests payment terms from merchant
Merchant responds with price and conditions
Agent authorizes payment with cryptographic signature
Settlement via Solana blockchain with sub-second finality
Merchant delivers resource/service to agent
On-Chain Settlement
All transactions settled on Solana blockchain:
Speed: 150ms finality (Alpenglow consensus)
Cost: ~$0.0011 per transaction
Throughput: 65,000 TPS (theoretical 1M+ with Firedancer)
Finality: Cryptographic proof of settlement
Auditability: Every transaction verifiable on-chain
Programmable Spending Policies
Rules enforced via Solana smart contracts:
Velocity limits: Daily/monthly spending caps
Merchant restrictions: Whitelist of approved MPP endpoints
Time-based rules: Schedule-based payment authorization
Multi-signature: Require approvals for high-value transactions
Zero-knowledge proofs: Privacy-preserving transaction validation
Core Documentation
Technical Deep Dives
REST API - Complete endpoint documentation
SDKs - TypeScript, Python, Rust libraries
Errors - Error codes and handling
Issue: Transaction Failed - Policy Violation
Solution: Check remaining spending limit:
Issue: Insufficient Balance
Solution: Fund agent account:
Issue: Merchant Not MPP-Compatible
Solution: Verify merchant MPP endpoint:
Issue: Slow Transaction Settlement
Solution: Check Solana network status:
Optimize Settlement Speed
Batch Multiple Payments
Cache MPP Endpoints
Your AI agent is now ready to transact autonomously on the world's first neobank built for AI agents.