mirror of
https://github.com/tendermint/tendermint.git
synced 2026-06-01 03:46:22 +00:00
docs: fix rpc Tx() method docs (#3331)
This commit is contained in:
committed by
Anton Kaliaev
parent
dff3deb2a9
commit
db5d7602fe
@@ -16,7 +16,7 @@ import (
|
||||
// place.
|
||||
//
|
||||
// ```shell
|
||||
// curl "localhost:26657/tx?hash=0x2B8EC32BA2579B3B8606E42C06DE2F7AFA2556EF"
|
||||
// curl "localhost:26657/tx?hash=0xF87370F68C82D9AC7201248ECA48CEC5F16FFEC99C461C1B2961341A2FE9C1C8"
|
||||
// ```
|
||||
//
|
||||
// ```go
|
||||
@@ -26,7 +26,8 @@ import (
|
||||
// // handle error
|
||||
// }
|
||||
// defer client.Stop()
|
||||
// tx, err := client.Tx([]byte("2B8EC32BA2579B3B8606E42C06DE2F7AFA2556EF"), true)
|
||||
// hashBytes, err := hex.DecodeString("F87370F68C82D9AC7201248ECA48CEC5F16FFEC99C461C1B2961341A2FE9C1C8")
|
||||
// tx, err := client.Tx(hashBytes, true)
|
||||
// ```
|
||||
//
|
||||
// > The above command returns JSON structured like this:
|
||||
|
||||
Reference in New Issue
Block a user