snapcat is a Python command-line tool that helps monitor CATs (Chia Asset Tokens) on Chia Blockchain.
Project description
SnapCAT
snapcat is a Python command-line tool that helps monitor CATs (Chia Asset Tokens) on Chia Blockchain. It retrieves the latest CAT holder data by communicating with your local Chia Full Node RPC. The tool also leverages code from chia-network's CAT-addresses.
❯ snapcat --help
Usage: snapcat [OPTIONS] COMMAND [ARGS]...
╭─ Options ──────────────────────────────────────────────────────────────────────────╮
│ --version Show the version and exit. │
│ --file-name -f TEXT The name of the database file (default: <tail_hash>.db) │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────╮
│ export Export the CAT holder as csv or json. │
│ show Display the CAT db information. │
│ sync Sync or create (if not exist) the CAT holder database. │
╰────────────────────────────────────────────────────────────────────────────────────╯
Sync (i.e., generate CAT database)
❯ snapcat sync --help
Usage: snapcat sync [OPTIONS]
Sync or create (if not exist) the CAT holder database.
╭─ Options ──────────────────────────────────────────────────────────────────────────╮
│ * --tail-hash -t TEXT The TAIL hash of CAT [required] │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────╯
❯ snapcat -f dbx.db sync -t "db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20"
press Ctrl+C to exit.
tail hash: db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
database file name: dbx.db
Full Node is synced
Processed all blocks from 0 to 5320121
Export
❯ snapcat export --help
Usage: snapcat export [OPTIONS]
Export the CAT holder as csv or json.
╭─ Options ──────────────────────────────────────────────────────────────────────────╮
│ --output -o TEXT The name of the output file (default: <tail_hash>-<block>.csv │
│ or .json) │
│ --coins -c Show individual coins in output rather than collapsing on │
│ puzzle hash │
│ --json -j Export as JSON instead of CSV │
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────╯
❯ snapcat -f dbx.db export --json -o dbx.json
Exporting CAT holders
Tail Hash: db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
Last Block Height: 5319876
Show
❯ snapcat show --help
Usage: snapcat show [OPTIONS]
Display the CAT db information.
╭─ Options ──────────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰────────────────────────────────────────────────────────────────────────────────────╯
❯ snapcat -f dbx.db show
Tail Hash: db1a9020d48d9d4ad22631b66ab4b9ebd3637ef7758ad38881348c5d24c38f20
# of Coins Spent: 152873
# of Coins Created: 158309
Last Block Height: 5319876
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
snapcat-0.1.1.tar.gz
(7.9 kB
view details)
Built Distribution
snapcat-0.1.1-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file snapcat-0.1.1.tar.gz
.
File metadata
- Download URL: snapcat-0.1.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f004a1573b5412ead0541c224ecd464979d2699c0dd5512dbf2e7c1aca0aa4 |
|
MD5 | be931c4cc57ac540a0a1434943173fe4 |
|
BLAKE2b-256 | f77b99071bab2ee691bde34d3e3922be84cc1fa3bf74bcc2d14431f550c1043f |
File details
Details for the file snapcat-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: snapcat-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3403ed4faa50c26c22c4bf01f99c0dc4ffb1cecf3c0302eca5627d34def5fcf |
|
MD5 | 3a30189f2cbbedae69e455fe43b7d4ee |
|
BLAKE2b-256 | a4a2e3e3a9a772447d74097231f74b846a23b0f05866371116540aedad8d41e0 |