Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 877 Bytes

README.md

File metadata and controls

29 lines (16 loc) · 877 Bytes

Bitcoin Mini Apps

Mini apps to learn Bitcoin & Lightning development

Focus on interacting with self-hosted Bitcoin & Lightning nodes

Trace Ancestry

Given a txid, this app analyzes the transaction ancestry of that transaction.

It climbs the chain by selecting the biggest input of each transaction as the "parent".

Some interesting data points about the ancestry are written to /data.

Found at apps/traceTxBiggestAncestors.

Example

CLI Tools

Handy CLI tools to query your node for info that requires one or more RPC calls.

Example: place the following into your ~/.bash_aliases

alias get-block="node /<path>/bitcoin-mini-apps/utils/cli-tools/getBlock.js"

Now use get-block on the command line to get a block object from a block height number.