The toCoinbaseSmartAccount implementation references the Coinbase Smart Wallet contract.
Usage
Tip: You can use a Passkey (WebAuthn) to sign User Operations. Check the owner.ts (Passkey) tab.
Returns
SmartAccount<CoinbaseSmartAccountImplementation>
Parameters
client
Client used to retrieve Smart Account data.
owners
- Type:
(LocalAccount | WebAuthnAccount)[]
Owners of the Smart Account. Can be a Local Account or a WebAuthn Account (Passkey)
ownerIndex (optional)
Index of the owner to use for signing messages & User Operations.
nonce (optional)
Nonce to use for the Smart Account.
version
- Type:
'1.1' | '1'
- Default:
'1'
Version of the Smart Account to use.
Version bumps DO contain breaking changes.