deleteSmartContractInterface method

Future<TDeleteSmartContractInterfaceResponse> deleteSmartContractInterface({
  1. required TDeleteSmartContractInterfaceBody input,
})

Delete a smart contract interface.

Sign the provided TDeleteSmartContractInterfaceBody with the client's stamp function and submit the request (POST /public/v1/submit/delete_smart_contract_interface).

See also: stampDeleteSmartContractInterface.

Implementation

Future<TDeleteSmartContractInterfaceResponse> deleteSmartContractInterface({
  required TDeleteSmartContractInterfaceBody 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_DELETE_SMART_CONTRACT_INTERFACE',
  );
  return await request<Map<String, dynamic>,
          TDeleteSmartContractInterfaceResponse>(
      "/public/v1/submit/delete_smart_contract_interface",
      body,
      (json) => TDeleteSmartContractInterfaceResponse.fromJson(
          transformActivityResponse(json, 'DeleteSmartContractInterface')));
}