/
Solana
MPPFinance supports Solana (SPL tokens) for funding your agent wallet. Deposits confirm in ~400ms and settle immediately for card issuance.
ℹ
Solana is the recommended network for high-frequency agents due to near-zero fees and fast finality.
Overview
Your MPP wallet on Solana holds USDC (SPL). When your agent calls MPPFinance.issue(), funds are debited from this wallet and a virtual Visa card is issued instantly.
RPC Setup
The SDK auto-detects the default Solana mainnet RPC. To use a custom endpoint:
agent.ts
import { MPPFinance } from 'mppfinance'
const client = new MPPFinance({
network: 'solana',
rpc: 'https://your-rpc-endpoint.com',
agentId: 'my-agent',
})Token Deposit
Send USDC to your agent wallet address. Use getBalance() to confirm receipt:
check-balance.ts
const balance = await client.getBalance()
console.log(balance) // { usdc: 100.00, network: 'solana' }Testnet
Use network: 'solana-devnet' and airdrop devnet SOL/USDC for testing. Testnet cards are fully functional but not charged.
testnet.ts
const client = new MPPFinance({
network: 'solana-devnet',
agentId: 'test-agent',
})