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§
pub 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.
Sourcepub fn fee_schedule_key(&mut self, key: impl Into<Key>) -> &mut Self
pub fn fee_schedule_key(&mut self, key: impl Into<Key>) -> &mut Self
Sets the key that can be used to update the fee schedule for the topic.
Sourcepub fn get_fee_schedule_key(&self) -> Option<&Key>
pub fn get_fee_schedule_key(&self) -> Option<&Key>
The keys that can be used to update the fee schedule for the topic.
Sourcepub fn fee_exempt_keys(&mut self, keys: Vec<Key>) -> &mut Self
pub fn fee_exempt_keys(&mut self, keys: Vec<Key>) -> &mut Self
Sets the keys that can be used to update the fee schedule for the topic.
Sourcepub fn get_fee_exempt_keys(&self) -> &Vec<Key>
pub fn get_fee_exempt_keys(&self) -> &Vec<Key>
The keys exempt from custom fees for this topic.
Sourcepub fn clear_fee_exempt_keys(&mut self) -> &mut Self
pub fn clear_fee_exempt_keys(&mut self) -> &mut Self
Clears the keys exempt from custom fees for this topic.
Sourcepub fn add_fee_exempt_key(&mut self, key: impl Into<Key>) -> &mut Self
pub fn add_fee_exempt_key(&mut self, key: impl Into<Key>) -> &mut Self
Adds a key to the list of keys exempt from custom fees for this topic.
Sourcepub fn get_custom_fees(&self) -> &Vec<CustomFixedFee>
pub fn get_custom_fees(&self) -> &Vec<CustomFixedFee>
The custom fees to be assessed during a message submission to this topic.
Sourcepub fn custom_fees(&mut self, fees: Vec<CustomFixedFee>) -> &mut Self
pub fn custom_fees(&mut self, fees: Vec<CustomFixedFee>) -> &mut Self
Sets the custom fees to be assessed during a message submission to this topic.
Sourcepub fn clear_custom_fees(&mut self) -> &mut Self
pub fn clear_custom_fees(&mut self) -> &mut Self
Clears the custom fees for this topic.
Sourcepub fn add_custom_fee(&mut self, fee: CustomFixedFee) -> &mut Self
pub fn add_custom_fee(&mut self, fee: CustomFixedFee) -> &mut Self
Adds a custom fee to the list of custom fees for this topic.