I'm having issues getting any transactions to confirm on Rinkeby with geth and web3j. Question what is the best way to programmatically determine the best gas and gassLimit prices ?
Should I use the value of GassPrice returned from geth ? MyEther wallet is setting GasPrice to:41000000000 Geth api call is returning 1000000000
echo '{"jsonrpc":"2.0","method":"personal_sendTransaction","params":[{"from":"0xf1b0725bd64cbe62a5160357d53e92c54788f2e5","to":"0xB1C26AB1c159F60AFa21A7c24D313fA4aA05812F","gas":"0x6208","gasPrice":"0x3b9aca00","value":"0x470de4df820000","nonce":"0x5"},"PRIVATE_KEY"],"id":15}' | nc -U ~/Library/Ethereum/rinkeby/geth.ipc {"jsonrpc":"2.0","id":15,"result":"0x00e44a5a6f6994c9e0494be9541faea873b9234117de26c76d0dcddc3f33cb3b"}
This transaction was accepted however is not mined. The Api has gas and gasPrice, but no GassLimit value, What would be the best way to set these values to ensure this transaction is mined with out paying over the top fees ??