Skip to main content

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.5.1.tar.gz (81.2 kB view details)

Uploaded Source

Built Distribution

mooncrawl-0.5.1-py3-none-any.whl (98.3 kB view details)

Uploaded Python 3

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

Hashes for mooncrawl-0.5.1.tar.gz
Algorithm Hash digest
SHA256 23510265321483a11eff6c52ce164e475a6c90a59dd6359745e2fa333150184f
MD5 b0a1640b017a864e01e0026644a45a0b
BLAKE2b-256 882792733065fc03642e097cafb18b907bccbab09ab120850428a7a90e2e8e81

See more details on using hashes here.

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

Hashes for mooncrawl-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f47f40e866fc1666a728cea92c0e858670bc81e01763de6e37fa4ebd20a88bf
MD5 b23d957dba1eacbcfc07b975728adc96
BLAKE2b-256 8f7bfd3dbb646c3613807724bb6a72879c933366bd1b6d0664e51d976880ffd1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page