WalletNamespace
Wallet namespace that provides unified wallet operationsMethods
| Function | Description |
|---|---|
| createSmartWallet() | Create a new smart wallet |
| createSigner() | Create a viem LocalAccount signer from the hosted wallet |
| toActionsWallet() | Convert a hosted wallet to an Actions wallet |
| getSmartWallet() | Get an existing smart wallet with a provided signer |
createSmartWallet()
Create a new smart wallet
Parameters:
| Parameter | Type | Description |
|---|---|---|
params | CreateSmartWalletOptions | Smart wallet creation parameters |
params.owners | Array of owners for the smart wallet (addresses or WebAuthn public keys) | |
params.signer | Local account used for signing transactions (must be in owners array) | |
params.nonce | Optional nonce for smart wallet address generation (defaults to 0) | |
params.deploymentChainIds | Optional chain IDs to deploy the wallet to. | |
| If not provided, the wallet will be deployed to all supported chains. |
wallet: The created SmartWallet instancedeployments: Array of deployment results with chainId, receipt, success flag, and error
createSigner()
Create a viem LocalAccount signer from the hosted wallet
Parameters:
| Parameter | Type | Description |
|---|---|---|
params | TToActionsMap[THostedProviderType] | Configuration for the signer |
LocalAccount with the hosted wallet as the signer backend
↗
toActionsWallet()
Convert a hosted wallet to an Actions wallet
Parameters:
| Parameter | Type | Description |
|---|---|---|
params | TToActionsMap[THostedProviderType] | Parameters for converting a hosted wallet to an Actions wallet |
params.walletId | Unique identifier for the hosted wallet | |
params.address | Ethereum address of the hosted wallet |
getSmartWallet()
Get an existing smart wallet with a provided signer
Parameters:
| Parameter | Type | Description |
|---|---|---|
signer | Local account to use for signing transactions on the smart wallet | |
getWalletParams | Wallet retrieval parameters | |
getWalletParams.deploymentOwners | Array of original deployment owners for smart wallet address calculation. Required if walletAddress not provided. Must match the exact owners array used during wallet deployment. | |
getWalletParams.signerOwnerIndex | Current index of the signer in the smart wallet’s current owners array (used for transaction signing). Defaults to 0 if not specified. This may differ from the original deployment index if owners have been modified. | |
getWalletParams.walletAddress | Optional explicit smart wallet address (skips address calculation) | |
getWalletParams.nonce | Optional nonce used during smart wallet creation |
Wallet
Base actions wallet classNamespaces
| Namespace | Type | Description |
|---|---|---|
lend | WalletLendNamespace<BaseLendConfig> | Lend namespace with all lending operations |
Properties
| Property | Type | Description |
|---|---|---|
address | Address | Get the address of this actions wallet |
signer | LocalAccount | Get a signer for this actions wallet |
Methods
| Function | Description |
|---|---|
| getBalance() | Get asset balances across all supported chains |
| send() | Send a transaction using this actions wallet |
| sendBatch() | Send a batch of transactions using this actions wallet |
getBalance()
Get asset balances across all supported chains
Returns: Promise resolving to array of token balances with chain breakdown
↗
send()
Send a transaction using this actions wallet
Parameters:
| Parameter | Type | Description |
|---|---|---|
transactionData | TransactionData | The transaction data to execute |
chainId | SupportedChainId | Target blockchain chain ID |
sendBatch()
Send a batch of transactions using this actions wallet
Parameters:
| Parameter | Type | Description |
|---|---|---|
transactionData | TransactionData[] | The transaction data to execute |
chainId | SupportedChainId | Target blockchain chain ID |