|
|
@ -5,7 +5,7 @@ config :explorer, |
|
|
|
transport: EthereumJSONRPC.HTTP, |
|
|
|
transport: EthereumJSONRPC.HTTP, |
|
|
|
transport_options: [ |
|
|
|
transport_options: [ |
|
|
|
http: EthereumJSONRPC.HTTP.HTTPoison, |
|
|
|
http: EthereumJSONRPC.HTTP.HTTPoison, |
|
|
|
url: System.get_env("ETHEREUM_JSONRPC_HTTP_URL") || "https://mainnet.infura.io/8lTvJTKmHPCHazkneJsY", |
|
|
|
url: System.get_env("ETHEREUM_JSONRPC_HTTP_URL"), |
|
|
|
http_options: [recv_timeout: :timer.minutes(1), timeout: :timer.minutes(1), hackney: [pool: :ethereum_jsonrpc]] |
|
|
|
http_options: [recv_timeout: :timer.minutes(1), timeout: :timer.minutes(1), hackney: [pool: :ethereum_jsonrpc]] |
|
|
|
], |
|
|
|
], |
|
|
|
variant: EthereumJSONRPC.Geth |
|
|
|
variant: EthereumJSONRPC.Geth |
|
|
@ -14,7 +14,7 @@ config :explorer, |
|
|
|
transport: EthereumJSONRPC.WebSocket, |
|
|
|
transport: EthereumJSONRPC.WebSocket, |
|
|
|
transport_options: [ |
|
|
|
transport_options: [ |
|
|
|
web_socket: EthereumJSONRPC.WebSocket.WebSocketClient, |
|
|
|
web_socket: EthereumJSONRPC.WebSocket.WebSocketClient, |
|
|
|
url: System.get_env("ETHEREUM_JSONRPC_WS_URL") || "wss://mainnet.infura.io/8lTvJTKmHPCHazkneJsY/ws" |
|
|
|
url: System.get_env("ETHEREUM_JSONRPC_WS_URL") |
|
|
|
], |
|
|
|
], |
|
|
|
variant: EthereumJSONRPC.Geth |
|
|
|
variant: EthereumJSONRPC.Geth |
|
|
|
] |
|
|
|
] |
|
|
|