Skip to main content

Wallet & Tokens Overview

SolvaPay's token wallet enables prepaid microtransactions for AI agents and API services. Consumers purchase tokens upfront via Stripe, then spend them per-request against provider services — making sub-dollar payments economically viable without per-transaction card fees.

Why Tokens?

Traditional payment processing has a floor: Stripe charges ~$0.30 + 2.9% per transaction. For a $0.05 API call, that's a 700% fee. The token system solves this by:

  1. Batching payments — Consumers top up once ($10+), receiving tokens they spend over many requests
  2. Integer precision — All amounts are stored as integer microunits, eliminating floating-point errors
  3. Aggregated settlement — Provider earnings are batched and settled periodically in fiat

Token Model

Tokens are internal, non-transferable prepaid units pegged to USD:

PropertyValue
Peg1 token = $0.0001 USD (configurable)
StorageInteger microunits (no floating point)
Minimum top-up$10 USD (configurable) = 100,000 tokens
TransferableNo — tokens stay in the consumer's wallet
WithdrawableNo — tokens can only be spent on services

Example conversions:

USD AmountTokens
$0.01100
$0.505,000
$1.0010,000
$10.00100,000

Key Concepts

Consumer Wallet

Every consumer account has a wallet with:

  • Balance — Total tokens available (derived from ledger)
  • Locked amount — Tokens reserved by active locks or vouchers
  • Available balancebalance - lockedAmount (what can be spent right now)

Payment Schemes

SolvaPay supports three payment schemes through the SDK:

SchemeDescriptionUse Case
limitsSubscription-based access with usage quotasSaaS plans with monthly limits
uptoTwo-phase token lock from wallet balancePer-request metered billing
voucherPrepaid voucher with reserved token balancePrepaid access tokens for third parties

Provider Settlement

Providers never receive tokens directly. When tokens are captured from a consumer, the provider's payable balance increases (minus a configurable platform fee). Payouts are settled periodically via Stripe Connect in fiat currency.

Architecture

┌──────────────────────────────────────────────────────────────┐
│ Consumer Side │
│ │
│ Stripe ──▶ Top-Up ──▶ Ledger ──▶ Wallet Balance │
│ │
│ Wallet Balance ──▶ Token Lock / Voucher ──▶ Spend │
└──────────────────────────────────────────────────────────────┘


┌──────────────────────────────────────────────────────────────┐
│ Provider Side │
│ │
│ Capture ──▶ Platform Fee ──▶ Provider Earnings ──▶ Payout │
└──────────────────────────────────────────────────────────────┘

Next Steps