Account
The Porto Account
is a light wrapper around the Viem Account that adds support
for Porto Key
s.

Usage
example.ts
import { Account, Key, RelayActions } from 'porto/viem'
import { client } from './config'
const passkey = await Key.createWebAuthnP256({
label: 'My Passkey',
})
const account = Account.fromPrivateKey('0x...', {
keys: [passkey]
})
await RelayActions.upgradeAccount(client, {
account,
})