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

  • Type: 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)

  • Type: number
Index of the owner to use for signing messages & User Operations.

nonce (optional)

  • Type: bigint
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.