[package] name = "op-rails-x402" version.workspace = true edition.workspace = true license.workspace = true repository.workspace = true description = "OpenPay x402 rail — the HTTP 402 'Payment Required' agentic-payment protocol. Speaks both wire versions: v1 (X-PAYMENT, maxAmountRequired) and v2 (PAYMENT-REQUIRED / PAYMENT-SIGNATURE / PAYMENT-RESPONSE, CAIP-2 networks, all four schemes — exact, upto, auth-capture and batch-settlement — declared payment flows, the facilitator split into verify + settle, and resource discovery). Emits the challenge from an OpenPay Money, enforces every metered scheme's settled <= authorized bound locally, and keeps an auth-capture payment's book of what is held, captured and refunded against its deadlines; the on-chain edge stays behind a pluggable seam." [dependencies] op-core = { path = "../op-core" } serde = { workspace = true } serde_json = { workspace = true } thiserror = { workspace = true }