|
|
|
@ -5,11 +5,11 @@ config :explorer, |
|
|
|
|
transport: EthereumJSONRPC.HTTP, |
|
|
|
|
transport_options: [ |
|
|
|
|
http: EthereumJSONRPC.HTTP.HTTPoison, |
|
|
|
|
url: "https://sokol.poa.network", |
|
|
|
|
url: System.get_env("ETHEREUM_URL") || "https://sokol.poa.network", |
|
|
|
|
method_to_url: [ |
|
|
|
|
eth_call: "https://sokol-trace.poa.network", |
|
|
|
|
eth_getBalance: "https://sokol-trace.poa.network", |
|
|
|
|
trace_replayTransaction: "https://sokol-trace.poa.network" |
|
|
|
|
eth_call: System.get_env("TRACE_URL") || "https://sokol-trace.poa.network", |
|
|
|
|
eth_getBalance: System.get_env("TRACE_URL") || "https://sokol-trace.poa.network", |
|
|
|
|
trace_replayTransaction: System.get_env("TRACE_URL") || "https://sokol-trace.poa.network" |
|
|
|
|
], |
|
|
|
|
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: "wss://sokol-ws.poa.network/ws" |
|
|
|
|
url: System.get_env("WS_URL") || "wss://sokol-ws.poa.network/ws" |
|
|
|
|
], |
|
|
|
|
variant: EthereumJSONRPC.Parity |
|
|
|
|
] |
|
|
|
|