@tevm/decorators / WalletPermissionCaveat
WalletPermissionCaveat =
object
Defined in: eip1193/WalletPermissionCaveat.ts:25
Restrictions or conditions applied to a wallet permission. Used in the EIP-2255 wallet permissions system to add constraints to granted permissions.
import { WalletPermissionCaveat } from '@tevm/decorators'
const addressCaveat: WalletPermissionCaveat = {
type: 'restrictReturnedAccounts',
value: ['0x1234567890123456789012345678901234567890']
}
const expirationCaveat: WalletPermissionCaveat = {
type: 'expiresOn',
value: 1720872662291 // Unix timestamp in milliseconds
}| Property | Type | Defined in |
|---|---|---|
type |
string |
eip1193/WalletPermissionCaveat.ts:26 |
value |
any |
eip1193/WalletPermissionCaveat.ts:27 |