Knowledge Base updated: 2026-11-10
Solana Pay Knowledge Base
This repository combines a Rust payment runtime and CLI with agent-protocol integrations, distributable plugins, a TypeScript Solana Pay SDK, merchant examples, and a payment-debugger web UI.
Critical payment state spans local and remote wallet identities, payment channels and settlement records, API and worker services, and client-visible receipts. The CLI, MCP/ACP integrations, Connect service, and proxy components expose these capabilities to users and agents.
flowchart LR
CLI[pay CLI] --> Runtime[Rust payment runtime]
MCP[MCP / ACP integrations] --> Runtime
Plugins[Agent payment plugins] --> MCP
Runtime --> Gateway[Payment gateway]
Gateway --> Providers[Wallet and credit providers]
Runtime --> Channels[Session channels and metering]
Channels --> Workers[Settlement workers]
Runtime --> API[pay-api]
Runtime --> Connect[Hosted Connect service]
Runtime --> Proxy[HTTP payment proxy]
CLI --> Catalog[Skills and provider catalog]
SDK[TypeScript Solana Pay SDK] --> Merchant[Merchant examples]
Runtime --> Debugger[Payment debugger]
Debugger --> API
Runtime --> Inference[Inference marketplace]
Glossary
- MPP — payment-channel protocol and its versioned channel profiles.
- Pay Connect — hosted service for tenant payment identities and wallet authorization.
- Session channel — metered payment session whose lifecycle culminates in settlement.
- Payer proxy — component that makes payment-aware requests on behalf of a payer.
- Skill — installable guidance and tooling package used by CLI and agent workflows.
Invariants
- Payment-aware server requests must pass gateway authentication and payment enforcement before protected upstream handling; see
crates/pay-server/**andcrates/pay-runtime/**. - Channel charges use compatible credit-provider and channel-profile models; see
crates/pay-runtime/**/channel*andcrates/pay-runtime/**/credit*. - Settlement is performed by dedicated worker jobs rather than request handlers; see
crates/pay-worker/**. - CLI account selection is shared configuration consumed by payment operations; see
crates/pay-cli/**. - Solana Pay transfer URLs and transactions are validated through SDK primitives; see
packages/solana-pay/**.
Routing table
crates/pay-cli/**-> docs/payment-cli.mdcrates/pay-cli/**/account*-> docs/cli-account-management.mdcrates/pay-cli/**/wallet*-> docs/cli-account-management.mdcrates/pay-cli/**/balance*-> docs/cli-payment-operations.mdcrates/pay-cli/**/transfer*-> docs/cli-payment-operations.mdcrates/pay-cli/**/curl*-> docs/cli-payment-operations.mdcrates/pay-cli/**/skill*-> docs/cli-skills-and-catalog.mdcrates/pay-cli/**/catalog*-> docs/cli-skills-and-catalog.mdcrates/pay-cli/**/server*-> docs/cli-server-and-inference.mdcrates/pay-cli/**/inference*-> docs/cli-server-and-inference.mdcrates/pay-runtime/**-> docs/rust-payment-runtime.mdcrates/pay-client/**-> docs/runtime-client-payment-flows.mdcrates/pay-runtime/**/client*-> docs/runtime-client-payment-flows.mdcrates/pay-server/**-> docs/runtime-payment-gateway.mdcrates/pay-runtime/**/gateway*-> docs/runtime-payment-gateway.mdcrates/pay-runtime/**/remote*-> docs/runtime-remote-wallet-providers.mdcrates/pay-runtime/**/ledger*-> docs/runtime-remote-wallet-providers.mdcrates/pay-runtime/**/channel*-> docs/runtime-session-channels-and-metering.mdcrates/pay-runtime/**/session*-> docs/runtime-session-channels-and-metering.mdcrates/pay-runtime/**/credit*-> docs/runtime-credit-providers-and-channel-profiles.mdcrates/pay-runtime/**/profile*-> docs/runtime-credit-providers-and-channel-profiles.mdcrates/pay-api/**-> docs/runtime-api-and-workers.mdcrates/pay-worker/**-> docs/runtime-api-and-workers.mdcrates/pay-bench/**-> docs/runtime-benchmark-harness.mdcrates/pay-connect/**-> docs/cloud-payment-onboarding.mdcrates/pay-proxy/**-> docs/http-payment-proxy.mdcrates/pay-runtime/**/policy*-> docs/deployment-payment-policy.mdcrates/pay-runtime/**/inference*-> docs/runtime-inference-marketplace-selling.mdcrates/pay-mcp/**-> docs/agent-protocol-integrations.mdcrates/pay-acp/**-> docs/agent-protocol-integrations.mdcrates/pay-mcp/**-> docs/mcp-payment-tools.mdcrates/pay-acp/**-> docs/acp-payment-middleware.mdservices/mcp-*/**-> docs/managed-mcp-service-providers.mdplugins/**-> docs/agent-payment-plugins.mdplugins/pay-runtime/**-> docs/agent-pay-runtime-plugin.mdplugins/pay-cli/**-> docs/agent-pay-cli-plugin.mdpackages/solana-pay/**-> docs/typescript-solana-pay-sdk.mdpackages/solana-pay/**/transfer*-> docs/solana-pay-transfer-primitives.mdexamples/**/merchant*/**-> docs/solana-pay-merchant-examples.mdapps/payment-debugger/**-> docs/payment-debugger-web-ui.mdapps/payment-debugger/**/src/**-> docs/debugger-ui-and-correlation-api.mdapps/payment-debugger/**/api/**-> docs/debugger-ui-and-correlation-api.md