Middleware/SDK
Javascript
API
Assign Account

Assign Account Role

The assignAccountRole is used to assign role to account and returns transaction receipt.

PermissionWrapper.assignAccountRole(account, orgId, roleId, from)

  • account: string - account id
  • orgId: string - organization id to which the account belongs
  • roleId: string - role id to be assigned to the account
  • from: string - account send transaction

Return transaction receipt