moltspay 0.4.0 → 0.4.1

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/README.md CHANGED
@@ -260,7 +260,7 @@ import { createX402Client } from 'moltspay/x402';
260
260
  const client = await createX402Client({ chain: 'base' });
261
261
 
262
262
  // Make request - payment handled automatically
263
- const response = await client.fetch('https://api.example.com/paid-resource', {
263
+ const response = await client.fetch('https://juai8.com/x402pay', {
264
264
  method: 'POST',
265
265
  headers: { 'Content-Type': 'application/json' },
266
266
  body: JSON.stringify({ prompt: 'a cat dancing' })
@@ -275,9 +275,9 @@ const result = await response.json();
275
275
  import { x402Fetch } from 'moltspay/x402';
276
276
 
277
277
  // Single paid request (creates client internally)
278
- const response = await x402Fetch('https://api.example.com/video', {
278
+ const response = await x402Fetch('https://juai8.com/x402pay', {
279
279
  method: 'POST',
280
- body: JSON.stringify({ prompt: '...' })
280
+ body: JSON.stringify({ prompt: 'a cat dancing' })
281
281
  }, { chain: 'base' });
282
282
  ```
283
283
 
@@ -330,7 +330,7 @@ const client = await createX402Client({
330
330
  });
331
331
 
332
332
  // Make paid requests
333
- const response = await client.fetch('https://api.example.com/paid-resource');
333
+ const response = await client.fetch('https://juai8.com/x402pay');
334
334
  ```
335
335
 
336
336
  ### Direct CDP Wallet Usage
package/dist/index.d.mts CHANGED
@@ -633,7 +633,7 @@ declare function parseStatusMarker(message: string): {
633
633
  * const client = await createX402Client({ chain: 'base', useCDP: true });
634
634
  *
635
635
  * // Make request - payment handled automatically
636
- * const response = await client.fetch('https://api.example.com/paid-resource');
636
+ * const response = await client.fetch('https://juai8.com/x402pay');
637
637
  * ```
638
638
  */
639
639
 
@@ -671,7 +671,7 @@ declare function isX402Available(): boolean;
671
671
  * const client = await createX402Client({ chain: 'base' });
672
672
  *
673
673
  * // Request paid API - payment handled automatically
674
- * const response = await client.fetch('https://zen7.api/video', {
674
+ * const response = await client.fetch('https://juai8.com/x402pay', {
675
675
  * method: 'POST',
676
676
  * headers: { 'Content-Type': 'application/json' },
677
677
  * body: JSON.stringify({ prompt: 'a cat dancing' })
@@ -690,7 +690,7 @@ declare function createX402Client(config?: X402ClientConfig): Promise<X402Client
690
690
  * ```typescript
691
691
  * import { x402Fetch } from 'moltspay/x402';
692
692
  *
693
- * const response = await x402Fetch('https://zen7.api/video', {
693
+ * const response = await x402Fetch('https://juai8.com/x402pay', {
694
694
  * method: 'POST',
695
695
  * body: JSON.stringify({ prompt: 'a cat dancing' })
696
696
  * }, { chain: 'base' });
package/dist/index.d.ts CHANGED
@@ -633,7 +633,7 @@ declare function parseStatusMarker(message: string): {
633
633
  * const client = await createX402Client({ chain: 'base', useCDP: true });
634
634
  *
635
635
  * // Make request - payment handled automatically
636
- * const response = await client.fetch('https://api.example.com/paid-resource');
636
+ * const response = await client.fetch('https://juai8.com/x402pay');
637
637
  * ```
638
638
  */
639
639
 
@@ -671,7 +671,7 @@ declare function isX402Available(): boolean;
671
671
  * const client = await createX402Client({ chain: 'base' });
672
672
  *
673
673
  * // Request paid API - payment handled automatically
674
- * const response = await client.fetch('https://zen7.api/video', {
674
+ * const response = await client.fetch('https://juai8.com/x402pay', {
675
675
  * method: 'POST',
676
676
  * headers: { 'Content-Type': 'application/json' },
677
677
  * body: JSON.stringify({ prompt: 'a cat dancing' })
@@ -690,7 +690,7 @@ declare function createX402Client(config?: X402ClientConfig): Promise<X402Client
690
690
  * ```typescript
691
691
  * import { x402Fetch } from 'moltspay/x402';
692
692
  *
693
- * const response = await x402Fetch('https://zen7.api/video', {
693
+ * const response = await x402Fetch('https://juai8.com/x402pay', {
694
694
  * method: 'POST',
695
695
  * body: JSON.stringify({ prompt: 'a cat dancing' })
696
696
  * }, { chain: 'base' });