You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MirrorNodeAccountBalanceQuery is an sdk-native replacement for the deprecated AccountBalanceQuery. it reads an account's hbar balance from the mirror node rest api (GET /api/v1/balances) while keeping the sdk query interface (.setAccountId().execute(client)), with automatic retries and no query payment. verified against hiero-ledger/hiero-sdk-js source at tag v2.87.0 and the published @hiero-ledger/sdk npm package.
availability (verified against the sdk repos, not a roadmap claim):
cover every language tab the pages carry.get-balance, tokens/get-balance, and queries document javascript, java, go, and rust. rust has no replacement and no timeline (verified against hiero-sdk-rust source), so rust readers are routed to the mirror node rest api explicitly and never told "coming soon."
background
MirrorNodeAccountBalanceQueryis an sdk-native replacement for the deprecatedAccountBalanceQuery. it reads an account's hbar balance from the mirror node rest api (GET /api/v1/balances) while keeping the sdk query interface (.setAccountId().execute(client)), with automatic retries and no query payment. verified againsthiero-ledger/hiero-sdk-jssource at tagv2.87.0and the published@hiero-ledger/sdknpm package.availability (verified against the sdk repos, not a roadmap claim):
hiero-sdk-js)hiero-sdk-java)hiero-sdk-go)hiero-sdk-rust)documentation requirements
get-balance,tokens/get-balance, andqueriesdocument javascript, java, go, and rust. rust has no replacement and no timeline (verified againsthiero-sdk-rustsource), so rust readers are routed to the mirror node rest api explicitly and never told "coming soon."MirrorNodeAccountBalancereturns a singlehbarsfield. it is not a token-balance query;tokens/get-balance.mdxmust keep readers on the rest token-balances endpoint (clarify that MirrorNodeAccountBalanceQuery does not cover token balances (native/tokens/get-balance.mdx) #722).out of scope
reference/protobuf/crypto/cryptogetaccountbalance.mdx(protocol-level, unaffected).