Agent Accounts
Overview
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);Multi-Currency Account
Querying Account Balance
Current Balance
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
2. Metadata Organization
3. Balance Monitoring
4. Configure Policies First
Security Considerations
Key Management
Access Control
Audit Logging
Next Steps
Last updated
Was this helpful?
