Quickstart Guide

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).


Prerequisites

  • Node.js 18+ or Python 3.9+

  • MPPFi API key (sign uparrow-up-right)

  • 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:

  1. Have its own banking account with cryptographic identity

  2. Hold USDC stablecoins on Solana blockchain

  3. Execute autonomous payments within programmable spending limits

  4. Settle transactions via Machine Payments Protocol in under 400ms


Installation

TypeScript/Node.js

Python

Rust


Step 1: Initialize the SDK

TypeScript

Python

Rust


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


Step 3: Configure Spending Policy

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:

  1. Agent requests payment terms from merchant via MPP

  2. Merchant responds with price and conditions

  3. Agent authorizes payment (validated against spending policy)

  4. MPPFi submits transaction to Solana blockchain

  5. Settlement confirmed in ~287ms with cryptographic finality

  6. 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:


Key Concepts

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:

  1. Agent requests payment terms from merchant

  2. Merchant responds with price and conditions

  3. Agent authorizes payment with cryptographic signature

  4. Settlement via Solana blockchain with sub-second finality

  5. 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


Next Steps

Core Documentation

Technical Deep Dives

API Reference

  • REST API - Complete endpoint documentation

  • SDKs - TypeScript, Python, Rust libraries

  • Errors - Error codes and handling


Common Issues

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:


Performance Tips

Optimize Settlement Speed

Batch Multiple Payments

Cache MPP Endpoints


Support


Your AI agent is now ready to transact autonomously on the world's first neobank built for AI agents.

Last updated

Was this helpful?