forhas
  • Member for 3 years, 9 months
  • Last seen this week
Access Ethereum smart contract in Java application
2 votes

You could use web3j. Assuming you deployed you contract to ganache using truffle, in your java code you can use TruffleJsonFunctionWrapperGenerator to generate a wrapper for your contract. Add maven ...

View answer
Subscribing to event using web3j (2018)
Accepted answer
1 votes

This one solved it: https://ethereum.stackexchange.com/a/41606/37689 EthFilter filter = new EthFilter(DefaultBlockParameterName.EARLIEST, DefaultBlockParameterName.LATEST, greetingsContract....

View answer
Invalid Chai property when testing smart contract
0 votes

Solved by adding chai.use(smock.matchers) So basically you should: Follow the official documentation of smock (an awesome library!) If your tests are failing with Invalid Chai property when calling ...

View answer
Solidity: Can you return dynamic arrays in a function?
0 votes

Is it possible to return a dynamic array of strings ( string[] ) from a Solidity function? Yes, you can serialize it to bytes and deserialize it back to string[]. In your smart contract: function ...

View answer
Compile multiple contracts
Accepted answer
0 votes

It seems that the name of the contract is given by the contract owner during etherscan verification.

View answer
Compiling Smart Contract in Java
0 votes

I got it by running solc executable from my java code (I'm running windows os). I downloaded solc.exe from https://github.com/ethereum/solidity/releases, put it in my classpath and used the following ...

View answer