@dexterai/x402 1.6.4 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.cjs +16 -7
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +7 -4
- package/dist/client/index.d.ts +7 -4
- package/dist/client/index.js +17 -14
- package/dist/client/index.js.map +1 -1
- package/dist/server/index.cjs +2 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +2 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -577,11 +577,12 @@ if (btn) {
|
|
|
577
577
|
payload = btoa(payload);
|
|
578
578
|
|
|
579
579
|
// 6. Build payment-signature header (x402 v2 format)
|
|
580
|
+
// Solana: payload must be { transaction: base64Tx } per SDK spec
|
|
580
581
|
const paymentSignature = {
|
|
581
582
|
x402Version: accept.x402Version ?? 2,
|
|
582
583
|
resource: requirements.resource,
|
|
583
584
|
accepted: accept,
|
|
584
|
-
payload,
|
|
585
|
+
payload: { transaction: payload },
|
|
585
586
|
};
|
|
586
587
|
const paymentHeader = btoa(JSON.stringify(paymentSignature));
|
|
587
588
|
|