mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 18:02:54 +01:00
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:
parent
6c73ecf433
commit
de99dfe984
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user