blockchain-data-engineering.../token-scanner-api
2023-03-11 19:08:48 -08:00
..
abi first commit 2023-03-11 17:12:27 -08:00
output fix token class 2023-03-11 19:08:48 -08:00
src fix token class 2023-03-11 19:08:48 -08:00
.env.example fix token class 2023-03-11 19:08:48 -08:00
Makefile first commit 2023-03-11 17:12:27 -08:00
README.md first commit 2023-03-11 17:12:27 -08:00
requirements.txt first commit 2023-03-11 17:12:27 -08:00
setup.py first commit 2023-03-11 17:12:27 -08:00
tox.ini first commit 2023-03-11 17:12:27 -08:00
vercel.json first commit 2023-03-11 17:12:27 -08:00

token scanner api and cli


installing dependencies

create a venv, either using virtualenv, pipenv, or poetry.

because of some of the dependencies in this code, we will be developing on a python3.9 environment (install here if you dont have that version on disk):

virtualenv -p /usr/local/bin/python3.9 venv
source venv/bin/activate
pip3 install -r requirements.txt

add environment variables

now, create an .env file and add an RPC_PROVIDER_URL to connect to ethereum mainnet nodes (you can pick from any of this list of nodes as a service):

cp .env.example .env
vim .env

installing the package

make install
indexer -h

deploying on production

we use vercel to deploy this app at .

to deploy new changes, first install vercel:

yarn

then run:

vercel login
vercel .