diff --git a/src/status_im/utils/transactions.cljs b/src/status_im/utils/transactions.cljs index 13a67b02a5..2730160b52 100644 --- a/src/status_im/utils/transactions.cljs +++ b/src/status_im/utils/transactions.cljs @@ -7,9 +7,9 @@ (defn get-network-subdomain [network] (case network - ("testnet" "testnet_rpc") "ropsten" + ("testnet" "testnet_rpc") "api-ropsten" ("mainnet" "mainnet_rpc") "api" - ("rinkeby" "rinkeby_rpc") "rinkeby")) + ("rinkeby" "rinkeby_rpc") "api-rinkeby")) (defn get-transaction-details-url [network hash] (let [network-subdomain (get-network-subdomain network)] diff --git a/test/appium/tests/api_requests.py b/test/appium/tests/api_requests.py index 8f0baee5b3..ddc131545f 100644 --- a/test/appium/tests/api_requests.py +++ b/test/appium/tests/api_requests.py @@ -5,17 +5,17 @@ from tests import info def get_transactions(address: str) -> dict: - url = 'http://ropsten.etherscan.io/api?module=account&action=txlist&address=0x%s&sort=desc' % address + url = 'http://api-ropsten.etherscan.io/api?module=account&action=txlist&address=0x%s&sort=desc' % address return requests.request('GET', url=url).json()['result'] def is_transaction_successful(transaction_hash: str) -> int: - url = "https://ropsten.etherscan.io/api?module=transaction&action=getstatus&txhash=%s" % transaction_hash + url = "https://api-ropsten.etherscan.io/api?module=transaction&action=getstatus&txhash=%s" % transaction_hash return not int(requests.request('GET', url=url).json()['result']['isError']) def get_balance(address): - url = 'http://ropsten.etherscan.io/api?module=account&action=balance&address=0x%s&tag=latest' % address + url = 'http://api-ropsten.etherscan.io/api?module=account&action=balance&address=0x%s&tag=latest' % address for i in range(5): try: return int(requests.request('GET', url).json()["result"])