The thirdweb SDK now supports x402 protocol version 2, introducing header-based payment flows for improved efficiency and flexibility in blockchain payment integrations.
Notable Changes
* New Payment Headers: v2 uses PAYMENT-SIGNATURE for requests and PAYMENT-RESPONSE for responses, replacing the v1 headers (X-PAYMENT and X-PAYMENT-RESPONSE)
* Streamlined Responses: Payment requirements are now encoded