Moonstream crawlers
Project description
Moonstream Crawlers
Installation
(Use Python 3)
pip install -e .
Database access and environment variables
Make sure that the MOONSTREAM_DB_URI
environment variable is set as a Postgres connection string.
For a sample, view sample.env
.
Crawlers
Ethereum Signature Database
This crawler retrieves Ethereum function signatures from the Ethereum Signature Database at https://www.4byte.directory.
Crawling ESD function signatures
python -m mooncrawl.esd --interval 0.3 functions
Crawling ESD event signatures
python -m mooncrawl.esd --interval 0.3 events
Ethereum contract registrar
This crawler scans new transactions for smart contract deployments and retrieves their deployment addresses from transaction receipts.
To run this crawler:
python -m mooncrawl.cli ethcrawler contracts update
Output is JSON list of pairs [..., (<transaction_hash>, <contract_address>), ...]
, so you can pipe to jq
:
python -m mooncrawl.cli ethcrawler contracts update | jq .
You can also specify an output file:
python -m mooncrawl.cli ethcrawler contracts update -o new_contracts.json
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mooncrawl-0.5.1.tar.gz
.
File metadata
- Download URL: mooncrawl-0.5.1.tar.gz
- Upload date:
- Size: 81.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
23510265321483a11eff6c52ce164e475a6c90a59dd6359745e2fa333150184f
|
|
MD5 |
b0a1640b017a864e01e0026644a45a0b
|
|
BLAKE2b-256 |
882792733065fc03642e097cafb18b907bccbab09ab120850428a7a90e2e8e81
|
File details
Details for the file mooncrawl-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: mooncrawl-0.5.1-py3-none-any.whl
- Upload date:
- Size: 98.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9f47f40e866fc1666a728cea92c0e858670bc81e01763de6e37fa4ebd20a88bf
|
|
MD5 |
b23d957dba1eacbcfc07b975728adc96
|
|
BLAKE2b-256 |
8f7bfd3dbb646c3613807724bb6a72879c933366bd1b6d0664e51d976880ffd1
|