Type Alias 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§

pub struct TopicCreateTransaction { /* private fields */ }

Implementations§

Source§

impl TopicCreateTransaction

Source

pub fn get_topic_memo(&self) -> &str

Returns the short, publicly visible, memo about the topic.

Source

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.

Source

pub fn get_admin_key(&self) -> Option<&Key>

Returns the access control for TopicUpdateTransaction and TopicDeleteTransaction.

Source

pub fn admin_key(&mut self, key: impl Into<Key>) -> &mut Self

Sets the access control for TopicUpdateTransaction and TopicDeleteTransaction.

Source

pub fn get_submit_key(&self) -> Option<&Key>

Returns the access control for TopicMessageSubmitTransaction

Source

pub fn submit_key(&mut self, key: impl Into<Key>) -> &mut Self

Sets the access control for TopicMessageSubmitTransaction.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn get_fee_schedule_key(&self) -> Option<&Key>

The keys that can be used to update the fee schedule for the topic.

Source

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.

Source

pub fn get_fee_exempt_keys(&self) -> &Vec<Key>

The keys exempt from custom fees for this topic.

Source

pub fn clear_fee_exempt_keys(&mut self) -> &mut Self

Clears the keys exempt from custom fees for this topic.

Source

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.

Source

pub fn get_custom_fees(&self) -> &Vec<CustomFixedFee>

The custom fees to be assessed during a message submission to this topic.

Source

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.

Source

pub fn clear_custom_fees(&mut self) -> &mut Self

Clears the custom fees for this topic.

Source

pub fn add_custom_fee(&mut self, fee: CustomFixedFee) -> &mut Self

Adds a custom fee to the list of custom fees for this topic.