Skip to content

Rust implementation of OP_NET indexer targeting WASM build

License

Notifications You must be signed in to change notification settings

sandshrewmetaprotocols/metashrew-opnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metashrew-opnet

Rust implementation of OP_NET metaprotocol using wasmi.

Build

cargo build --target wasm32-unknown-unknown

Run

Sync a Bitcoin node, start up keydb, then, assuming your RPC port is routable via http://localhost:8332 and Bitcoin data directory is ~/.bitcoin:

git clone https://github.com/sandshrewmetaprotocols/metashrew
cargo build --release
./metashrew/target/release/metashrew-keydb --daemon-rpc-url http://localhost:8332 --auth $(cat ~/.bitcoin/.cookie) --indexer ./metashrew-opnet/target/wasm32-unknown-unknown/debug/metashrew-opnet.wasm --redis redis+unix:///home/ubuntu/keydb/keydb.sock

Launch RPC

./metashrew/target/release/metashrew-keydb-view --redis redis+unix:///home/ubuntu/keydb/keydb.sock --indexer ./metashrew-opnet/target/wasm32-unknown-unknown/debug/metashrew-opnet.wasm

Author

flex

About

Rust implementation of OP_NET indexer targeting WASM build

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.9%
  • TypeScript 1.1%