Show
Destroy
An entry
Get it down. Make it good. Share it.
Title
Text
Bitblocks is an open-source web application that is an interface to the bitcoinsv blockchain. Features: * Query by transaction * Query by address * Query the UTXO set * What the CLI offers ## Design notes We started running a node in order to learn. So, we're building up from the basics and would like to share along the way. About every 10 minutes, a block is generated by the bitcoin mining network; a group of cooperating and competing miners are seeking a random number that satisfies a relatively high amount of hash power. A block has one or more transactions. Ideally, millions, billions in transactions, or more. Each transaction has one or more Inputs based on some other unspent transaction on chain. And, each transaction has one or more Outputs. These outputs may be spent or not. And any remainder, any difference between the number of satoshis in the inputs vs the total number of satoshis in the outputs is a fee collected by the miner who mines the transaction into a block. --- * given a transaction * parse out its inputs and outputs which are both arrays * within each input parse its Script as it will be prepended to the target scriptPubKey - to unlock a transaction * within each output, parse its Script as scriptPubKey ### For each script * identify addresses * note how many times op returns are used * are there common patterns * bitcom addresses * other types of transaction filters (like blocks that slot in) ## Technical Notes * Block 724940 failed to sync because the PostgreSQL column for `size` was an `integer`. Updating it to `bigint` via an Elixir migration fixed the issue. The block size `2513932048` revealed the issue.
Status
idea
draft
release
personal
Series
Bitcoin
On Work
Phoenix Trello Tutorial
Civics
Re Email Address
Tags
bitcoin
×
open source
×
+
Slug
Url
Image 1
Image 2
Image 3
Visible
Date