Skip to content

Commit

Permalink
Use Etherscan API (#2253)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycodes authored Mar 10, 2021
1 parent 405f263 commit 9db86d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .js.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
export MM_PUBNUB_SUB_KEY=""
export MM_PUBNUB_PUB_KEY=""
export MM_OPENSEA_KEY=""
export MM_ETHERSCAN_KEY=""

# NOTE: Non-Metamask only, will need to create an account and generate
# API key at https://infura.io in order to connect to main and test nets.
Expand Down
2 changes: 1 addition & 1 deletion app/core/Engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class Engine {
//Fetch txs and get the new lastIncomingTxBlock number
const newlastIncomingTxBlock = await TransactionController.fetchAll(selectedAddress, {
blockNumber,
alethioApiKey: process.env.MM_ALETHIO_KEY
etherscanApiKey: process.env.MM_ETHERSCAN_KEY
});
// Check if it's a newer block and store it so next time we ask for the newer txs only
if (
Expand Down

0 comments on commit 9db86d7

Please sign in to comment.