mirror of
https://github.com/alexgo-io/libbrc20-indexer.git
synced 2026-04-29 12:15:14 +08:00
2c88b3a375a23e720db8e34fa13fa12d718c5049
UniSat brc-20 Indexer library
This library fully implements the specification protocol of brc-20.
Developers can integrate this library in the code according to their needs.
Example cmd/main.go
When the cmd/main.go sample program is running, it will analyze and index the latest data based on the input data, and output a detailed list of all Token information and holder balances in text form.
unisat@ordinals:~/brc20/brc20-indexer$ go build ./cmd/main.go
unisat@ordinals:~/brc20/brc20-indexer$ ./main
2023/05/04 19:14:02 ProcessUpdateLatestBRC20 update. total 2655185
2023/05/04 19:14:03 ProcessUpdateLatestBRC20 deploy, but max invalid. ticker:🫠, max: 😵
2023/05/04 19:14:03 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: 500k
2023/05/04 19:14:04 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: peng
2023/05/04 19:14:04 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: peng
2023/05/04 19:14:04 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: wass
2023/05/04 19:14:05 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:<10K, amount: NaN
2023/05/04 19:14:05 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:meme, amount: NaN
2023/05/04 19:14:05 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:meme, amount: NaN
2023/05/04 19:14:05 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:$OG$, amount: NaN
2023/05/04 19:14:05 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:$OG$, amount: NaN
2023/05/04 19:14:05 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:bits, amount: NaN
2023/05/04 19:14:06 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:$OG$, amount: NaN
2023/05/04 19:14:08 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:QUHU, amount: 998,899
2023/05/04 19:14:09 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:SHIB, amount: 161,000,000,000
2023/05/04 19:14:09 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:SHIB, amount: 161,000,000,000
2023/05/04 19:14:09 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: nft
2023/05/04 19:14:09 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: luki
2023/05/04 19:14:09 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: sogs
2023/05/04 19:14:11 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:SHIB, amount: 1,000,000,000
2023/05/04 19:14:12 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: octo
2023/05/04 19:14:12 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:SHIB, amount: 100,000,000,000
2023/05/04 19:14:13 ProcessUpdateLatestBRC20 deploy, but limit invalid. ticker:$neo, limit: 10,000
2023/05/04 19:14:14 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: pixo
2023/05/04 19:14:15 ProcessUpdateLatestBRC20 deploy, but max invalid. ticker:錢$, max: 21,000,000
2023/05/04 19:14:16 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:punk, amount: .1
2023/05/04 19:14:22 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:ordi, amount: .99999
2023/05/04 19:14:22 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: dung
2023/05/04 19:14:22 ProcessUpdateLatestBRC20 inscribe transfer, but amount invalid. ticker:TRIB, amount:
2023/05/04 19:14:23 ProcessUpdateLatestBRC20 deploy, but max invalid. ticker:hasi, max: 69.000,000
2023/05/04 19:14:24 ProcessUpdateLatestBRC20 deploy, but max missing. ticker: bob
2023/05/04 19:14:24 ProcessUpdateLatestBRC20 finish. ticker: 10941, users: 44718, tokens: 10941, validTransfer: 56317, invalidTransfer: 3471
Languages
Go
100%