Agent payments
Agent payments in the Carbium Library: 5 working Solana examples, among them Late payment check by block time and x402 payment requirements check.
- Late payment check by block time SI0104
Read a payment's slot and block time over RPC, compare it with an invoice deadline in unix seconds, and print on time or late with the gap.
- x402 payment requirements check SI0100
A read-only Solana preflight for an x402 402 response: is the asset a real mint, does the amount fit its decimals, and can payTo receive the token.
- Prepaid MCP tool credits, vendor-neutral SI0051
A SQLite balance recomputed from USDC deposits keyed by transaction signature and local debits, so a rescan never double-credits prepaid MCP tool calls.
- Agent payment reconciliation SI0030
A read-only Node check that matches an agent's payment ledger against the balance change each landed transaction made to a Solana wallet.
- x402 payment verifier SI0008
A read-only check that an x402 payment landed on Solana: right token, right recipient, enough, fresh and never used before, read back at finalized.