Light Smart Account
To implement Alchemy's Light Account, you can use the toLightSmartAccount
module from permissionless.js
Install
pnpm
pnpm add permissionless
Usage
example.ts
import { toLightSmartAccount } from 'permissionless/accounts'
import { client } from './client.js'
import { owner } from './owner.js'
const account = await toLightSmartAccount({
client,
owner: owner,
version: '2.0.0',
})
Returns
SmartAccount<LightSmartAccountImplementation>