| | |
| | | return Web3j.build(httpService); |
| | | } |
| | | |
| | | private static String blockchainNode = "http://114.55.250.231:8545"; |
| | | private static String blockchainNode = "http://120.55.86.146:8545"; |
| | | // private static String blockchainNode = "http://114.55.250.231:8545"; |
| | | |
| | | private static String contractAddr = "0xdac17f958d2ee523a2206206994597c13d831ec7"; |
| | | |
| | |
| | | // 获取最新区块 |
| | | String string = redisUtils.getString(USDT_BLOCK_NUM_GOLDEN); |
| | | if(string==null){ |
| | | string = "11151609"; |
| | | string = "11236151"; |
| | | } |
| | | BigInteger blockNum = new BigInteger(string); |
| | | Credentials credentials = Credentials.create(privateKey); |