feat: TopicDeleteTransaction
@@ -10,6 +10,16 @@ public final class TopicDeleteTransaction extends TransactionBuilder<TopicDelete
builder = ConsensusDeleteTopicTransactionBody.newBuilder();
}
+ /**
+ * Set the topic ID to delete.
+ *
+ * @return {@code this}.
+ */
+ public TopicDeleteTransaction setTopicId(TopicId topicId) {
+ builder.setTopicID(topicId.toProtobuf());
+ return this;
+ }
+
@Override
protected void onBuild(TransactionBody.Builder bodyBuilder) {
bodyBuilder.setConsensusDeleteTopic(builder);
