Main entry point for @solana/pay-kit providing protocol-agnostic payment gating with factory function and framework handlers.
// Source: https://github.com/solana-foundation/pay-kit | License: MIT | Copyright 2026 Solana Foundation
// Provided via justclaw.it.com; keep this notice with the code.
/**
* @solana/pay-kit — protocol-agnostic payment gating for HTTP services.
*
* One factory, one config object: `createPayKit({ network, operator, accept,
* pricing })` returns an instance with the canonical verb trio
* (`requirePayment` / `paid` / `payment`) and framework handlers
* (`express` / `hono` / `fetch`). Gate names are inferred from `pricing`.
* Payment protocols (x402, MPP) stay invisible to application code — the only
* protocol knob is `accept`. See docs/paykit-interface.md.
*/
export type { ProtocolAdapter } from './adapter.js';
export {
assertX402AcceptedMatchesRoute,
assertX402FeePayerIs
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key