Categories
Cryptocurrency Ethereum Mastering Development

How to solve the problem: java.lang.RuntimeException: Error processing transaction request: VM Exception while processing transaction: stack underflow

I generated JAVA wrapper solidity code. I am trying to deploy my contract on our local Ethereum blockchain and and get the following error: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access […]

Categories
Cryptocurrency Ethereum Mastering Development

How can I calculate gas price and gas limit programmatically using web3j

I am using following code to deploy my smart contract but now my transaction is taking too much time to mine on my private blockchain. String contractAddress = myContract.deploy(web3j, credentials, DefaultGasProvider.GAS_PRICE, DefaultGasProvider.GAS_LIMIT, BigInteger.valueOf(campaign.getId()), campaign.getName(), startDateTime, endDateTime).send().getContractAddress(); So far I was using DefaultGasProvider to calculate gas price and gas limit but it seems like now these […]

Categories
Cryptocurrency Ethereum Mastering Development

transaction receipt was not generated after 600 seconds for transaction

I am running private ethereum blockchain using geth and I am using web3j to send transactions. Since yesterday I am not able to deploy my contract, In my java console I am getting "transaction receipt was not generated after 600 seconds for transaction" while I can see using block explorer that the contract is created […]