Skip to content

Network Repository

NetworkRepository provides APIs for querying Hiero network information from a Mirror Node, including exchange rates, network fees, staking information, and network token supplies.


Methods

Method Description
exchangeRates() Retrieves the current network exchange rates.
fees() Retrieves the list of network transaction fees.
stake() Retrieves the current network staking information.
supplies() Retrieves the current network token supply information.

Get Exchange Rates

exchangeRates()
Optional<ExchangeRates> exchangeRates =
    networkRepository.exchangeRates();

Get Network Fees

fees()
List<NetworkFee> fees =
    networkRepository.fees();

Get Network Stake

stake()
Optional<NetworkStake> stake =
    networkRepository.stake();

Get Network Supplies

supplies()
Optional<NetworkSupplies> supplies =
    networkRepository.supplies();