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

Support JSON output for Shelley tip query command #1340

Closed
intricate opened this issue Jun 24, 2020 · 0 comments · Fixed by #1365
Closed

Support JSON output for Shelley tip query command #1340

intricate opened this issue Jun 24, 2020 · 0 comments · Fixed by #1365
Assignees
Labels
cli revision is used to group all the Node CLI tickets enhancement New feature or request

Comments

@intricate
Copy link
Contributor

intricate commented Jun 24, 2020

At the moment, the output of this command looks like this:

$ cardano-cli shelley query tip --testnet-magic 42
Tip (SlotNo {unSlotNo = 57}) (ShelleyHash {unShelleyHash = HashHeader {unHashHeader = 5820355fd1b83b8e71191f135366ae3c07d7408dcd54329e219cead4bb0bf15f875d}}) (BlockNo {unBlockNo = 2})

However, JSON might look nicer:

{
    "blockNo": 2,
    "headerHash": "5820355fd1b83b8e71191f135366ae3c07d7408dcd54329e219cead4bb0bf15f875d",
    "slotNo": 57
}
@intricate intricate added cli revision is used to group all the Node CLI tickets enhancement New feature or request labels Jun 25, 2020
@intricate intricate self-assigned this Jul 3, 2020
@iohk-bors iohk-bors bot closed this as completed in 42033f6 Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli revision is used to group all the Node CLI tickets enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant