getPermissions
Gets the wallets current permissions.
Usage
ts
import { walletClient } from './client'
const permissions = await walletClient.getPermissions()
import { walletClient } from './client'
const permissions = await walletClient.getPermissions()
ts
import { createWalletClient, custom } from 'viem'
import { mainnet } from 'viem/chains'
export const walletClient = createWalletClient({
chain: mainnet,
transport: custom(window.ethereum)
})
import { createWalletClient, custom } from 'viem'
import { mainnet } from 'viem/chains'
export const walletClient = createWalletClient({
chain: mainnet,
transport: custom(window.ethereum)
})
Returns
The wallet permissions.