Skip to content
On this page

requestPermissions

Requests permissions for a wallet.

Usage

ts
import { requestPermissions } from 'viem'

Usage

ts
import { requestPermissions } from 'viem'
import { walletClient } from '.'
 
const permissions = await requestPermissions(walletClient, { eth_accounts: {} }) 

Returns

WalletPermission[]

The wallet permissions.

Released under the MIT License.