Skip to content

Instantly share code, notes, and snippets.

View cbspears's full-sized avatar

Charlie Spears cbspears

View GitHub Profile
@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;