SDK Reference/MPPFinance Client
MPPFinance Client
The MPPFinance class is the main entry point for all SDK operations. Create a single instance and reuse it across your agent.
Constructor
client.ts
import { MPPFinance } from 'mppfinance'
const client = new MPPFinance({
agentId: process.env.MPPFINANCE_AGENT_ID!,
network: 'solana',
testnet: process.env.NODE_ENV !== 'production',
})Options
| Option | Type | Default | Description |
|---|---|---|---|
| agentId | string | — | Your agent's unique identifier |
| network | string | 'solana' | Settlement network: solana or ethereum |
| testnet | boolean | false | Use testnet (no real funds) |
| timeout | number | 5000 | Request timeout in milliseconds |
| retries | number | 2 | Number of automatic retries on failure |
