Skip to content

Instantly share code, notes, and snippets.

@hans-crypto
hans-crypto / bitcoin-inscription-service.ts
Last active October 13, 2024 16:49
Extracts the first inscription from a Bitcoin transaction.
import axios from 'axios';
/**
* Bitcoin Script Opcodes
* see https://en.bitcoin.it/wiki/Script
*/
const OP_FALSE = 0x00;
const OP_IF = 0x63
const OP_0 = 0x00;
@hans-crypto
hans-crypto / 1_README_bitcoin_mac.md
Last active September 27, 2024 10:17
Mac/Linux beginner's guide for ORD development

Ord Guide for Mac

Main source for this: Mac beginner's guide by ETSThis whole guide is a blatant copy & paste, I deserve zero credits!

This guide mostly assumes a primary SSD and an external SSD, formatted as APFS. If you want to follow the commands verbatim, name your external SSD volume as ord-dev. You'll still need ~100 GB free on your internal disk, as only the bitcoin blocks are moved to the external SSD. This configuration allows for moving the bulk of the storage needs to the external but leaving enough in the default locations to make commands easier.

⚠️ This guide won't work well if your primary or external storage are on a spinning disk. SSD only! Like really, you will regret your wasted time otherwise! Also make sure that you have a lot of memory – otherwise ord will never finish. Even machines with 32 GB+ are struggling sometimes these days. Go for 64 GB!

1️⃣ INSTALL HOMEBREW

@hans-crypto
hans-crypto / bitcoin-links.md
Created October 3, 2024 14:11
bitcoin-links