MPPFinanceDocsv0.1
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

OptionTypeDefaultDescription
agentIdstringYour agent's unique identifier
networkstring'solana'Settlement network: solana or ethereum
testnetbooleanfalseUse testnet (no real funds)
timeoutnumber5000Request timeout in milliseconds
retriesnumber2Number of automatic retries on failure