requestPermissions
Requests permissions for a wallet.
Usage
ts
import { walletClient } from './client'
const permissions = await walletClient.requestPermissions({ eth_accounts: {} })
ts
import { createWalletClient, custom } from 'viem'
export const walletClient = createWalletClient({
transport: custom(window.ethereum)
})
Returns
The wallet permissions.