updateRootQuorum method
Set the threshold and members of the root quorum. This activity must be approved by the current root quorum.
Sign the provided TUpdateRootQuorumBody with the client's stamp function and submit the request (POST /public/v1/submit/update_root_quorum).
See also: stampUpdateRootQuorum.
Implementation
Future<TUpdateRootQuorumResponse> updateRootQuorum({
required TUpdateRootQuorumBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_UPDATE_ROOT_QUORUM',
);
return await request<Map<String, dynamic>, TUpdateRootQuorumResponse>(
"/public/v1/submit/update_root_quorum",
body,
(json) => TUpdateRootQuorumResponse.fromJson(
transformActivityResponse(json, 'UpdateRootQuorum')));
}