Type Alias hedera::NodeAddressBookQuery

source ·
pub type NodeAddressBookQuery = MirrorQuery<NodeAddressBookQueryData>;
Expand description

Query for an address book and return its nodes. The nodes are returned in ascending order by node ID.

Aliased Type§

struct NodeAddressBookQuery { /* private fields */ }

Implementations§

source§

impl NodeAddressBookQuery

source

pub fn get_file_id(&self) -> FileId

Returns the file ID of the address book file on the network.

source

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

Sets the ID of the address book file on the network. Can either be 0.0.101 or 0.0.102. Defaults to 0.0.102.

source

pub fn get_limit(&self) -> u32

Returns the configured limit of node addresses to receive.

source

pub fn limit(&mut self, limit: u32) -> &mut Self

Sets the maximum number of node addresses to receive. Defaults to all.