@agentspend/sdk 0.3.4 → 0.3.5
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/index.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -234,7 +234,7 @@ function createAgentSpend(options) {
|
|
|
234
234
|
asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base
|
|
235
235
|
payTo,
|
|
236
236
|
maxTimeoutSeconds: 300,
|
|
237
|
-
extra: {}
|
|
237
|
+
extra: { name: "USD Coin", version: "2" }
|
|
238
238
|
};
|
|
239
239
|
// Verify payment via facilitator
|
|
240
240
|
const verifyResult = await facilitator.verify(paymentPayload, paymentRequirements);
|
|
@@ -278,7 +278,7 @@ function createAgentSpend(options) {
|
|
|
278
278
|
asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base
|
|
279
279
|
payTo,
|
|
280
280
|
maxTimeoutSeconds: 300,
|
|
281
|
-
extra: {}
|
|
281
|
+
extra: { name: "USD Coin", version: "2" }
|
|
282
282
|
};
|
|
283
283
|
// Build x402 v2 PaymentRequired response
|
|
284
284
|
const paymentRequired = {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -417,7 +417,7 @@ export function createAgentSpend(options: AgentSpendOptions): AgentSpend {
|
|
|
417
417
|
asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base
|
|
418
418
|
payTo,
|
|
419
419
|
maxTimeoutSeconds: 300,
|
|
420
|
-
extra: {}
|
|
420
|
+
extra: { name: "USD Coin", version: "2" }
|
|
421
421
|
};
|
|
422
422
|
|
|
423
423
|
// Verify payment via facilitator
|
|
@@ -489,7 +489,7 @@ export function createAgentSpend(options: AgentSpendOptions): AgentSpend {
|
|
|
489
489
|
asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base
|
|
490
490
|
payTo,
|
|
491
491
|
maxTimeoutSeconds: 300,
|
|
492
|
-
extra: {}
|
|
492
|
+
extra: { name: "USD Coin", version: "2" }
|
|
493
493
|
};
|
|
494
494
|
|
|
495
495
|
// Build x402 v2 PaymentRequired response
|