| | |
| | | Contract.EventValuesWithLog eventValues = extractEventParametersWithLog(TRANSFER_EVENT, log); |
| | | TransferEventResponse typedResponse = new TransferEventResponse(); |
| | | typedResponse.log = log; |
| | | if(eventValues==null){ |
| | | // 为空则直接返回空对象 |
| | | return typedResponse; |
| | | } |
| | | typedResponse.from = (String) eventValues.getIndexedValues().get(0).getValue(); |
| | | typedResponse.to = (String) eventValues.getIndexedValues().get(1).getValue(); |
| | | typedResponse.value = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); |
| | |
| | | public static void main(String[] args) { |
| | | AndaoContractMain andaoContractMain = new AndaoContractMain(); |
| | | |
| | | String address = "0xAdC5331AC7F46c63e877aeC2DFbB5523C7680812"; |
| | | String address = "0x7a9bfE048d110EF90a467803653f9B8666f9096C"; |
| | | // String address = "0x785D5Aa2951Ac4C6f28Dc593AF0b0536Dd3E82Fe"; |
| | | BigInteger bigInteger = new BigInteger(Convert.toWei("1", Convert.Unit.ETHER).setScale(0).toString()); |
| | | String hash = andaoContractMain.trans(bigInteger,address); |