Browse Source

docs: fix rpc Tx() method docs (#3331)

pull/3343/head
Daniil Lashin 5 years ago
committed by Anton Kaliaev
parent
commit
db5d7602fe
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      rpc/core/tx.go

+ 3
- 2
rpc/core/tx.go View File

@ -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:


Loading…
Cancel
Save