x402 breaking changes
Updated December 4, 2026
On this page
Latest version 1.2.0, released April 16, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 0.7.3 to 1.2.0: 4 breaking changes in 1 version.
- From 0.5.3 to 1.2.0: 141 breaking changes in 9 versions.
x402 1.2.0 breaking changes
- Signature changed
types:ErrorReasons
Was const ErrorReasons: readonly ["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after", "invalid_exact_evm_payload_authorization_valid_before", "invalid_exact_evm_payload_authorization_value"... npmjs.com - Signature changed
types:SettleResponseSchema
Was const SettleResponseSchema: z.ZodObject<{success: z.ZodBoolean; errorReason: z.ZodOptional<z.ZodEnum<["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after", "invalid_exact_evm_payload_authorization_valid_before"... npmjs.com - Signature changed
types:VerifyResponseSchema
Was const VerifyResponseSchema: z.ZodObject<{isValid: z.ZodBoolean; invalidReason: z.ZodOptional<z.ZodEnum<["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after"... npmjs.com - Signature changed
types:x402ResponseSchema
Was const x402ResponseSchema: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; error: z.ZodOptional<z.ZodEnum<["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after"... npmjs.com
x402 0.7.3 breaking changes
- Signature changed
types:ErrorReasons
Was const ErrorReasons: readonly ["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after", "invalid_exact_evm_payload_authorization_valid_before", "invalid_exact_evm_payload_authorization_value"... npmjs.com - Signature changed
types:SettleResponseSchema
Was const SettleResponseSchema: z.ZodObject<{success: z.ZodBoolean; errorReason: z.ZodOptional<z.ZodEnum<["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after", "invalid_exact_evm_payload_authorization_valid_before"... npmjs.com - Signature changed
types:VerifyResponseSchema
Was const VerifyResponseSchema: z.ZodObject<{isValid: z.ZodBoolean; invalidReason: z.ZodOptional<z.ZodEnum<["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after"... npmjs.com - Signature changed
types:x402ResponseSchema
Was const x402ResponseSchema: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; error: z.ZodOptional<z.ZodEnum<["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after"... npmjs.com
x402 0.7.2 breaking changes
- Removed
schemes:exact.svm.verifyCreateATAInstruction
exact.svm.verifyCreateATAInstruction was removed in x402 0.7.2 npmjs.com - Signature changed
shared:findMatchingPaymentRequirements
Was function findMatchingPaymentRequirements(paymentRequirements: PaymentRequirements[], payment: PaymentPayload): {scheme: "exact"; description: string; asset: string; maxAmountRequired: string; network: "base-sepolia" | "avalanche-fuji"... npmjs.com - Signature changed
types:DiscoveredResourceSchema
Was const DiscoveredResourceSchema: z.ZodObject<{resource: z.ZodString; type: z.ZodEnum<["http"]>; x402Version: z.ZodEffects<z.ZodNumber, number, number>; accepts: z.ZodArray<z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network... npmjs.com - Signature changed
types:EvmNetworkToChainId
Was const EvmNetworkToChainId: Map<"base-sepolia" | "avalanche-fuji" | "abstract" | "abstract-testnet" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "solana-devnet" | "solana", number>... npmjs.com - Signature changed
types:facilitatorRequestSchema
Was const facilitatorRequestSchema: z.ZodObject<{paymentHeader: z.ZodString; paymentRequirements: z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["abstract", "abstract-testnet", "base-sepolia", "base", "avalanche-fuji"... npmjs.com - Signature changed
types:ListDiscoveryResourcesResponseSchema
Was const ListDiscoveryResourcesResponseSchema: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; items: z.ZodArray<z.ZodObject<{resource: z.ZodString; type: z.ZodEnum<["http"]>; x402Version: z.ZodEffects<z.ZodNumber... npmjs.com - Signature changed
types:NetworkSchema
Was const NetworkSchema: z.ZodEnum<["abstract", "abstract-testnet", "base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet", "solana", "sei", "sei-testnet", "polygon", "polygon-amoy", "peaq"]>; now const... npmjs.com - Signature changed
types:PaymentPayloadSchema
Was const PaymentPayloadSchema: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["abstract", "abstract-testnet", "base-sepolia", "base", "avalanche-fuji", "avalanche"... npmjs.com - Signature changed
types:PaymentRequirementsSchema
Was const PaymentRequirementsSchema: z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["abstract", "abstract-testnet", "base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet", "solana", "sei"... npmjs.com - Signature changed
types:SettleRequestSchema
Was const SettleRequestSchema: z.ZodObject<{paymentPayload: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["abstract", "abstract-testnet", "base-sepolia", "base"... npmjs.com
And 6 more in this version. Sign up to see every change
x402 0.7.1 breaking changes
- Signature changed
shared:findMatchingPaymentRequirements
Was function findMatchingPaymentRequirements(paymentRequirements: PaymentRequirements[], payment: PaymentPayload): {scheme: "exact"; description: string; asset: string; maxAmountRequired: string; network: "base-sepolia" | "avalanche-fuji"... npmjs.com - Signature changed
types:DiscoveredResourceSchema
Was const DiscoveredResourceSchema: z.ZodObject<{resource: z.ZodString; type: z.ZodEnum<["http"]>; x402Version: z.ZodEffects<z.ZodNumber, number, number>; accepts: z.ZodArray<z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network... npmjs.com - Signature changed
types:ErrorReasons
Was const ErrorReasons: readonly ["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after", "invalid_exact_evm_payload_authorization_valid_before", "invalid_exact_evm_payload_authorization_value"... npmjs.com - Signature changed
types:EvmNetworkToChainId
Was const EvmNetworkToChainId: Map<"base-sepolia" | "avalanche-fuji" | "base" | "avalanche" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "peaq" | "iotex" | "solana-devnet" | "solana", number>; now const EvmNetworkToChainId... npmjs.com - Signature changed
types:facilitatorRequestSchema
Was const facilitatorRequestSchema: z.ZodObject<{paymentHeader: z.ZodString; paymentRequirements: z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex"... npmjs.com - Signature changed
types:ListDiscoveryResourcesResponseSchema
Was const ListDiscoveryResourcesResponseSchema: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; items: z.ZodArray<z.ZodObject<{resource: z.ZodString; type: z.ZodEnum<["http"]>; x402Version: z.ZodEffects<z.ZodNumber... npmjs.com - Signature changed
types:NetworkSchema
Was const NetworkSchema: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet", "solana", "sei", "sei-testnet", "polygon", "polygon-amoy", "peaq"]>; now const NetworkSchema: z.ZodEnum<["abstract"... npmjs.com - Signature changed
types:PaymentPayloadSchema
Was const PaymentPayloadSchema: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet"... npmjs.com - Signature changed
types:PaymentRequirementsSchema
Was const PaymentRequirementsSchema: z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet", "solana", "sei", "sei-testnet", "polygon", "polygon-amoy"... npmjs.com - Signature changed
types:SettleRequestSchema
Was const SettleRequestSchema: z.ZodObject<{paymentPayload: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche"... npmjs.com
And 7 more in this version. Sign up to see every change
x402 0.7.0 breaking changes
- Renamed
shared:getPaywallHtml
Use getPaywallHtml instead. npmjs.com - Signature changed
shared:findMatchingPaymentRequirements
Was function findMatchingPaymentRequirements(paymentRequirements: PaymentRequirements[], payment: PaymentPayload): {scheme: "exact"; description: string; network: "base-sepolia" | "avalanche-fuji" | "base" | "sei" | "sei-testnet" |... npmjs.com - Signature changed
types:DiscoveredResourceSchema
Was const DiscoveredResourceSchema: z.ZodObject<{resource: z.ZodString; type: z.ZodEnum<["http"]>; x402Version: z.ZodEffects<z.ZodNumber, number, number>; accepts: z.ZodArray<z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network... npmjs.com - Signature changed
types:ErrorReasons
Was const ErrorReasons: readonly ["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after", "invalid_exact_evm_payload_authorization_valid_before", "invalid_exact_evm_payload_authorization_value"... npmjs.com - Signature changed
types:facilitatorRequestSchema
Was const facilitatorRequestSchema: z.ZodObject<{paymentHeader: z.ZodString; paymentRequirements: z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex"... npmjs.com - Signature changed
types:ListDiscoveryResourcesResponseSchema
Was const ListDiscoveryResourcesResponseSchema: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; items: z.ZodArray<z.ZodObject<{resource: z.ZodString; type: z.ZodEnum<["http"]>; x402Version: z.ZodEffects<z.ZodNumber... npmjs.com - Signature changed
types:PaymentRequirementsSchema
Was const PaymentRequirementsSchema: z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet", "solana", "sei", "sei-testnet", "polygon", "polygon-amoy"... npmjs.com - Signature changed
types:SettleRequestSchema
Was const SettleRequestSchema: z.ZodObject<{paymentPayload: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche"... npmjs.com - Signature changed
types:SettleResponseSchema
Was const SettleResponseSchema: z.ZodObject<{success: z.ZodBoolean; errorReason: z.ZodOptional<z.ZodEnum<["insufficient_funds", "invalid_exact_evm_payload_authorization_valid_after", "invalid_exact_evm_payload_authorization_valid_before"... npmjs.com - Signature changed
types:VerifyRequestSchema
Was const VerifyRequestSchema: z.ZodObject<{paymentPayload: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche"... npmjs.com
And 2 more in this version. Sign up to see every change
x402 0.6.6 breaking changes
- Signature changed
client:createPaymentHeader
Was function createPaymentHeader(client: Signer | MultiNetworkSigner, x402Version: number, paymentRequirements: PaymentRequirements): Promise<string>; now function createPaymentHeader(client: Signer | MultiNetworkSigner, x402Version... npmjs.com - Signature changed
facilitator:settle
Was function settle<transport extends Transport, chain extends Chain>(client: Signer, payload: PaymentPayload, paymentRequirements: PaymentRequirements): Promise<SettleResponse>; now function settle<transport extends Transport, chain... npmjs.com - Signature changed
facilitator:verify
Was function verify<transport extends Transport, chain extends Chain, account extends Account | undefined>(client: ConnectedClient | Signer, payload: PaymentPayload, paymentRequirements: PaymentRequirements): Promise<VerifyResponse>; now... npmjs.com - Signature changed
shared:findMatchingPaymentRequirements
Was function findMatchingPaymentRequirements(paymentRequirements: PaymentRequirements[], payment: PaymentPayload): {scheme: "exact"; description: string; network: "base-sepolia" | "avalanche-fuji" | "base" | "sei" | "sei-testnet" |... npmjs.com - Signature changed
types:DiscoveredResourceSchema
Was const DiscoveredResourceSchema: z.ZodObject<{resource: z.ZodString; type: z.ZodEnum<["http"]>; x402Version: z.ZodEffects<z.ZodNumber, number, number>; accepts: z.ZodArray<z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network... npmjs.com - Signature changed
types:EvmNetworkToChainId
Was const EvmNetworkToChainId: Map<"base-sepolia" | "avalanche-fuji" | "base" | "sei" | "sei-testnet" | "polygon" | "polygon-amoy" | "avalanche" | "iotex" | "solana-devnet" | "solana", number>; now const EvmNetworkToChainId... npmjs.com - Signature changed
types:facilitatorRequestSchema
Was const facilitatorRequestSchema: z.ZodObject<{paymentHeader: z.ZodString; paymentRequirements: z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex"... npmjs.com - Signature changed
types:ListDiscoveryResourcesResponseSchema
Was const ListDiscoveryResourcesResponseSchema: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; items: z.ZodArray<z.ZodObject<{resource: z.ZodString; type: z.ZodEnum<["http"]>; x402Version: z.ZodEffects<z.ZodNumber... npmjs.com - Signature changed
types:NetworkSchema
Was const NetworkSchema: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet", "solana", "sei", "sei-testnet", "polygon", "polygon-amoy"]>; now const NetworkSchema: z.ZodEnum<["base-sepolia", "base"... npmjs.com - Signature changed
types:PaymentPayloadSchema
Was const PaymentPayloadSchema: z.ZodObject<{x402Version: z.ZodEffects<z.ZodNumber, number, number>; scheme: z.ZodEnum<["exact"]>; network: z.ZodEnum<["base-sepolia", "base", "avalanche-fuji", "avalanche", "iotex", "solana-devnet"... npmjs.com
And 8 more in this version. Sign up to see every change
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
x402 0.6.5 breaking changes
- Signature changed
shared:findMatchingPaymentRequirements
Was function findMatchingPaymentRequirements(paymentRequirements: PaymentRequirements[], payment: PaymentPayload): {scheme: "exact"; description: string; network: "base-sepolia" | "avalanche-fuji" | "base" | "sei" | "sei-testnet" |... npmjs.com - Signature changed
types:DiscoveredResourceSchema
Was const DiscoveredResourceSchema: z.ZodObject<{resource: z.ZodString; type: z.ZodEnum<["http"]>; x402Version: z.ZodEffects<z.ZodNumber, number, number>; accepts: z.ZodArray<z.ZodObject<{scheme: z.ZodEnum<["exact"]>; network... npmjs.com
And 13 more in this version.
x402 0.6.1 breaking changes
- Signature changed
verify:CreateHeaders
Was type CreateHeaders = () => Promise<{verify: Record<string, string>; settle: Record<string, string>; list?: Record<string, string>;}>; now type CreateHeaders = () => Promise<{verify: Record<string, string>; settle: Record<string... npmjs.com
x402 0.6.0 breaking changes
- Signature changed
client:createPaymentHeader
Was function createPaymentHeader(client: SignerWallet | LocalAccount, x402Version: number, paymentRequirements: PaymentRequirements): Promise<string>; now function createPaymentHeader(client: Signer | MultiNetworkSigner, x402Version... npmjs.com - Signature changed
client:PaymentRequirementsSelector
Was type PaymentRequirementsSelector = (paymentRequirements: PaymentRequirements[], network?: Network, scheme?: "exact") => PaymentRequirements; now type PaymentRequirementsSelector = (paymentRequirements: PaymentRequirements[], network?... npmjs.com
And 52 more in this version.
x402 0.5.3 breaking changes
- Signature changed
types:PaymentMiddlewareConfig
Was type PaymentMiddlewareConfig = {description?: string; mimeType?: string; maxTimeoutSeconds?: number; inputSchema?: Omit<HTTPRequestStructure, "type" | "method">; outputSchema?: object; customPaywallHtml?: string; resource?: Resource... npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.