Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 721f615

Browse files
author
Dan Forbes
committed
Add a note about wallet context
1 parent 3dd7932 commit 721f615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/guides/wallet/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The following is a list of [`Accounts`](/libdocs/Accounts) methods in the `web3.
9494

9595
## Wallets
9696

97-
A Web3.js wallet is a collection of accounts and is represented with the [`Wallet`](/api/web3-eth-accounts/class/Wallet) class. The following snippet demonstrates creating a wallet with 2 new random accounts and using the second account to sign a message:
97+
A Web3.js wallet is a collection of accounts and is represented with the [`Wallet`](/api/web3-eth-accounts/class/Wallet) class. When a wallet is used to track an account, that account is added to an internal context (i.e. [`Web3Context`](/api/web3-core/class/Web3Context/)), which makes it easier to use that account in the future - this is described in more detail in the [transactions tutorial](/guides/wallet/transactions). The following snippet demonstrates creating a wallet with 2 new random accounts and using the second account to sign a message:
9898

9999
```js
100100
// create a wallet with 2 new random accounts

0 commit comments

Comments
 (0)