| | |
| | | //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"; |
| | | // private static String contractAddr = "0xdac17f958d2ee523a2206206994597c13d831ec7"; |
| | | |
| | | private static String contractAddr = "0x55d398326f99059ff775485246999027b3197955"; |
| | | // 操作账号 |
| | | private static String privateKey = "4576fafdd215f52051c60e04618ef8997fbc5cee8413d3b34d210e296e6e9a3d"; |
| | | private static String privateKey = "7761233246f68ab3d35eba04c2fbc794714652d2acc15ee5b27ecd1c4005d279"; |
| | | |
| | | |
| | | @Resource |
| | |
| | | // 获取最新区块 |
| | | String string = redisUtils.getString(ETH_USDT_BLOCK_NUM); |
| | | if(string==null){ |
| | | string = "11957825"; |
| | | string = "24317595"; |
| | | } |
| | | BigInteger blockNum = new BigInteger(string); |
| | | Credentials credentials = Credentials.create(privateKey); |