| | |
| | | return Web3j.build(httpService); |
| | | } |
| | | |
| | | private static String blockchainNode = "http://114.55.250.231:8545"; |
| | | //private static String blockchainNode = "http://114.55.250.231:8545"; |
| | | private static String blockchainNode = "http://120.55.86.146:8545"; |
| | | |
| | | private static String contractAddr = "0xdac17f958d2ee523a2206206994597c13d831ec7"; |
| | | |
| | |
| | | BigDecimal divide = new BigDecimal(tokenBalance.toString()).divide(DIVIDE_USDT); |
| | | // 发送消息队列 |
| | | EthUsdtChargeDto dto = new EthUsdtChargeDto(toAddress,transactionHash,divide); |
| | | dto.setSymbol(EthUsdtChargeDto.Symbol.USDT_ERC20); |
| | | usdtUpdateProducer.sendMsg(JSONObject.toJSONString(dto)); |
| | | } |
| | | if(map.get("blockNum").compareTo(blockNumber1)!=0){ |