diadata/internal/pkg/blockchain-scrapers/blockchains. Each scrapper should comply with the following folder structure
currencyName/scrappers/currencySymbol/currencySymbol.gofor example for bitcoin will look like
bitcoin/scrapers/btc/btc.go. You must provide a Dockerfile for your blockchain client and for the Go wrapper that connects to our database. An example dockerfile is provided for the Go bindings with a
bitcoindclient scraping the Bitcoin blockchain. The file should be named
build/Dockerfile-symbolfor this example
diadata/internal/pkg/blockchain-scrapers/blockchains/bitcoin/scrapers/btcis built and installed and the finished binary is placed into a mininal distroless container. From there it is executed using the statement in the last line.
docker-compose.bitcoin.yml. Ideally, all blockchain clients are run from there directly
scrapers-networkvirtual network. Your credentials for the DIA API should be handled by the
secretsdirective in the section of your blockchain client. To initialize the API from Go you can create
docker-compose upyou can test the entire system with your cryptocurrency VM and your Go wrapper in a virtual network.