Type Alias hedera::TopicCreateTransaction
source · pub type TopicCreateTransaction = Transaction<TopicCreateTransactionData>;
Expand description
Create a topic to be used for consensus.
If an auto_renew_account_id
is specified, that account must also sign this transaction.
If an admin_key
is specified, the adminKey must sign the transaction.
On success, the resulting TransactionReceipt
contains the newly created TopicId
.
Aliased Type§
struct TopicCreateTransaction { /* private fields */ }
Implementations§
source§impl TopicCreateTransaction
impl TopicCreateTransaction
sourcepub fn get_topic_memo(&self) -> &str
pub fn get_topic_memo(&self) -> &str
Returns the short, publicly visible, memo about the topic.
sourcepub fn topic_memo(&mut self, memo: impl Into<String>) -> &mut Self
pub fn topic_memo(&mut self, memo: impl Into<String>) -> &mut Self
Sets the short publicly visible memo about the topic.
No guarantee of uniqueness.
sourcepub fn get_admin_key(&self) -> Option<&Key>
pub fn get_admin_key(&self) -> Option<&Key>
Returns the access control for TopicUpdateTransaction
and TopicDeleteTransaction
.
sourcepub fn admin_key(&mut self, key: impl Into<Key>) -> &mut Self
pub fn admin_key(&mut self, key: impl Into<Key>) -> &mut Self
Sets the access control for TopicUpdateTransaction
and TopicDeleteTransaction
.
sourcepub fn get_submit_key(&self) -> Option<&Key>
pub fn get_submit_key(&self) -> Option<&Key>
Returns the access control for TopicMessageSubmitTransaction
sourcepub fn submit_key(&mut self, key: impl Into<Key>) -> &mut Self
pub fn submit_key(&mut self, key: impl Into<Key>) -> &mut Self
Sets the access control for TopicMessageSubmitTransaction
.
sourcepub fn get_auto_renew_period(&self) -> Option<Duration>
pub fn get_auto_renew_period(&self) -> Option<Duration>
Returns the initial lifetime of the topic and the amount of time to attempt to extend the topic’s lifetime by automatically at the topic’s expiration time.
sourcepub fn auto_renew_period(&mut self, period: Duration) -> &mut Self
pub fn auto_renew_period(&mut self, period: Duration) -> &mut Self
Sets the initial lifetime of the topic and the amount of time to attempt to extend the topic’s lifetime by automatically at the topic’s expiration time.
sourcepub fn get_auto_renew_account_id(&self) -> Option<AccountId>
pub fn get_auto_renew_account_id(&self) -> Option<AccountId>
Returns the account to be used at the topic’s expiration time to extend the life of the topic.
sourcepub fn auto_renew_account_id(&mut self, id: AccountId) -> &mut Self
pub fn auto_renew_account_id(&mut self, id: AccountId) -> &mut Self
Sets the account to be used at the topic’s expiration time to extend the life of the topic.