Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.07 KB

README.md

File metadata and controls

39 lines (24 loc) · 1.07 KB

Inscription indexer on EVM

Since the start of the brc-20 Experiment initiated by domo, the Bitcoin ecosystem has begun to have a new narrative. Meanwhile, non-Bitcoin ecosystems have also followed the hype of Inscription.

Inscription on EVM

Currently, there are three standard inscription formats.

// Deploy
data:,{"p":"brc-20","op":"deploy","tick":"wakaka","max":"21000000","lim":"1000"}

// Mint
data:,{"p":"brc-20","op":"mint","tick":"wakaka","amt":"1000"}

// Transfer
data:,{"p":"brc-20","op":"transfer","tick":"wakaka","amt":"900"}

The data input is in hexadecimal string format and a self-transaction sent by a user is an inscription on EVM.

How does inscription indexing work

Inscription need to be deployed first before users can start minting. Therefore, the indexer needs to be built from the first deploy, and the mint indexing ends when max supply is reached.

Usage

DB migration

cargo run --bin prisma -- migrate dev

Running Indexer

RUST_LOG=info cargo run --bin inscription