1.0 KiB
1.0 KiB
description
| description |
|---|
| Creates a multi-signature ZKsync Smart Account |
toMultisigSmartAccount (ZKsync)
Creates a multi-signature ZKsync Smart Account from a Contract Address and the Private Key of the owner.
Usage
import { toMultisigSmartAccount } from 'viem/zksync'
const account = toMultisigSmartAccount({
address: '0xf39Fd6e51aad8F6F4ce6aB8827279cffFb92266',
privateKeys: ['0x...', '0x...']
})
Parameters
address
- Type:
Hex
Address of the deployed Account's Contract implementation.
const account = toMultisigSmartAccount({
address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', // [!code focus]
privateKeys: ['0x...', '0x...']
})
privateKeys
- Type:
Hex[]
Private Keys of the owners.
const account = toMultisigSmartAccount({
address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
privateKeys: ['0x...', '0x...'] // [!code focus]
})