Accounts & Wallets
We have decided to distinguish between "accounts" and "wallets" in the thirdweb SDK. We believe this ultimately provides a more predictable and flexible API for developers.
What is an Account?
- An account always has an
address
and a way tosign
messages, transactions, and typed data. - An account is always mapped to exactly one address on the blockchain.
- An account cannot be "connected" or "disconnected" like a wallet, instead it is often the result of a wallet being connected.
See also: Account (ethereum.org)
What is a Wallet?
- A wallet "contains" one or more accounts.
- A wallet can be "connected" (often prompting the user for approval) or "disconnected".
- A wallet cannot independently sign messages, transactions, or typed data, instead, it delegates this to the account(s) it "contains".