-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Make cli commands support emitting JSON #7827
Comments
How about using curl and the JSON RPC APIs? https://docs.solana.com/book/api-reference/jsonrpc-api |
@garious We already pull out everything we can via JSON RPC but there are quite a few methods only available via cli such as |
Okay, I see that those commands do a fair amount of client-side processing that you wouldn't want to duplicate. @CriesofCarrots, want this one? |
Heck yeah, I do! @garious |
@CriesofCarrots Hi there, is this still upcoming? As mainnet approaches this would help a great deal in extracting information from local nodes programmatically. Thanks! |
@xtrapower , thanks for following up! This got shelved for a bit, but I am going to see if I can squeeze it in sometime in the next week or so. |
@CriesofCarrots Sorry to bother you, I'm just checking in to see when you might find the time to implement this? Thanks! |
@xtrapower , I actually played around with this a little this weekend. If this week isn't too crazy, I should be able to get something landed in the next couple days. |
@xtrapower , this is going in to v1.1 (#9495), so it should be available on testnet after our next patch release, and available on mainnet-beta when we move to v1.1 at the end of the month. New cli options: |
Problem
We have been working on a Solana validator dashboard . To offer more insights we would like to integrate information provided by cli commands like
solana validator-info get
andsolana show-block-production
. It would be extremely helpful if cli commands would support emitting JSON.Proposed Solution
Add a
--json
flag to cli commands that allow programmatic access by outputting JSON.The text was updated successfully, but these errors were encountered: