Accounts & Wallets
We distinguish between "accounts" and "wallets" in the thirdweb SDK. We believe this ultimately provides a more predictable and flexible API for developers.
- 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)
- 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".