Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.45 KB

api-keys.md

File metadata and controls

37 lines (27 loc) · 1.45 KB

APIs we use in our website

  1. Add personal GitHub API token (free)

We recommend setting this up when running the project locally, as we use the GitHub API to fetch repository data for many projects & files.

  • Follow these instructions to create a personal GitHub API token
    • When selecting scopes in step 8, leave everything unchecked (the data we fetch doesn't require any scope)
  • In local repo root directory: Make a copy of .env.example and name it .env
  • Copy & paste your new GitHub API token into .env
# .env Example:
GATSBY_GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059
  1. Add Etherscan API token (free)
  • Create an account on Etherscan
  • Navigate to your Account Settings page
  • In the sidebar, click on 'API-KEYs' and add a new token
  • Copy & paste your Api-Key Token from Etherscan into .env
# .env Example:
ETHERSCAN_API_KEY=K6NUTARFJZJCIXHF1F1E1YGJZ8RQ29BE4U
  1. Add DeFiPulse API token (free)
  • Follow this guide to create an account and get your DeFiPulse API token
  • Copy & paste your Active API Key from DeFiPulse into .env
# .env Example:
DEFI_PULSE_API_KEY=4953aaf7966dad9c129397e197a0630ed0594f66962dd5fb058972b250da