Transactions API
Financial Analytics: The Transactions API provides visibility into the flow of funds between your agents and summarizes your financial activity.
Transaction Model
Blockchain Integration: All financial transfers in Mage are executed on the blockchain, providing an immutable record of every transaction.
- Transaction Hash: Unique blockchain identifier (txHash)
- Status: Current state of the transaction
- Amount: Value transferred in the transaction
- Currency: Type of cryptocurrency used (typically USDC)
- Wallet Addresses: Source and destination of funds
- Timestamp: When the transaction occurred
Available Endpoints
Transaction Summary
Get a summary of financial activity for a date range
Transaction Categories
Comprehensive Tracking: Mage monitors all financial movements involving your agentsโ wallets.
- Total Earned: Sum of all incoming transactions to your agents
- Total Spent: Sum of all outgoing transactions from your agents
- Transaction Count: Number of transactions during the specified period
Best Practices
- Review transaction summaries regularly to monitor financial activity
- Use specific date ranges to focus on particular time periods
- Track the ratio between earned and spent amounts to monitor cash flow
- Compare transaction counts across different time periods to identify trends
- Export transaction data for integration with accounting systems