v2.69.0-beta.1
What's Changed
This release introduces robust support for dynamic network configuration in browser environments. These enhancements improve SDK reliability, support evolving node infrastructure, and ensure compatibility with mirror node-based discovery mechanisms.
Enhancements
-
Dynamic Address Book Updates in Browser:
WebClient
now supports both manual and automatic updates to the network configuration using data from the Mirror Node API:- Use
updateNetwork()
to manually refresh the list of nodes. - Enable
scheduleNetworkUpdate: true
to automatically refresh the address book on a recurring basis.
- Use
-
Mirror Network Initialization:
Introduced theWebClient.forMirrorNetwork()
factory method to initialize clients based on mirror-provided network information. The address book is loaded during initialization for accurate node discovery. -
Browser-Side Support for AddressBookQuery:
AddressBookQuery
can now be executed in browser contexts, enabling mirror node discovery ofgrpc_proxy_endpoint
values. -
Browser-Side Support for Smart Contract Queries:
The following mirror node-based contract queries are now supported in browser environments:MirrorNodeContractCallQuery
MirrorNodeContractEstimateQuery
#3092
-
Fallback Behavior for Production Networks:
When using Mainnet, Testnet, or Previewnet, the SDK now supports a fallback mechanism:
Ifgrpc_proxy_endpoint
fields are missing ornull
in the mirror node's address book response, the client will retain and use the hardcoded gRPC web proxy endpoints from the SDK. This ensures stable operation even if the mirror node is misconfigured or incomplete.
Full Changelog: v2.68.0...v2.69.0-beta.1