Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gweidart/ERC20-snapshot
📸 Creates a snapshot of any ERC20 token in JSON or CSV format.
https://github.com/gweidart/ERC20-snapshot
airdrop bep20 bep20-token bsc erc20 erc20-token ethereum ethereum-token kcc krc20 krc20-token kucoin kucoin-community-chain kucoin-token npm npm-module npm-package smart-contract snapshot
Last synced: about 1 month ago
JSON representation
📸 Creates a snapshot of any ERC20 token in JSON or CSV format.
- Host: GitHub
- URL: https://github.com/gweidart/ERC20-snapshot
- Owner: gweidart
- License: apache-2.0
- Created: 2022-01-09T08:47:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-13T23:55:57.000Z (almost 3 years ago)
- Last Synced: 2024-11-15T22:31:28.564Z (about 1 month ago)
- Topics: airdrop, bep20, bep20-token, bsc, erc20, erc20-token, ethereum, ethereum-token, kcc, krc20, krc20-token, kucoin, kucoin-community-chain, kucoin-token, npm, npm-module, npm-package, smart-contract, snapshot
- Language: JavaScript
- Homepage: https://github.com/cusdt-LINK/erc20-snapshot
- Size: 29.3 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
*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
```json
{
"provider": "https://rpc-mainnet.kcc.network",
"contractAddress": "",
"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.