• Beta

    Get all members of a specific role

    Type Parameters

    • TContract extends ContractWithRoles

    Parameters

    • contract: RequiredParam<TContract>

      an instance of a SmartContract

    • role: RolesForContract<TContract>

      the role to get the members of, see Role

    Returns UseQueryResult

    a list of addresses that are members of the role

    Example

    const { data: members, isLoading, error } = useRoleMembers(SmartContract, "admin");
    

    Twfeature

    Permissions

    See

    Documentation

Generated using TypeDoc