npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

krc20-snapshot

v1.0.1

Published

This command-line utility creates a snapshot of any krc20 token in JSON or CSV format. You may use a publicly available node, or your own fully synced kcc-geth node.

Downloads

8

Readme

/***************************************************************************************************************************** *

  •    .o.       ooooo        ooooooooo.   ooooo   ooooo       .o.            oooooooooo.         .o.         .oooooo.   
  •   .888.      `888'        `888   `Y88. `888'   `888'      .888.           `888'   `Y8b       .888.       d8P'  `Y8b  
  •  .8"888.      888          888   .d88'  888     888      .8"888.           888      888     .8"888.     888      888 
  • .8' `888.     888          888ooo88P'   888ooooo888     .8' `888.          888      888    .8' `888.    888      888 
  • .88ooo8888. 888 888 888 888 .88ooo8888. 888 888 .88ooo8888. 888 888
  • .8' 888. 888 o 888 888 888 .8' 888. 888 d88' .8' 888. 88b d88'
  • o88o o8888o o888ooooood8 o888o o888o o888o o88o o8888o o888bood8P' o88o o8888o `Y8bood8P'

*cusdt-LINK, t.me/GweiDart *****************************************************************************************************************************/

:camera_flash: KCC KRC20 Token Snapshot: Create KRC20 Token Snapshots :camera_flash:

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.