Giter Club home page Giter Club logo

drc20-indexer's Introduction

Verydogelabs DRC-20 Indexer

The Verydogelabs DRC-20 Indexer is an advanced software tool that enables users to efficiently index DRC-20 tokens using two different modes. It is designed to work seamlessly with the Ord Indexer, providing robust and reliable indexing performance.

Modes

This tool operates in two modes:

  1. Startup Mode: This mode is optimized for rapid data acquisition from the Ord Indexer. It does not execute the generation of inscription transfers nor does it initiate any DRC-20/Doge-20 indexing tasks.
  2. Daemon Mode: This mode allows all tasks to run continuously, ensuring constant indexing.

Usage

Here are the recommended steps to use the DRC-20 Indexer:

  1. Run the startup mode (DAEMON=false) until the specified startup block is reached.
  2. Switch to daemon mode by setting DAEMON=true in the environment variables.
  3. Optionally, set SLOW_DOWN_MODE=true to reduce the indexing speed in order to accommodate for any potential blockchain reorganizations.

Environment Variables

Here is a list of the environment variables used by the DRC-20 Indexer along with their explanation and example values.

# Symbol names of tokens to index from ord indexer
DRC_20_SYMBOLS=drc-20
# The block until which the startup mode should run
START_BLOCK=4753897
# The block with first shibescription https://wonky-ord.dogeord.io/shibescription/15f3b73df7e5c072becb1d84191843ba080734805addfccb650929719080f62ei0
# This is the value for Dogecoin mainnet
STARTUP_BLOCK=4609723
# The last block to index (mainly for testing, development)
END_BLOCK=9712647
# The base url of the ord indexer
ORDINALS_BASE_URL=https://wonky-ord.dogeord.io
# false = startup mode, true = daemon mode
DAEMON=false

# Redis settings
# You can use a redis socket or a redis url
USE_REDIS_SOCK=true
REDIS_PATH=/var/run/redis/redis-server.sock
REDIS_URL=redis://127.0.0.1:6379

# How many blocks behind the chain should the indexer be
SLOW_DOWN_MODE_BLOCK_COUNT=100
# Set to true to slow down the indexer to cover reorgs
SLOW_DOWN_MODE=false

drc20-indexer's People

Contributors

artdoge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

drc20-indexer's Issues

sync stuck

Hello, I'm running this drc20-indexer 2 weeks ago, but the syncing stuck serval days.

There are some key-values in redis:

{"key":"status:startup","value":"{"name":"startup","lastSyncedBlock":4753896}"}

{"key":"status:getAndProcessInscriptionTransfers","value":"{"name":"getAndProcessInscriptionTransfers","lastSyncedBlock":4972298}"}

Job createInscriptionTransfers | failed Error: Duplicate inscription

When running the indexers, this error occurs, any ideas how to solve it?

Job createInscriptionTransfers | failed at block 4971991 Error: Duplicate inscription 3f35fd9d37b832f76eb4d58057ad84a5ab5ecff37a1f4704d4212daa7e9bed07i0 for tx 70653e59f890eb846e8fab9f96408356f1e325e6af06837f6053c8a289614b00
indexer-1 | at createInscriptionTransfers (/dist/src/ordinalsIndexing/indexer/createInscriptionTransfers.js:229:31)
indexer-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.