MPPFinanceDocsv0.1
Core Concepts/Spending Rules

Spending Rules

Every card issued via MPPFinance can carry programmable spending rules that are enforced on-chain. Rules cannot be modified after issuance — they are immutable for the card lifecycle.

Available rules

RuleTypeDescription
merchantstringLock card to a single domain (e.g. aws.com)
singleUsebooleanCard is revoked after the first charge
expiresInnumberTTL in seconds from issuance time
maxAmountnumberMaximum single-charge amount in cents
dailyCapnumberMaximum total spend per calendar day
networkstringRestrict to solana or ethereum settlement

Full example

rules.ts
const card = await client.issue({
  amount: 200_00,
  currency: 'USD',
  rules: {
    merchant: 'vercel.com',
    singleUse: false,
    expiresIn: 86400,   // 24 hours
    maxAmount: 50_00,   // max $50 per charge
    dailyCap:  200_00,  // max $200 per day
  },
})