Make tx an argument for decoderawtransaction (#2155)

* trivial: Make tx an argument for decoderawtransaction

* docs: Fix help command, add to docs
This commit is contained in:
Ben Carman 2020-10-10 00:13:20 -05:00 committed by GitHub
parent 6c73ecf433
commit de99dfe984
2 changed files with 4 additions and 2 deletions

View File

@ -65,11 +65,11 @@ object ConsoleCli {
.action((_, conf) => conf.copy(command = GetBestBlockHash))
.text(s"Get the best block hash"),
cmd("decoderawtransaction")
.hidden()
.action((_, conf) =>
conf.copy(command = DecodeRawTransaction(EmptyTransaction)))
.text(s"Decode the given raw hex transaction")
.children(opt[Transaction]("tx")
.children(arg[Transaction]("tx")
.text("Transaction encoded in hex to decode")
.required()
.action((tx, conf) =>
conf.copy(command = conf.command match {

View File

@ -137,6 +137,8 @@ For more information on how to use our built in `cli` to interact with the serve
- `getfiltercount` - Get the number of filters
- `getfilterheadercount` - Get the number of filter headers
- `getbestblockhash` - Get the best block hash
- `decoderawtransaction` `tx` - `Decode the given raw hex transaction`
- `tx` - Transaction encoded in hex to decode
#### Wallet
- `rescan` `[options]` - Rescan for wallet UTXOs