docker run -it --name libbitcoin debian:bookworm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Notes: | |
# remove the first line (source) if interfaces.d does not exist. | |
# interface_name examples: eth0, ens18 etc | |
# chosen_ip example: 192.168.1.18 etc | |
# This works for VMs. For LXC, it has to be done within proxmox itself. | |
# On UI: node > CT > network. Enter IP there with a trailing "/24". | |
source /etc/network/interfaces.d/* | |
# The loopback network interface |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
host="localhost" | |
port=50001 | |
get_balance='{"jsonrpc":"2.0","method":"blockchain.scripthash.get_balance","params":["562ce1c828ab2594470ab4de2561d993d5b5cce0b55695658afb17bec0121ea5"],"id":1}' | |
get_history='{"jsonrpc":"2.0","method":"blockchain.scripthash.get_history","params":["562ce1c828ab2594470ab4de2561d993d5b5cce0b55695658afb17bec0121ea5"],"id":1}' | |
# command="$get_balance" | |
command="$get_history" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103.126.161.206:8335 | |
103.16.128.63:8333 | |
103.251.165.138:8333 | |
103.6.212.28:8333 | |
104.250.153.218:8333 | |
108.238.23.61:8333 | |
109.227.125.146:8333 | |
116.202.223.108:8333 | |
134.209.198.36:8333 | |
138.197.158.71:8333 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env node | |
// Instructions: place the file inside a directory, run `npm init -y` and install dependencies with | |
// `npm i bitcoinjs-lib@^6.1.1 ecpair@^2.1.0 tiny-secp256k1@^2.2.1` | |
const bitcoin = require("bitcoinjs-lib"); | |
const ecc = require("tiny-secp256k1"); | |
const { ECPairFactory } = require("ecpair"); | |
const ECPair = ECPairFactory(ecc); | |
bitcoin.initEccLib(ecc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env node | |
const fs = require("fs"); | |
const bitcoin = require("bitcoinjs-lib"); | |
const ecc = require("tiny-secp256k1"); | |
const { ECPairFactory } = require("ecpair"); | |
const ECPair = ECPairFactory(ecc); | |
bitcoin.initEccLib(ecc); | |
const network = bitcoin.networks.bitcoin; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bitcoin-cli getrawtransaction 5c4f060e6166a530d891cafd0e9df42441d29b1ed9cff71a1652201b8d50bd72 2 | jq -r '.vout[].scriptPubKey.hex | sub("^.{6}"; "")' | while read -r output; do echo "$output" | xxd -p -r; echo; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env node | |
// Invoke with: bitcoin-cli getrawtransaction 4be3a833ee83b4ca7d157d60fbf7411f7528314ce90df8a844f855118bc6ca11 | ./dinner-inscription.js | |
const { Transaction } = require('bitcoinjs-lib'); | |
if (process.stdin.isTTY) { | |
console.error('raw tx needed, quitting...'); | |
process.exit(1); | |
} |
Instructions taken from Obtaining Factory Images.
curl -O https://releases.grapheneos.org/allowed_signers
NewerOlder