Documentation Index Fetch the complete documentation index at: https://optimism-373f39ad-feat-swap-documentation.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
WalletNamespace
Wallet namespace that provides unified wallet operations
Methods
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
Parameter Type Description 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
Parameter Type Description 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
Parameter Type Description 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
Parameter Type Description 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
Namespace Type Description lendWalletLendNamespaceLend namespace with all lending operations
Properties
Property Type Description addressAddressGet the address of this actions wallet signerLocalAccountGet 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
Source ↗
send()
Send a transaction using this actions wallet
Parameter Type Description 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
Parameter Type Description transactionDataTransactionData[]The transaction data to execute chainIdSupportedChainIdTarget blockchain chain ID
Returns: Promise resolving to the transaction hash
Source ↗