Skip to content

Instantly share code, notes, and snippets.

View hans-crypto's full-sized avatar

Hans ❤️ Crypto hans-crypto

View GitHub Profile
@hans-crypto
hans-crypto / README_bitcoin.md
Last active April 27, 2024 11:32
Mac beginner's guide for ORD development (updated as of Bitcoin Core v26.1 and ord v0.18.3)

Ord Guide for Mac

Main source for this: https://discord.com/channels/987504378242007100/1078719003624747108 🙏🙏 by ETS (so7ow on Discord)

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!

1️⃣ INSTALL HOMEBREW

@hans-crypto
hans-crypto / bitcoin-inscription-service.ts
Last active April 24, 2024 01:43
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;