You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can configure how long the wallet will wait for user responses before timing out. This is useful if you need more time to review transactions or if you want faster failures:
420
+
421
+
```typescript
422
+
// Default timeout (5 minutes = 300000ms)
423
+
const wallet =newNodeArweaveWallet()
424
+
425
+
// Custom timeout (10 minutes)
426
+
const wallet =newNodeArweaveWallet({
427
+
requestTimeout: 600000// 10 minutes in milliseconds
428
+
})
429
+
430
+
// Shorter timeout (1 minute) for faster failures
431
+
const wallet =newNodeArweaveWallet({
432
+
requestTimeout: 60000// 1 minute in milliseconds
433
+
})
434
+
435
+
// All options together
436
+
const wallet =newNodeArweaveWallet({
437
+
port: 3737,
438
+
freePort: true,
439
+
requestTimeout: 300000, // 5 minutes
440
+
})
441
+
```
442
+
443
+
**Note:** The timeout applies to individual wallet operations (signing, encrypting, etc.). If the user doesn't respond within this time, the operation will fail with a timeout error.
444
+
415
445
## 💡 Usage Examples
416
446
417
447
### CLI Tool Example
@@ -604,9 +634,17 @@ The URL will be printed to the console. Open it manually:
604
634
http://localhost:3737
605
635
```
606
636
607
-
### Connection Timeout
637
+
### Request Timeout
638
+
639
+
Keep the browser tab open while signing transactions. The package has a default 5-minute timeout for each wallet operation (configurable via `requestTimeout` option). If you need more time to review transactions, increase the timeout:
640
+
641
+
```typescript
642
+
const wallet =newNodeArweaveWallet({
643
+
requestTimeout: 600000// 10 minutes
644
+
})
645
+
```
608
646
609
-
Keep the browser tab open while signing transactions. The package has a generous 5-minute timeout, but closing the tab will interrupt operations.
647
+
**Note:** Closing the browser tab will immediately interrupt operations regardless of the timeout setting.
0 commit comments