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
impl NodeCreateTransaction
Sourcepub fn get_account_id(&self) -> Option<AccountId>
pub fn get_account_id(&self) -> Option<AccountId>
Returns the account associated with the new node.
Sourcepub fn account_id(&mut self, account_id: AccountId) -> &mut Self
pub fn account_id(&mut self, account_id: AccountId) -> &mut Self
Sets the account associated with the new node.
Sourcepub fn get_description(&self) -> &str
pub fn get_description(&self) -> &str
Returns the description of the new node.
Sourcepub fn description(&mut self, description: impl Into<String>) -> &mut Self
pub fn description(&mut self, description: impl Into<String>) -> &mut Self
Sets the description of the new node.
Sourcepub fn get_gossip_endpoints(&self) -> Vec<ServiceEndpoint>
pub fn get_gossip_endpoints(&self) -> Vec<ServiceEndpoint>
Returns the list of service endpoints for gossip.
Sourcepub fn gossip_endpoints(
&mut self,
gossip_endpoint: impl IntoIterator<Item = ServiceEndpoint>,
) -> &mut Self
pub fn gossip_endpoints( &mut self, gossip_endpoint: impl IntoIterator<Item = ServiceEndpoint>, ) -> &mut Self
Sets the list of service endpoints for gossip.
Sourcepub fn add_gossip_endpoint(
&mut self,
gossip_endpoint: ServiceEndpoint,
) -> &mut Self
pub fn add_gossip_endpoint( &mut self, gossip_endpoint: ServiceEndpoint, ) -> &mut Self
Adds a service endpoint for gossip to the list of service endpoints.
Sourcepub fn get_service_endpoints(&self) -> Vec<ServiceEndpoint>
pub fn get_service_endpoints(&self) -> Vec<ServiceEndpoint>
Returns the list of service endpoints for gRPC calls.
Sourcepub fn service_endpoints(
&mut self,
service_endpoint: impl IntoIterator<Item = ServiceEndpoint>,
) -> &mut Self
pub fn service_endpoints( &mut self, service_endpoint: impl IntoIterator<Item = ServiceEndpoint>, ) -> &mut Self
Sets the list of service endpoints for gRPC calls.
Sourcepub fn add_service_endpoint(
&mut self,
service_endpoint: ServiceEndpoint,
) -> &mut Self
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.
Sourcepub fn get_gossip_ca_certificate(&self) -> &[u8] ⓘ
pub fn get_gossip_ca_certificate(&self) -> &[u8] ⓘ
Returns the certificate used to sign gossip events.
Sourcepub fn gossip_ca_certificate(
&mut self,
gossip_ca_certificate: impl Into<Vec<u8>>,
) -> &mut Self
pub fn gossip_ca_certificate( &mut self, gossip_ca_certificate: impl Into<Vec<u8>>, ) -> &mut Self
Sets the certificate used to sign gossip events.
Sourcepub fn get_grpc_certificate_hash(&self) -> &[u8] ⓘ
pub fn get_grpc_certificate_hash(&self) -> &[u8] ⓘ
Returns the hash of the node gRPC TLS certificate.
Sourcepub fn grpc_certificate_hash(
&mut self,
grpc_certificate_hash: impl Into<Vec<u8>>,
) -> &mut Self
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.
Sourcepub fn get_admin_key(&self) -> Option<&Key>
pub fn get_admin_key(&self) -> Option<&Key>
Returns the admin key.
Sourcepub fn get_decline_reward(&self) -> bool
pub fn get_decline_reward(&self) -> bool
Returns the decline reward.
Sourcepub fn decline_reward(&mut self, decline_reward: bool) -> &mut Self
pub fn decline_reward(&mut self, decline_reward: bool) -> &mut Self
Sets the decline reward.
Sourcepub fn get_grpc_proxy_endpoint(&self) -> Option<&ServiceEndpoint>
pub fn get_grpc_proxy_endpoint(&self) -> Option<&ServiceEndpoint>
Returns the grpc proxy endpoint.
Sourcepub fn grpc_proxy_endpoint(
&mut self,
grpc_proxy_endpoint: ServiceEndpoint,
) -> &mut Self
pub fn grpc_proxy_endpoint( &mut self, grpc_proxy_endpoint: ServiceEndpoint, ) -> &mut Self
Sets the grpc proxy endpoint.