@coinbase/agentkit 0.2.3-nightly.20250221.9 → 0.2.3-nightly.20250223.12

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 +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -454,13 +454,14 @@ const walletProvider = await CdpWalletProvider.configureWithWallet({
454
454
 
455
455
  #### Configuring from a mnemonic phrase
456
456
 
457
- The `CdpWalletProvider` can be configured from a mnemonic phrase by passing the `mnemonicPhrase` parameter to the `configureWithWallet` method.
457
+ The `CdpWalletProvider` can be configured from a mnemonic phrase by passing the `mnemonicPhrase` and `networkId` parameters to the `configureWithWallet` method. If `networkId` is not defined, the `CdpWalletProvider` will fall back to the env var `NETWORK_ID`, and if that is not defined, it will default to `base-sepolia`.
458
458
 
459
459
  ```typescript
460
460
  import { CdpWalletProvider } from "@coinbase/agentkit";
461
461
 
462
462
  const walletProvider = await CdpWalletProvider.configureWithWallet({
463
463
  mnemonicPhrase: "MNEMONIC PHRASE",
464
+ networkId: "base-sepolia",
464
465
  });
465
466
  ```
466
467
 
@@ -473,6 +474,7 @@ import { CdpWalletProvider } from "@coinbase/agentkit";
473
474
 
474
475
  const walletProvider = await CdpWalletProvider.configureWithWallet({
475
476
  mnemonicPhrase: "MNEMONIC PHRASE",
477
+ networkId: "base-sepolia",
476
478
  });
477
479
 
478
480
  const walletData = await walletProvider.exportWallet();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@coinbase/agentkit",
3
3
  "description": "Coinbase AgentKit core primitives",
4
4
  "repository": "https://github.com/coinbase/agentkit",
5
- "version": "0.2.3-nightly.20250221.9",
5
+ "version": "0.2.3-nightly.20250223.12",
6
6
  "author": "Coinbase Inc.",
7
7
  "license": "Apache-2.0",
8
8
  "main": "dist/index.js",