NodeCreateTransaction

Type Alias NodeCreateTransaction 

Source
pub type NodeCreateTransaction = Transaction<NodeCreateTransactionData>;
Expand description

A transaction body to add a new consensus node to the network address book.

This transaction body SHALL be considered a “privileged transaction”.

This message supports a transaction to create a new node in the network address book. The transaction, once complete, enables a new consensus node to join the network, and requires governing council authorization.

Aliased Type§

pub struct NodeCreateTransaction { /* private fields */ }

Implementations§

Source§

impl NodeCreateTransaction

Source

pub fn get_account_id(&self) -> Option<AccountId>

Returns the account associated with the new node.

Source

pub fn account_id(&mut self, account_id: AccountId) -> &mut Self

Sets the account associated with the new node.

Source

pub fn get_description(&self) -> &str

Returns the description of the new node.

Source

pub fn description(&mut self, description: impl Into<String>) -> &mut Self

Sets the description of the new node.

Source

pub fn get_gossip_endpoints(&self) -> Vec<ServiceEndpoint>

Returns the list of service endpoints for gossip.

Source

pub fn gossip_endpoints( &mut self, gossip_endpoint: impl IntoIterator<Item = ServiceEndpoint>, ) -> &mut Self

Sets the list of service endpoints for gossip.

Source

pub fn add_gossip_endpoint( &mut self, gossip_endpoint: ServiceEndpoint, ) -> &mut Self

Adds a service endpoint for gossip to the list of service endpoints.

Source

pub fn get_service_endpoints(&self) -> Vec<ServiceEndpoint>

Returns the list of service endpoints for gRPC calls.

Source

pub fn service_endpoints( &mut self, service_endpoint: impl IntoIterator<Item = ServiceEndpoint>, ) -> &mut Self

Sets the list of service endpoints for gRPC calls.

Source

pub fn add_service_endpoint( &mut self, service_endpoint: ServiceEndpoint, ) -> &mut Self

Adds a service endpoint to the list of service endpoints for gRPC calls.

Source

pub fn get_gossip_ca_certificate(&self) -> &[u8]

Returns the certificate used to sign gossip events.

Source

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

Sets the certificate used to sign gossip events.

Source

pub fn get_grpc_certificate_hash(&self) -> &[u8]

Returns the hash of the node gRPC TLS certificate.

Source

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

Sets the hash of the node gRPC TLS certificate.

Source

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

Returns the admin key.

Source

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

Sets the admin key.

Source

pub fn get_decline_reward(&self) -> bool

Returns the decline reward.

Source

pub fn decline_reward(&mut self, decline_reward: bool) -> &mut Self

Sets the decline reward.

Source

pub fn get_grpc_proxy_endpoint(&self) -> Option<&ServiceEndpoint>

Returns the grpc proxy endpoint.

Source

pub fn grpc_proxy_endpoint( &mut self, grpc_proxy_endpoint: ServiceEndpoint, ) -> &mut Self

Sets the grpc proxy endpoint.