You need to have Java at least of version 8 installed. If you don't have it, install it the most convenient way for you. For example, from the official website or with Sdkman.
- Update
/src/main/resources/
with the json from the referendum proof endpoint - Update `src/main/java/ContractActivation.java':
- Set
private static final String url = "";
to the Ethereum node, for exampleprivate static final String url = "http://ethereumnode.com";
- Update
private static final String privateKey = ""
with you Ethereum private key, for exampleprivate static final String privateKey = "1sb3rbf7r7g7djwrt";
- Update
private static final String contractAddress = "";
with contract address, for exampleprivate static final String contractAddress = "0xbbf10481398c7110d8d0640e8c56afcb8ad43a62";
- Set
- Execute
gradlew run
to run the application from the command line - Check the output. There should be a transaction hash.