py-sdk icon indicating copy to clipboard operation
py-sdk copied to clipboard

epic: feat: Make it possible to broadcast transactions with RPC instead of GRPC

Open Unique-Divine opened this issue 2 years ago • 0 comments

Currently, the Transaction type parses protobuf messages and gets the raw tx bytes needed to broadcast transactions over gRPC. The Cosmos-SDK v0.47 upgrade seems to have large breaking behavior for gRPC, thus it may be wise for us to add a tx broadcasting client for JSON RPC.

This would be similar to the one used by the Tendermint34Client and SigningStargateClient in cosmjs.

Full List of RPC Methods

Goal: Implement and test each RPC method from Tendermint v0.37

Tx - transaction broadcast APi

These broadcasting RPC methods are the top priority because most of the other queries have a corresponding GRPC query that works on Nibiru v0.21

  • [x] "broadcast_tx_sync"
  • [ ] "broadcast_tx_async"
  • [ ] "broadcast_tx_commit"
  • [ ] "check_tx"

ABCI - [A]pplication [B]lock[C]hain [I]nterface

  • [ ] "abci_info"
  • [ ] "abci_query"

Node Info

  • [ ] "block"
  • [ ] "block_by_hash"
  • [ ] "block_results"
  • [ ] "block_search"
  • [ ] "blockchain"
  • [ ] "broadcast_evidence"
  • [ ] "commit"
  • [ ] "consensus_params"
  • [ ] "consensus_state"
  • [ ] "dump_consensus_state"
  • [ ] "genesis"
  • [ ] "header"
  • [ ] "header_by_hash"
  • [ ] "health"
  • [ ] "net_info"
  • [ ] "num_unconfirmed_txs"
  • [ ] "status"
  • [ ] "tx"
  • [ ] "tx_search"
  • [ ] "unconfirmed_txs"
  • [ ] "validators"

Related

Unique-Divine avatar Jul 07 '23 00:07 Unique-Divine