Agent Accounts

Agent accounts are dedicated banking accounts for AI agents with cryptographic identity, programmable spending policies, and blockchain settlement on Solana.


Overview

Every AI agent gets its own banking account with:

  • Cryptographic Identity: Unique public/private keypair managed in HSM

  • Solana Address: Blockchain account for settlement and verification

  • MPP Endpoint: Machine Payments Protocol-compliant payment receiver

  • Multi-Currency Support: USDC, SOL, and other SPL tokens

  • Programmable Policies: On-chain spending rules via Solana smart contracts

  • Real-Time Operations: Sub-second balance queries and transaction processing


Creating an Account

Basic Account Creation

const agent = await mppfi.agents.create({
  name: 'Cloud Infrastructure Agent',
  description: 'Autonomous cloud resource management',
  initialFunding: {
    amount: 5000_00, // $5,000 in cents
    currency: 'USDC'
  },
  metadata: {
    purpose: 'cloud_infrastructure',
    department: 'engineering',
    cost_center: 'eng-cloud-001',
    operator: '[email protected]'
  }
});

console.log('Agent Account Created:');
console.log('  ID:', agent.id);
console.log('  Name:', agent.name);
console.log('  Solana Address:', agent.solanaAddress);
console.log('  Public Key:', agent.publicKey);
console.log('  MPP Endpoint:', agent.mppEndpoint);
console.log('  Balance:', agent.balance.usdc, 'USDC');
console.log('  Network:', agent.network);
console.log('  Status:', agent.status);

Response:

Multi-Currency Account


Querying Account Balance

Current Balance

Response:

Multi-Currency Balances


Account Operations

Funding an Account

Via API (Off-Chain to On-Chain)

Via Blockchain Transfer

Withdrawing Funds


Account Management

Updating Account Details

Freezing an Account

Closing an Account


Transaction History

List Transactions

Filter by Date Range

Export Transaction History


Account Analytics

Spending Summary

Velocity Metrics


Hierarchical Agent Accounts

Parent-Child Structure

Transfer Between Agents


Best Practices

1. Account Naming

Use clear, descriptive names that indicate the agent's purpose:

2. Metadata Organization

Store relevant context in metadata for tracking:

3. Balance Monitoring

Set up alerts for low balances:

4. Configure Policies First

Always configure spending policies before funding:


Security Considerations

Key Management

  • Private keys stored in Hardware Security Modules (HSM)

  • Keys never exposed via API

  • Agent signs transactions using MPPFi's secure signing service

  • Backup keys stored in geo-distributed HSMs

Access Control

Audit Logging

All agent operations are immutably logged:


Next Steps


Dedicated banking accounts for every AI agent with blockchain-level transparency.

Last updated

Was this helpful?