com.openelements.hiero.base.protocol.TopicDeleteRequest Maven / Gradle / Ivy
package com.openelements.hiero.base.protocol;
import com.hedera.hashgraph.sdk.Hbar;
import com.hedera.hashgraph.sdk.TopicId;
import java.time.Duration;
import java.util.Objects;
import org.jspecify.annotations.NonNull;
public record TopicDeleteRequest(Hbar maxTransactionFee,
Duration transactionValidDuration,
@NonNull TopicId topicId) implements TransactionRequest {
public TopicDeleteRequest {
Objects.requireNonNull(topicId, "TopicId cannot be null");
}
public static TopicDeleteRequest of(@NonNull final TopicId topicId) {
return new TopicDeleteRequest(DEFAULT_MAX_TRANSACTION_FEE, DEFAULT_TRANSACTION_VALID_DURATION, topicId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy