feat: add MirrorNodeAccountBalanceQuery - #1814
Merged
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Dosik13
force-pushed
the
feat/1792-mirror-node-account-balance-query
branch
from
August 19, 2026 12:43
f49a276 to
e791b66
Compare
Dosik13
marked this pull request as ready for review
August 19, 2026 12:45
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Dosik13
force-pushed
the
feat/1792-mirror-node-account-balance-query
branch
from
August 20, 2026 11:57
a7aa4f3 to
6ba3824
Compare
radkomih
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
The consensus node stops serving
CryptoService/cryptoGetBalancein release 0.77, which retiresAccountBalanceQuery. Add its mirror node replacement, built to the mergedmigration proposal.
MirrorNodeAccountBalanceQuery, readingGET /api/v1/balances?account.id={id}MirrorNodeAccountBalance, carrying the hbar balanceAccountID._MirrorNodePathIDso an EVM-address alias is sent as bare hex and a public keyalias as unpadded base32, and route the existing
_MirrorNodeRequestthrough itFeeEstimateQuery,MirrorNodeContractQueryandRegisteredNodeAddressBookQueryonto itexamples/mirror_node_account_balancePopulateAccount: it dereferenced*id.AliasEvmAddressunconditionally, so itpanicked on any
AccountIDwithout an EVM alias.validating one rejected the EVM-address and public-key forms SetAccountID documents
failing query at ~91s instead of ~5.7 minutes
Related issue(s):
Fixes #1792
Notes for reviewer:
Checklist