#protocols #service #inscription #name #env #inscriber #ns-protocol

bin+lib ns-inscriber

Name & Service Protocol inscriber service in Rust

6 releases (breaking)

0.6.0 Jan 22, 2024
0.5.0 Jan 14, 2024
0.4.0 Jan 8, 2024
0.3.0 Jan 5, 2024
0.1.0 Dec 23, 2023

#6 in #inscription

CC0 license

310KB
7.5K SLoC

NS-Inscriber — NS-Protocol Inscriber library in Rust

License Crates.io CI Docs.rs Latest Version

More information about the protocol can be found in the protocol documentation

Dependencies

  1. Bitcoin RPC server with txindex option enabled, don't need wallet. For example, run a regtest node:
bitcoind -regtest -txindex -rpcuser=test -rpcpassword=123456 -fallbackfee=0.00001

Development

Build:

cargo build --release --package ns-inscriber --bin ns-inscriber

Usage

Rename example.env to .env and fill in the values, run ns-inscriber with .env:

./target/release/ns-inscriber help
./target/release/ns-inscriber list-keys

run ns-inscriber with my.env

./target/release/ns-inscriber -c my.env list-keys

This is the first transaction inscribed 36 NS inscriptions on mainnet: https://mempool.space/tx/8e9d3e0d762c1d2348a2ca046b36f8de001f740c976b09c046ee1f09a8680131

ns-inscriber -c my.env inscribe --txid 1d6166ed74982ffd757d3da4082fa18a61094785a3338d6caf3c50190f3e14d7 --addr bc1q6dukpvmcxae0pdh95zgh793l5ept8fluhqqnyc --fee 200 --key 0x31d6ec328b42051a63c1619afad4e60b78f4991e62337918fe2d2e694a4f88f7 --names 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z

Dependencies

~37–52MB
~884K SLoC