A unified a web3 account: creates a smart wallet with an embedded wallet as signer
Optionalparams: CreateAccountOptionsOptional creation parameters
Optional additional owners. The embedded wallet address is inserted at the specified index
Optional index at which to insert the embedded wallet address (defaults to end)
Optional nonce/salt for deterministic address generation (defaults to 0)
Promise that resolves to the created SmartWallet
Creates a smart wallet (you provide signer and owners)
Smart wallet creation parameters
Owners for the smart wallet (addresses or WebAuthn public keys)
Local account used for signing transactions
Optional nonce/salt for deterministic address generation (defaults to 0)
Promise that resolves to the created SmartWallet
Gets a unified web3 account: a smart wallet using an embedded wallet as the signer
Retrieval parameters
Embedded wallet ID used to locate the signer wallet
Optional original deployment owners used for address calculation
Index of the signer within the current owners set (defaults to 0)
Optional explicit smart wallet address (skips calculation)
Optional nonce used during original creation
Promise that resolves to the SmartWallet
Gets an existing embedded wallet by ID
Retrieval parameters
Embedded wallet ID to retrieve
Promise that resolves to the EmbeddedWallet (or null/undefined per provider contract)
Gets a smart wallet using a provided signer
Retrieval parameters
Signer (local account)
Original deployment owners (required if walletAddress is not provided)
Index of the signer within the current owners set (defaults to 0)
Explicit smart wallet address (skips calculation)
Optional nonce used during original creation
Promise that resolves to the SmartWallet
Wallet namespace to create and retrieve different wallet formats and overall web3 account
Remarks
This class is returned by MyceliumSDK and provides a methods to create and retrieve different wallet formats The common methods are:
Example