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

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.