New answers tagged

0

Set gasPrice and gas for your transaction by hand. Do not trust gas price estimators wallets and nodes are using. Check ethgasstation.info/ for the current network status. Also, I am not expert on web3j but on web3.js you can tune various timeouts used by the library.


0

You need to connect to Geth socket and not HTTP. As you have not provided the socket URL while Web3J.Build, it will map to default values, as per your comment in the code. Here's the example: WebSocketService socketService=new WebSocketService("ws://127.0.0.1:8546", true); Web3J web3Socket=Web3J.build(socketService); 8546 is default socket port for Geth. ...


Top 50 recent answers are included