-
Notifications
You must be signed in to change notification settings - Fork 2
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
Building out general network stats? #3
Comments
Hi, thanks for the kind words! It's correct that those features are currently not implemented, but they would be really useful for something like a block explorer and would fit perfectly into this library. The last time I checked the Libra documentation was very thin regarding the gRPC interface of the libra nodes, so I had to do some trial and error as well. The gRPC You can find their gRPC definition here:
This is an example of how to create a request: Line 38 in d2e978d
And this is the related handling of the response: Line 58 in d2e978d
This will have to look a little different for other types of requests probably, but I think it's the right direction. As you can see in the comment where the client creates the request for the account state, several request types are allowed to be used. One of them seems is libra-sdk-go/rpc/types/get_with_proof.proto Line 298 in 9e0a4de
A possible next step would be to add a method to the client where you can pass the The response type from gRPC is probably this one: libra-sdk-go/rpc/types/get_with_proof.proto Line 310 in 9e0a4de
Are you interested in contributing this? |
P.S.: The related Go files for those gRPC types are already generated and they contain some GoDoc: |
Hey @philippgille I would love to help as much as I can - bit busy at the time but I just pushed a PR with what seems like most of the code needed to get a transaction list. I was just having issue with all the serialization. |
@philippgille Great work! this is an awesome library that is forsure going to get alot of use.
I was hoping to build a small app around this sdk and want to provide users with some general network stats.
Is there a way I can help add this functionality? I do not see methods for getting network data and only see
GetAccountState
as a way to look at a specific account. What docs are you following?Are network stats part of your road map? Thanks!
The text was updated successfully, but these errors were encountered: