ns-inscriber

Crates.ions-inscriber
lib.rsns-inscriber
version0.6.0
sourcesrc
created_at2023-12-23 03:25:10.321175
updated_at2024-01-22 07:37:09.351366
descriptionName & Service Protocol inscriber service in Rust
homepage
repositoryhttps://github.com/ldclabs/ns-rs/tree/main/crates/ns-inscriber
max_upload_size
id1078822
size179,714
0xZensh (zensh)

documentation

README

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
Commit count: 0

cargo fmt