Permission: {
    caveats?: Caveat[];
    date?: number;
    id?: string;
    invoker?: string;
    parentCapability: string;
}

Defines a permission granted to a dApp by the user.

See EIP-2255 for more details.

Type declaration

  • Optionalcaveats?: Caveat[]

    List of restrictions applied to this permission.

  • Optionaldate?: number

    Date of the permission request, in Unix timestamp format.

  • Optionalid?: string

    Unique identifier for the permission.

  • Optionalinvoker?: string

    URI of the dApp granted this permission.

  • parentCapability: string

    Method permitted by this permission (e.g., "eth_accounts").