Package Logo
substream-runes
substream-runes@v0.1.0
Total Downloads
10
Published
1 weeks ago
Total Downloads
10
Published
1 weeks ago

Readme

substream_runes Substreams modules

Usage

You may need buf package, install it depending on your OS Example (Linux):

VERSION=$(curl -s https://api.github.com/repos/bufbuild/buf/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
wget https://github.com/bufbuild/buf/releases/download/${VERSION}/buf-Linux-x86_64 -O /tmp/buf
sudo mv /tmp/buf /usr/local/bin/buf
sudo chmod +x /usr/local/bin/buf
buf --version

Build rust binary

cargo build

Build rust .wasm

cargo build --target wasm32-unknown-unknown --release

Build substreams

substreams build

Authenticate on substreams

substreams auth

Get streaming

substreams gui

Login to substreams.dev

substreams registry login  

Publish your Substreams to substreams.dev

substreams registry publish

All command you need

substreams build
substreams auth
substreams gui       			  # Get streaming!
substreams registry login         # Login to substreams.dev
substreams registry publish       # Publish your Substreams to substreams.dev

Using Docker

Create .substreams.env file

export SUBSTREAMS_API_TOKEN=
export SUBSTREAMS_ENDPOINTS_CONFIG_BTC=
docker build -t "substreams-runes" .
docker run -p 9000:9000 substreams-runes

Documentation

Modules

Maps icon
Maps

map
map_get_rune_by_id

af77414ba29938080b0cc66521b5e75eabf46505
map map_get_rune_by_id (
paramsstring
blocksf.bitcoin.type.v1.Block
)  -> rune.v1.RuneId
Default param : block=123456&tx=7890
substreams gui substream-runes@v0.1.0 map_get_rune_by_id
Protobuf

Protobuf Docs Explorer

etching.v1
terms.v1
runestone.v1
rune.v1
edict.v1