Permission

The permission method allows you to obtain a specific Permission instance from an Account instance.

Usage

The permission method is available on any Account instance. Here is an example of how to use it:

const permission = account.permission("owner")
// Fetches the 'owner' permission details for the specified account.

Arguments

The permission method requires a single parameter:

  • permissionName: The name of the permission to retrieve (eg. active).

Return Value

The permission method returns a Permission instance.