Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.x402.org/llms.txt

Use this file to discover all available pages before exploring further.

The batch-settlement payment scheme lets buyers fund an onchain channel once, then authorize many HTTP-paid requests with off-chain signatures (vouchers). Value moves onchain later in batches, instead of every request carrying its own settlement transaction. That matches workloads where per-request gas or facilitator overhead would dominate tiny charges—for example agents, streaming, or metered inference where each call can cost a different amount.

How it relates to exact and upto

SchemeTypical useWhen value moves onchain
exactFixed price per requestWith each settled payment
uptoVariable amount up to a signed maximumWith each settled payment
batch-settlementSame “up to” pricing idea, but across many requests over one funded channelLater, in claim/settle batches (network-specific)
For batch-settlement, the payment requirement’s amount is still a per-request ceiling. The seller records actual usage up to that maximum (aligned with upto semantics). Settlement batches accumulate those charges, rather than executing a full transfer on every call.

What happens on EVM (capital-backed)

The reference binding uses stateless unidirectional channels: the payer deposits ERC-20 into an escrow contract, then signs monotonic cumulative vouchers (maxClaimableAmount) per request. The seller verifies vouchers cheaply (signature check), then submits batched claims and a separate settle step when redeeming—see the EVM binding specification. Deposits typically use EIP-3009 or Permit2, consistent with other EVM schemes. Which chains are available depends on network support and whether the batch-settlement contracts are deployed for that chain.

Protocol vs. SDK docs

Reference implementations

SDKStatusPackage / module
TypeScriptSupported@x402/evm/batch-settlement (client, server, facilitator)
GoSupportedgo/mechanisms/evm/batch-settlement
PythonNot yetPlanned
Examples: Feature parity across SDKs is summarized on SDK Features.

See also