|
|
|
@ -5,11 +5,11 @@ config :explorer, |
|
|
|
|
transport: EthereumJSONRPC.HTTP, |
|
|
|
|
transport_options: [ |
|
|
|
|
http: EthereumJSONRPC.HTTP.HTTPoison, |
|
|
|
|
url: System.get_env("ETHEREUM_JSONRPC_HTTP_URL") || "https://sokol.poa.network", |
|
|
|
|
url: System.get_env("ETHEREUM_JSONRPC_HTTP_URL") || "http://54.234.12.105:8545", |
|
|
|
|
method_to_url: [ |
|
|
|
|
eth_call: System.get_env("ETHEREUM_JSONRPC_TRACE_URL") || "https://sokol-trace.poa.network", |
|
|
|
|
eth_getBalance: System.get_env("ETHEREUM_JSONRPC_TRACE_URL") || "https://sokol-trace.poa.network", |
|
|
|
|
trace_replayTransaction: System.get_env("ETHEREUM_JSONRPC_TRACE_URL") || "https://sokol-trace.poa.network" |
|
|
|
|
eth_call: System.get_env("ETHEREUM_JSONRPC_TRACE_URL") || "http://54.234.12.105:8545", |
|
|
|
|
eth_getBalance: System.get_env("ETHEREUM_JSONRPC_TRACE_URL") || "http://54.234.12.105:8545", |
|
|
|
|
trace_replayTransaction: System.get_env("ETHEREUM_JSONRPC_TRACE_URL") || "http://54.234.12.105:8545" |
|
|
|
|
], |
|
|
|
|
http_options: [recv_timeout: 60_000, timeout: 60_000, hackney: [pool: :ethereum_jsonrpc]] |
|
|
|
|
], |
|
|
|
@ -19,7 +19,7 @@ config :explorer, |
|
|
|
|
transport: EthereumJSONRPC.WebSocket, |
|
|
|
|
transport_options: [ |
|
|
|
|
web_socket: EthereumJSONRPC.WebSocket.WebSocketClient, |
|
|
|
|
url: System.get_env("ETHEREUM_JSONRPC_WS_URL") || "wss://sokol-ws.poa.network/ws" |
|
|
|
|
url: System.get_env("ETHEREUM_JSONRPC_WS_URL") || "ws://54.234.12.105:8546" |
|
|
|
|
], |
|
|
|
|
variant: EthereumJSONRPC.Parity |
|
|
|
|
] |
|
|
|
|