Skip to content
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

/accounts API call returns a consensus timestamp that doesn't apply to all returned fields #186

Closed
mike-burrage-hedera opened this issue Sep 2, 2019 · 1 comment
Assignees
Labels
bug Type: Something isn't working
Milestone

Comments

@mike-burrage-hedera
Copy link
Contributor

Detailed Description

The /accounts REST API request returns account attributes such as:

  • public key
  • balance
  • expiry
  • autorenew time

As well as a consensus timestamp (consensus_ns), making it appear that the consensus timestamp is for all of the fields, when in fact it only applies to the balance.

Actual Behavior

Expected Behavior

Some distinction in the API response (structure of the response) to indicate that the account_balances is tied to the consensus_ns but nothing else is.

Environment:

Additional Context

@mike-burrage-hedera mike-burrage-hedera added bug Type: Something isn't working OABlocker labels Sep 2, 2019
@mike-burrage-hedera mike-burrage-hedera added this to the 0.2.0 milestone Sep 2, 2019
@atul-hedera atul-hedera self-assigned this Sep 2, 2019
@atul-hedera
Copy link
Contributor

The connseus_timestamp is already attached to the balance sub-object in the JSON response. Here's an example response:
{
"accounts": [
{
"balance": {
"timestamp": "1567381500.036376000",
"balance": 78325556
},
"account": "0.0.37031",
"expiry_timestamp": null,
"auto_renew_period": 2592000,
"admin_key": {
"_type": "ProtobufEncoded",
"key": ""
},
"key": {
"_type": "ED25519",
"key": "5dc0eb34028a1a98260478044b9e5191b1bf77cd67cb7d9d08bd29a19bd6b358"
},
"deleted": false,
"entity_type": "account"
}
],
"links": {
"next": null
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants