toMultichainNexusAccount
Creates a multichain Nexus smart account that can operate across multiple chains with the same address.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
signer | Account | WalletClient | Yes | The EOA signer that owns the account |
chainConfigurations | ChainConfiguration[] | Yes | Array of chain configs |
ChainConfiguration
| Property | Type | Required | Description |
|---|---|---|---|
chain | Chain | Yes | Viem chain object |
transport | Transport | Yes | RPC transport |
version | MeeVersionConfig | Yes | MEE version config |
accountAddress | Address | No | Override for EIP-7702 mode |
Returns
MultichainSmartAccount
Example
EIP-7702 Mode
For embedded wallets, setaccountAddress to the EOA address:
MultichainSmartAccount Methods
addressOn
Get the account address on a specific chain.| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | number | Yes | Chain ID |
strict | boolean | No | Enable strict mode—throws if chain is not in chainConfigurations |
strict flag is a safety check that throws an error if the requested chain was not defined in your chainConfigurations, helping catch configuration mistakes early.
Example
buildComposable
Build a composable instruction with support for runtime injection.build
Build a simple instruction without composability features.deployments
Access individual chain deployments.toNexusAccount
Creates a single-chain Nexus account. Use for bundler-based flows without MEE.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
signer | Account | Yes | The EOA signer |
chainConfiguration | ChainConfiguration | Yes | Single chain config |