-
Notifications
You must be signed in to change notification settings - Fork 287
feat: implemented getAccountInfoQuery TCK endpoint #2081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aceppaluni
merged 12 commits into
hiero-ledger:main
from
Adityarya11:feat/getAccInfo-tck#2040
May 7, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c4bdc42
Feat: implemented GetAccInfo, TCK endpt.
Adityarya11 4533276
feat: implemented getAccountInfo Tck endpt
Adityarya11 bc79405
fixed codacy's review and suggestions.
Adityarya11 5fec559
removed test and added ruff lints
Adityarya11 f6d3f72
fixed pre-commit check
Adityarya11 e6794d7
ruff formatted.
Adityarya11 9843021
ruff removed from pyproject
Adityarya11 e1563ad
removed valueError from accInfoQuery.
Adityarya11 6b0f614
fixed test for removing valueError.
Adityarya11 5d8f6d7
missing account throws precheckerror, instead of removal
Adityarya11 9c9d164
Merge branch 'main' into feat/getAccInfo-tck#2040
Adityarya11 d7bbc6a
Merge branch 'main' into feat/getAccInfo-tck#2040
Adityarya11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,68 @@ | ||
| """TCK response models for account endpoints.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from dataclasses import dataclass | ||
| from dataclasses import dataclass, field | ||
|
|
||
|
|
||
| @dataclass | ||
| class CreateAccountResponse: | ||
| """Response payload for createAccount.""" | ||
|
|
||
| accountId: str | None = None | ||
| status: str | None = None | ||
|
|
||
|
|
||
| @dataclass | ||
| class StakingInfoResponse: | ||
| """Nested staking fields in the getAccountInfo response.""" | ||
|
|
||
| declineStakingReward: bool | None = None | ||
| stakePeriodStart: str | None = None | ||
| pendingReward: str | None = None | ||
| stakedToMe: str | None = None | ||
| stakedAccountId: str | None = None | ||
| stakedNodeId: str | None = None | ||
|
|
||
|
|
||
| @dataclass | ||
| class TokenRelationshipResponse: | ||
| """Nested token relationship details for getAccountInfo.""" | ||
|
|
||
| tokenId: str | None = None | ||
| symbol: str | None = None | ||
| balance: str | None = None | ||
| kycStatus: str | None = None | ||
| freezeStatus: str | None = None | ||
| decimals: str | None = None | ||
| automaticAssociation: bool | None = None | ||
|
|
||
|
|
||
| @dataclass | ||
| class GetAccountInfoResponse: | ||
| """Response payload for getAccountInfo.""" | ||
|
|
||
| accountId: str | None = None | ||
| contractAccountId: str | None = None | ||
| isDeleted: bool | None = None | ||
| proxyAccountId: str | None = None | ||
| proxyReceived: str | None = None | ||
| key: str | None = None | ||
| balance: str | None = None | ||
| sendRecordThreshold: str | None = None | ||
| receiveRecordThreshold: str | None = None | ||
| isReceiverSignatureRequired: bool | None = None | ||
| expirationTime: str | None = None | ||
| autoRenewPeriod: str | None = None | ||
| liveHashes: list[dict] = field(default_factory=list) | ||
| tokenRelationships: dict[str, TokenRelationshipResponse] = field(default_factory=dict) | ||
| accountMemo: str | None = None | ||
| ownedNfts: str | None = None | ||
| maxAutomaticTokenAssociations: str | None = None | ||
| aliasKey: str | None = None | ||
| ledgerId: str | None = None | ||
| ethereumNonce: str | None = None | ||
| hbarAllowances: list[dict] = field(default_factory=list) | ||
| tokenAllowances: list[dict] = field(default_factory=list) | ||
| nftAllowances: list[dict] = field(default_factory=list) | ||
| stakingInfo: StakingInfoResponse | None = None |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.