From dba52f9de7f345a20cc4f79bb3e3dd6aa437920d Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Fri, 13 Oct 2017 17:04:59 +0200 Subject: [PATCH] Use unique etherscan key --- src/status_im/utils/transactions.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/utils/transactions.cljs b/src/status_im/utils/transactions.cljs index 11b170abd9..9032a5ceee 100644 --- a/src/status_im/utils/transactions.cljs +++ b/src/status_im/utils/transactions.cljs @@ -3,6 +3,8 @@ [status-im.utils.types :as types] [status-im.utils.money :as money])) +(def etherscan-api-key "DMSI4UAAKUBVGCDMVP3H2STAMSAUV7BYFI") + (defn get-network-subdomain [network] (case network ("testnet" "testnet_rpc") "ropsten" @@ -16,7 +18,7 @@ (defn get-transaction-url [network account] (let [network-subdomain (get-network-subdomain network)] (str "https://" network-subdomain ".etherscan.io/api?module=account&action=txlist&address=0x" - account "&startblock=0&endblock=99999999&sort=desc&apikey=YourApiKeyToken?q=json"))) + account "&startblock=0&endblock=99999999&sort=desc&apikey=" etherscan-api-key "?q=json"))) (defn- format-transaction [account {:keys [value timeStamp blockNumber hash from to gas gasPrice gasUsed nonce confirmations input]}] (let [inbound? (= (str "0x" account) to)]