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
mooncrawl-0.2.8.tar.gz
(63.2 kB
view hashes)
Built Distribution
mooncrawl-0.2.8-py3-none-any.whl
(78.8 kB
view hashes)
Close
Hashes for mooncrawl-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f8a924f931c1f74481a39264ccd402b3e5f974844c0cfbd1a28ae0297622f60 |
|
MD5 | 450772c5881c271f0b9fd1e8c48d11df |
|
BLAKE2b-256 | 36d7b5b8977798bc170932c582bd47c0004d7f5d8f46b9ed2f8b97536f8ab364 |