useAllRoleMembers
Hook for getting all wallet addresses that have a role in a smart contract.
Available to use on contracts that implement Permissions
.
Example
Parameters
Returns
The hook's data
property, once loaded, is an object, where the keys are the role names and the values are arrays of wallet addresses that have that role.
For example, if the contract has two roles, admin
and transfer
, and the admin
role has two members, the data
property will look like this:
Type