Skip to content

Commit

Permalink
Updated 'EtherscanApiToken'.
Browse files Browse the repository at this point in the history
Fixed Ethereum transaction history ordering so most recent tx shows
first when 'etherscan.io' is used as block indexer. This ensures
same ordering consistency as Ethereum blockbook.
  • Loading branch information
greatwolf committed Jul 20, 2022
1 parent 7d28ba2 commit 940d3a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Background.js
Original file line number Diff line number Diff line change
Expand Up @@ -7962,14 +7962,14 @@ var _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
{
return Promise.resolve(r.Configuration.etherscanApiToken).then(function(t)
{
return "https://api.etherscan.io/api?module=account&action=txlist&address=0x" + e + "&sort=asc&apikey=" + t
return "https://api.etherscan.io/api?module=account&action=txlist&address=0x" + e + "&sort=desc&apikey=" + t
})
},
e.prototype.getInternalTransactionsUrl = function(e)
{
return Promise.resolve(r.Configuration.etherscanApiToken).then(function(t)
{
return "https://api.etherscan.io/api?module=account&action=txlistinternal&address=0x" + e + "&sort=asc&apikey=" + t
return "https://api.etherscan.io/api?module=account&action=txlistinternal&address=0x" + e + "&sort=desc&apikey=" + t
})
},
e.prototype.getPartialTransactionUrl = function()
Expand Down
2 changes: 1 addition & 1 deletion apitokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const APITOKENS =
{
METADATA_API_TOKEN: "wXFsO4163LADxDCT3lqNs9hQjeiP6jZcmuf5T6ad",
FIREBASE_ID: "keepkey-80386",
EtherscanApiToken: ["8VMWZ17XJ3KQIGS4J2NFUS4YBHHZJSG65P"],
EtherscanApiToken: ["RN6HBGBVWRTWK2Y8MNZEGBENTV5733QG3F"],
}

/**
Expand Down

0 comments on commit 940d3a2

Please sign in to comment.