Function useAllRoleMembers

  • Beta

    Get all members of all roles

    Type Parameters

    • TContract extends ContractWithRoles

    Parameters

    • contract: RequiredParam<TContract>

      an instance of a SmartContract

    Returns UseQueryResult

    a list of addresses for all supported roles on the contract.

    Example

    const { data: roles, isLoading, error } = useAllRoleMembers(contract);
    

    Twfeature

    PermissionsEnumerable

    See

    Documentation

Generated using TypeDoc