Skip to content

fix: added getAccountBalance JsonRpc endpt.#1200

Merged
rwalworth merged 2 commits intohiero-ledger:mainfrom
Adityarya11:feat/getAccountBalance-jsonRpc#667
Mar 2, 2026
Merged

fix: added getAccountBalance JsonRpc endpt.#1200
rwalworth merged 2 commits intohiero-ledger:mainfrom
Adityarya11:feat/getAccountBalance-jsonRpc#667

Conversation

@Adityarya11
Copy link
Copy Markdown
Contributor

Description:
Added GetAccountBalance JsonRPC endpoint to the sdk to match the TCK server. Test passes successfully.

  • Add GetAccountBalanceParams struct with optional accountId and contractId field and JSON deserializer.
  • Add getAccountBalance function declaration to AccountService.h.
  • Implement getAccountBalance in AccountService.cc using AccountBalanceQuery, serializing all AccountBalance fields to the JSON format expected by TCK tests.

Related issue(s):

Fixes #667


Notes for reviewer:

Checklist

  • Tested (unit, integration, etc.)

Signed-off-by: Aditya Arya <arya050411@gmail.com>
@Adityarya11 Adityarya11 requested review from a team as code owners March 1, 2026 17:53
@Adityarya11 Adityarya11 requested a review from gsstoykov March 1, 2026 17:53
@github-actions github-actions bot added the status: needs review The pull request is ready for maintainer review label Mar 1, 2026
Signed-off-by: Aditya Arya <arya050411@gmail.com>
@Adityarya11 Adityarya11 force-pushed the feat/getAccountBalance-jsonRpc#667 branch from bd2f337 to edfd743 Compare March 2, 2026 06:47
Copy link
Copy Markdown
Contributor

@rwalworth rwalworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this @Adityarya11! The overall structure looks good - you've got the params, the service function, the registration, and the template instantiation all in the right places.

@rwalworth rwalworth merged commit 7c95f2a into hiero-ledger:main Mar 2, 2026
16 of 17 checks passed
@rwalworth rwalworth removed the status: needs review The pull request is ready for maintainer review label Mar 2, 2026
@Adityarya11 Adityarya11 deleted the feat/getAccountBalance-jsonRpc#667 branch March 4, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Intermediate]: Implement getAccountBalance JSON-RPC Endpoint for TCK Server

2 participants