Code Monkey home page Code Monkey logo

erc20-snapshot's Introduction

*cusdt-LINK, t.me/GweiDart

📸 KCC KRC20 Token Snapshot: Create KRC20 Token Snapshots📸

This command-line utility creates a snapshot of any KRC20 token in JSON or CSV format. You may use "https://rpc-mainnet.kcc.network", or your own fully synced KCC-geth node.

  • Works without a local KCC-geth node.
  • Automatically resumes block iteration upon failure.
  • Multichain compatability! (works with any EVM compatible chain. BSC, FTM, ETH, POLYGON, etc).
  • Differentiates between contract and regular addresses.

Getting Started

npm install krc20-snapshot -g

CLI Arguments

None. Prompts for user input and produces a configuration file on the first run.

How to Use KCC KRC-20 Token Snapshot?

Navigate to the directory you would like you token snapshot saved in.

cd path/to/a/directory

Run krc20-snaptshot:

krc20-snapshot

Configuration File / Prompt Parameters

{
  "provider": "https://rpc-mainnet.kcc.network",
  "contractAddress": "<insert your contract address here>",
  "fromBlock": 0,
  "toBlock": "latest",
  "format": "json",
  "blocksPerBatch": 2500,
  "delay": 0,
  "checkIfContract": "yes"
}

provider

Enter your node provider URL or a fully synced geth node.

contractAddress

KRC20 token address.

fromBlock

The block height to scan from. To save time, enter the block number of the token's contract creation.

toBlock

The block height to end the scan at (this will be your snapshot block).

blocksPerBatch

The number of blocks to query per batch.

If you are using a remote node provider, keep this number relatively low (2000-5000) to avoid rate limits. If you are using a dedicated geth node, you can increase this number to signifigantly increase interation speed.

delay

The delay (in ms) between each request in the loop. Change this if you are experiencing rate limiting from your provider.

checkIfContract

Checks each address to determine whether it is a smart contract or regular wallet address.

erc20-snapshot's People

Contributors

gweidart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

c4ei kafuivenu

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.