⚠️ Deprecation Notice
ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.
getAutoSavingsExecutor
Get the auto save executor object.
Usage
const autoSavingsModule = getAutoSavingsExecutor({
chainId: sepolia.id,
configs: [
{
token: '0x123...',
percentage: BigInt(10),
vault: '0x123...',
},
],
})Parameters
chainId
- Type:
number
The chain ID of the chain to use. This is necessary to pick the correct Uniswap router address.
configs
- Type:
{ token: Address, percentage: number, vault: Address, }[]
The configs for each token.
hook (optional)
The address of the hook to use. This is only required for the Kernel account.
Returns
module
- Type:
Module
The auto-savings module object.