@aztec/wallet-sdk 5.2.0-nightly.20260813 → 5.2.0-nightly.20260815

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.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -320,6 +320,38 @@ function useWalletDiscovery(chainInfo: ChainInfo, appId: string) {
320
320
  }
321
321
  ```
322
322
 
323
+ ## Credentialed node RPC
324
+
325
+ When an embedded wallet connects to a cross-origin node that uses session cookies, opt in to browser credentials through the node client options:
326
+
327
+ ```typescript
328
+ import { EmbeddedWallet } from '@aztec/wallets/embedded';
329
+
330
+ const wallet = await EmbeddedWallet.create('https://rpc.example.com', {
331
+ nodeClientOptions: {
332
+ fetchOptions: { credentials: 'include' },
333
+ maxBatchSize: 50,
334
+ },
335
+ });
336
+ ```
337
+
338
+ Node.js does not manage cookies automatically. Applications that need affinity there can inject any asynchronous cookie jar, including a `tough-cookie` jar installed by the application:
339
+
340
+ ```typescript
341
+ import { Agent, makeUndiciFetch } from '@aztec/foundation/json-rpc/undici';
342
+ import { EmbeddedWallet } from '@aztec/wallets/embedded';
343
+ import { CookieJar } from 'tough-cookie';
344
+
345
+ const wallet = await EmbeddedWallet.create('https://rpc.example.com', {
346
+ nodeClientOptions: {
347
+ fetch: makeUndiciFetch(new Agent(), new CookieJar()),
348
+ maxBatchSize: 50,
349
+ },
350
+ });
351
+ ```
352
+
353
+ Cookie storage is optional.
354
+
323
355
  ## Storage backends
324
356
 
325
357
  Your wallet and the PXE it embeds persist state through a pluggable key-value store (`@aztec/kv-store`). In the browser there are two backends:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aztec/wallet-sdk",
3
3
  "homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/wallet-sdk",
4
- "version": "5.2.0-nightly.20260813",
4
+ "version": "5.2.0-nightly.20260815",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./base-wallet": "./dest/base-wallet/index.js",
@@ -75,15 +75,15 @@
75
75
  ]
76
76
  },
77
77
  "dependencies": {
78
- "@aztec/aztec.js": "5.2.0-nightly.20260813",
79
- "@aztec/constants": "5.2.0-nightly.20260813",
80
- "@aztec/entrypoints": "5.2.0-nightly.20260813",
81
- "@aztec/foundation": "5.2.0-nightly.20260813",
82
- "@aztec/pxe": "5.2.0-nightly.20260813",
83
- "@aztec/stdlib": "5.2.0-nightly.20260813"
78
+ "@aztec/aztec.js": "5.2.0-nightly.20260815",
79
+ "@aztec/constants": "5.2.0-nightly.20260815",
80
+ "@aztec/entrypoints": "5.2.0-nightly.20260815",
81
+ "@aztec/foundation": "5.2.0-nightly.20260815",
82
+ "@aztec/pxe": "5.2.0-nightly.20260815",
83
+ "@aztec/stdlib": "5.2.0-nightly.20260815"
84
84
  },
85
85
  "devDependencies": {
86
- "@aztec/noir-contracts.js": "5.2.0-nightly.20260813",
86
+ "@aztec/noir-contracts.js": "5.2.0-nightly.20260815",
87
87
  "@jest/globals": "^30.0.0",
88
88
  "@types/jest": "^30.0.0",
89
89
  "@types/node": "^22.15.17",