As per stackoverflow.com/a/52351480/895245 our standard test setup is:
while true; do
resp=$"$(date): hello\n"
len="$(printf '%s' "$resp" | wc -c)"
printf "HTTP/1.1 200 OK\r\nContent-Length: $len\r\n\r\n${resp}\n" | nc -Nl 8000
done
Bibliography:
- www.reddit.com/r/BitcoinBeginners/comments/9dlo3w/how_to_write_arbitrary_data_on_the_bitcoin/
- bitcoin.stackexchange.com/questions/73165/how-to-store-arbitrary-data-in-the-bitcoin-blockchain-and-how-can-i-differentiat
- bitcoin.stackexchange.com/questions/32575/what-methods-are-currently-used-to-embed-additional-data-into-the-bitcoin-blockc
They might have shut down, but they still have the cutest name! And they've made some cute inscriptions too, see: HHTT
The first transaction of each Bitcoin block is called the "coinbase transaction", and it is magic as it does not need to point to a previous output script and have a valid input script as it serves as a Block reward for miners.
Using funds from block 9.
Unlisted articles are being shown, click here to show only listed articles.