-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add gRPC endpoints for querying txs, TxsByEvents, tx/broadcast #7355
Comments
It seems like clients could use tendermint JSON RPC directly without needing gRPC, and that gRPC would just be a very thin wrapper over tendermint. What benefits would this bring? /cc @marbar3778 |
The idea I think is that it's one less service to have to interface with if the client doesn't actually need Tendermint's JSON RPC. |
Yeah that's reasonable. We should also wrap broadcast (and maybe some other tendermint methods) if we do this. |
1 similar comment
Yeah that's reasonable. We should also wrap broadcast (and maybe some other tendermint methods) if we do this. |
Correct @alexanderbez , and the less services to interface for clients, the better UX.
+1 |
@anilcse @clevinson this should be addressed for 0.40 right, or is there a change of plan I missed |
In reading Tendermint's v1.0 roadmap, I saw they were evaluating using gRPC instead of their own RPC layer. If that happens, I guess this issue is not relevant anymore? The 2 gRPC servers will be on 2 different ports, if clients want everything on one single port, maybe there's a workaround to combine them under one port? |
We can address this after 0.40 as well, not a blocker. @amaurymartiny as this would be a small rework even after updating the TM side changes, I suggest to address this now. Wdyt? |
Exactly. But it's small enough (hopefully) that it's not a problem to add it in the meantime. Not a blocker for 0.40. |
I suggest we backport at least tx by hash to Stargate. It shouldn't be that hard |
@amaurymartiny's PR currently only covers
|
TxByEvents is higher priority IMHO. Broadcast I'm not sure we should even offer that actually, it should take |
Maybe broadcast is useful to just use a single set of generated types... |
I suggest to include both if it's not too much involved for |
The only argument that I can see for broadcast, is for some users who still want to have a future supported REST endpoint for broadcasting transactions in Stargate. Unless tendermint RPC is basically REST over a specific port (sorry for not knowing this...)? |
Tendermint is not gRPC protocol (yet). Adding this stuff to gRPC allows clients to talk to a single endpoint (eventually). |
Having the ability for clients to broadcast and query from a single gRPC/gateway endpoint would be ideal. |
TxsByEvents
and for queryingTxByHash
. Having gRPC methods/endpoints would be handy for applications that uses gRPC alone.cc @aaronc @amaurymartiny @alexanderbez
The text was updated successfully, but these errors were encountered: