stampUpdateRootQuorum method
Produce a SignedRequest from TUpdateRootQuorumBody by using the client's stamp function.
See also: UpdateRootQuorum.
Implementation
Future<TSignedRequest> stampUpdateRootQuorum({
required TUpdateRootQuorumBody input,
}) async {
final fullUrl = '${config.baseUrl}/public/v1/submit/update_root_quorum';
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',
);
final bodyJson = jsonEncode(body);
final stamp = await stamper.stamp(bodyJson);
return TSignedRequest(
body: bodyJson,
stamp: stamp,
url: fullUrl,
);
}