microscopexyz / chainmetareader

The open source blockchain metadata protocol
https://microscopeprotocol.xyz/
Apache License 2.0
12 stars 2 forks source link

Add upload.py script #62

Closed zhanwu closed 1 year ago

zhanwu commented 1 year ago

You can now use the upload.py to upload chainmeta to the database

./upload.py ./examples/coinbase_sample.json

Note, you will need export the Open Chainmeta DB connection to environment variable before using the tool

export CHAINMETA_DB_CONN=mysql+pymysql://user:pwd@dbhost/chainmeta