Skip to content

Instantly share code, notes, and snippets.

@yxf
yxf / bitcoin-inscription-service.ts
Created April 24, 2024 01:43 — forked from hans-crypto/bitcoin-inscription-service.ts
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;