mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 16:06:26 +00:00
Create 04_2__Interlude_Using_JQ.md
This commit is contained in:
parent
ea3d3e8720
commit
a9d93263f5
@ -392,6 +392,13 @@ Any time you're looking through a large mass of information in a JSON object out
|
||||
```
|
||||
alias btcunspent="bitcoin-cli listunspent | jq -r '.[] | { txid: .txid, vout: .vout, amount: .amount }'"
|
||||
```
|
||||
## Summary: Using JQ
|
||||
|
||||
JQ makes it easy to extract information from JSON arrays and objects. It can also be used in shell scripts for fairly complex calculations that will make your life easier.
|
||||
|
||||
## What's Next?
|
||||
|
||||
Continue "Sending Bitcoin Transactions" with [§4.3 Creating a Raw Transaction with Named Arguments](04_3_Creating_a_Raw_Transaction_with_Named_Arguments.md).
|
||||
|
||||
## Appendix: The Transaction Fee Script
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user