Based on the GraphQL with REST API module, you have learnt how to wrap multiple REST API endpoints into a single GraphQL API for more efficient querying.
In this bounty, you will be working with Etherscan APIs and are tasked to wrap multiple Etherscan API endpoints under a single GraphQL API. The Etherscan APIs are as follows:
- Get Ether Balance for a Single Address (https://docs.etherscan.io/api-endpoints/accounts#get-ether-balance-for-a-single-address)
- Get Total Supply of Ether (https://docs.etherscan.io/api-endpoints/stats-1#get-total-supply-of-ether)
- Sign up for a new Etherscan account to generate your API key if you do not have one.
- Proceed to clone the git repository
- Create a new .env file and create a
ETHERSCAN_APIkey variable to insert your Etherscan API key value - Run the
$npm installcommand to install the necessary dependencies - Make the code changes to
schema.graphqlandethDatasource.js - Run the
$node index.jscommand to initialise the GraphQL server and run your queries