cosmos-indexer
所属分类:区块链开发
开发工具:Python
文件大小:27KB
下载次数:0
上传日期:2023-04-30 23:56:26
上 传 者:
sh-1993
说明: cosmos索引器,Python中的cosmos区块链索引器
(cosmos-indexer,A cosmos blockchain indexer in Python)
文件列表:
SQL.py (15401, 2023-05-05)
chain_config.json.example (1225, 2023-05-05)
chain_types.py (423, 2023-05-05)
main.py (16324, 2023-05-05)
migrations (0, 2023-05-05)
migrations\adds_txs_hash.py (1694, 2023-05-05)
scripts (0, 2023-05-05)
scripts\_types.py (101, 2023-05-05)
scripts\get_all_contract_labels.py (3332, 2023-05-05)
scripts\get_all_validators.py (1264, 2023-05-05)
scripts\get_all_validators_votes.py (3800, 2023-05-05)
scripts\get_db_stats.py (886, 2023-05-05)
scripts\get_percent_msg_interactions.py (1893, 2023-05-05)
scripts\get_relayers.py (4037, 2023-05-05)
scripts\get_total_fees_over_time.py (3293, 2023-05-05)
scripts\get_unjails.py (1665, 2023-05-05)
scripts\get_votes.py (1515, 2023-05-05)
scripts\most_active_contracts.py (2565, 2023-05-05)
sql_helpers.py (4090, 2023-05-05)
util.py (2512, 2023-05-05)
# Cosmos Indexer
## Past Index Archive Download
-
- SQLite data.db - 14GB Compressed, 55GB de-compressed. *(missing 25780*** and 4136531 per halts)*
## Snapshot Export Data
- (Bank, Staking, and Sequence exports every 20k blocks)
## Compression & Decompression
```bash
# compressed
tar -czvf network_start-end.tar.gz data.db
# decompressed
tar -xzvf name-of-archive.tar.gz
```
---
## Getting Started
```bash
cp chain_config.json.example chain_config.json
# Setup the values correctly and ranges for blocks
# TASK Types:
# - download
# - decode
# - missing
# - sync (When you have it all indexed, use this to stay up on the tip. This gets latest chain & downloaded, and downloads / decodes all inbetween)
python3 main.py 0
python3 main.py 1
...
```
## Notes
```text
- Addresses of UNKOWN are for MultiSendMessages. These Messages do not contain the actual addresses.
```
## Sections
```json
"sections": {
"genesis": {
"start": 1,
"end": 2579000,
"grouping": 1000,
"rpc_endpoints": [
"https://rpc-v2-archive.junonetwork.io:443"
]
},
"2nd": {
"start": 2578000,
"end": 4136600,
"grouping": 1,
"rpc_endpoints": [
"https://rpc-v3-archive.junonetwork.io:443"
]
},
"end1": {
"start": 4136500,
"end": 6000000,
"grouping": 1000,
"rpc_endpoints": [
"https://rpc-archive.junonetwork.io:443"
]
},
"end2": {
"start": 6000000,
"end": 8000000,
"grouping": 1000,
"rpc_endpoints": [
"https://rpc-archive.junonetwork.io:443"
]
}
}
```
近期下载者:
相关文件:
收藏者: