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

source

pub fn get_topic_id(&self) -> Option<TopicId>

Returns the ID of the topic this message will be submitted to.

source

pub fn topic_id(&mut self, id: impl Into<TopicId>) -> &mut Self

Sets the topic ID to submit this message to.

source

pub fn get_message(&self) -> Option<&[u8]>

Returns the message to be submitted.

source

pub fn message(&mut self, bytes: impl Into<Vec<u8>>) -> &mut Self

Sets the message to be submitted.