Skip to main content

WalletNamespace

Wallet namespace that provides unified wallet operations

Methods

FunctionDescription
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
ParameterTypeDescription
paramsCreateSmartWalletOptionsSmart wallet creation parameters
params.signerLocalAccountPrimary local account used for signing transactions
params.signersSigner[]Optional array of additional signers for the smart wallet
params.noncebigintOptional nonce for smart wallet address generation (defaults to 0)
params.deploymentChainIdsSupportedChainId[]Optional chain IDs to deploy the wallet to. If not provided, the wallet will be deployed to all supported chains.
Returns: Promise resolving to deployment result containing:
  • wallet: The created SmartWallet instance
  • deployments: Array of deployment results with chainId, receipt, success flag, and error
Throws: Error if signer is not included in the signers array Source ↗

createSigner()

Create a viem LocalAccount signer from the hosted wallet
ParameterTypeDescription
paramsTToActionsMap[THostedProviderType]Configuration for the signer
Returns: Promise resolving to a viem LocalAccount with the hosted wallet as the signer backend Source ↗

toActionsWallet()

Convert a hosted wallet to an Actions wallet
ParameterTypeDescription
paramsTToActionsMap[THostedProviderType]Parameters for converting a hosted wallet to an Actions wallet
params.walletIdUnique identifier for the hosted wallet
params.addressEthereum address of the hosted wallet
Returns: Promise resolving to the Actions wallet instance Source ↗

getSmartWallet()

Get an existing smart wallet with a provided signer
ParameterTypeDescription
paramsGetSmartWalletOptionsWallet retrieval parameters
params.signerLocalAccountLocal account to use for signing transactions on the smart wallet
params.signersSigner[]Optional array of additional signers for the smart wallet
params.deploymentSignersSigner[]Optional array of signers used during wallet deployment
params.walletAddressAddressOptional explicit smart wallet address (skips address calculation)
params.noncebigintOptional nonce used during smart wallet creation
Returns: Promise resolving to the smart wallet instance with the provided signer Throws: Error if neither walletAddress nor deploymentSigners provided Source ↗

Wallet

Base actions wallet class

Namespaces

NamespaceTypeDescription
lendWalletLendNamespace<BaseLendConfig>Lend namespace with all lending operations

Properties

PropertyTypeDescription
addressAddressGet the address of this actions wallet
signerLocalAccountGet a signer for this actions wallet

Methods

FunctionDescription
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 Source ↗

send()

Send a transaction using this actions wallet
ParameterTypeDescription
transactionDataTransactionDataThe transaction data to execute
chainIdSupportedChainIdTarget blockchain chain ID
Returns: Promise resolving to the transaction hash Source ↗

sendBatch()

Send a batch of transactions using this actions wallet
ParameterTypeDescription
transactionDataTransactionData[]The transaction data to execute
chainIdSupportedChainIdTarget blockchain chain ID
Returns: Promise resolving to the transaction hash Source ↗