- bash, unix-like environment.
- python with asyncio at least.
- docker (for protoc).
- git (to get proto files).
- Start a virtual environment.
- Enter the virtual environment.
source .venv/bin/activate
- Install requirements.
pip install -r requirements.txt
- Generate protobuf python files.
bash scripts/generate-protos.sh
- Run the example.
- Note that the example will create a directory
$PWD/cache
, which you should delete if you want to reset the example.
- Note that
$PWD/blocks/
and $PWD/db_ops/
will grow extremely large with all the data.
FIREHOSE_AUTHPOINT=...
FIREHOSE_ENDPOINT=...
FIREHOSE_API_KEY=...
GRAPHQL_AUTHPOINT=...
GRAPHQL_ENDPOINT=...
GRAPHQL_API_KEY=...
PYTHONPATH=$PWD/src/python python -m dfuse_example \
--firehose_authpoint "$FIREHOSE_AUTHPOINT" \
--firehose_endpoint "$FIREHOSE_ENDPOINT" \
--firehose_api_key "$FIREHOSE_API_KEY" \
--graphql_authpoint "$GRAPHQL_AUTHPOINT" \
--graphql_endpoint "$GRAPHQL_ENDPOINT" \
--graphql_api_key "$GRAPHQL_API_KEY" \
--start_block_num 170843515 \
--accounts "playuplandme,upxtokenacct,communityupx"
bash scripts/format.sh
to format