hello i use the env is android go ethereum light client not web3j not web3j i init geth code
FilterQuery selfFQ = Geth.newFilterQuery(); selfFQ.setTopics(Geth.newTopicsEmpty()); selfFQ.setAddresses(Geth.newAddressesEmpty()); Topics tps = selfFQ.getTopics(); String strFunction = "ReturnValue(address,int256)"; String HashStr = Sha3.hash(strFunction); List<String> topics = new ArrayList<>(); topics.add("0x" + HashStr); tps.append(fromListToHashes(topics)); selfFQ.setTopics(tps); node.getEthereumClient().subscribeFilterLogs(Geth.newContext(),selfFQ,new MyFilterLogsHandler(),16L);
then i receiver the log in bellow
public void onFilterLogs(org.ethereum.geth.Log var1){
try{
byte[] topics = var1.getTopics().get(0).getBytes();
byte[] args = var1.getTopics().get(1).getBytes();
}catch (Exception e){
Log.d("111","onFilterLogs getTopics " + var1.toString());
}
}
then i don't know how to parse the event and param ...... anybody can told me thanks