Skip to content

Writing mini apps to learn Bitcoin & Lightning development

Notifications You must be signed in to change notification settings

alex-klyuev/bitcoin-mini-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Writing mini apps to learn Bitcoin & Lightning development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published