Type Alias hedera::TopicMessageSubmitTransaction
source · pub type TopicMessageSubmitTransaction = Transaction<TopicMessageSubmitTransactionData>;
Expand description
Submit a message for consensus.
Valid and authorized messages on valid topics will be ordered by the consensus service, gossipped to the mirror net, and published (in order) to all subscribers (from the mirror net) on this topic.
The submit_key
(if any) must sign this transaction.
On success, the resulting TransactionReceipt
contains the topic’s updated topic_sequence_number
and
topic_running_hash
.
Aliased Type§
struct TopicMessageSubmitTransaction { /* private fields */ }
Implementations§
source§impl TopicMessageSubmitTransaction
impl TopicMessageSubmitTransaction
sourcepub fn get_topic_id(&self) -> Option<TopicId>
pub fn get_topic_id(&self) -> Option<TopicId>
Returns the ID of the topic this message will be submitted to.
sourcepub fn topic_id(&mut self, id: impl Into<TopicId>) -> &mut Self
pub fn topic_id(&mut self, id: impl Into<TopicId>) -> &mut Self
Sets the topic ID to submit this message to.
sourcepub fn get_message(&self) -> Option<&[u8]>
pub fn get_message(&self) -> Option<&[u8]>
Returns the message to be submitted.