Skip to main content

WalletNamespace

Wallet namespace that provides unified wallet operations

Methods

FunctionDescription
hostedWalletProvider()Get direct access to the hosted wallet provider
smartWalletProvider()Get direct access to the smart wallet provider
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

hostedWalletProvider()

Get direct access to the hosted wallet provider Returns: Promise resolving to the configured hosted wallet provider instance Source ↗

smartWalletProvider()

Get direct access to the smart wallet provider Returns: Promise resolving to the configured smart wallet provider instance Source ↗

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

Wallet

Base actions wallet class

Namespaces

NamespaceTypeDescription
lendWalletLendNamespaceLend namespace with all lending operations
swapWalletSwapNamespaceSwap namespace with all swap 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 ↗