| | |
| | | private static final String SIGN_STR = "w@a!llokmet"; |
| | | |
| | | public static void main(String[] args) { |
| | | Map<String, Object> param = new HashMap<>(); |
| | | String orderNo = "123445"; |
| | | String userid = "11"; |
| | | String symbol = "USDT"; |
| | | String amount = "1"; |
| | | String toAddress = "Ox"; |
| | | param.put("orderno", orderNo); |
| | | param.put("userid", userid); |
| | | param.put("symbol", symbol); |
| | | param.put("toAddress", toAddress); |
| | | param.put("amount", new BigDecimal(amount)); |
| | | param.put("sign", SecureUtil.md5(orderNo + userid + symbol + amount + toAddress + SIGN_STR)); |
| | | HttpRequest request = HttpRequest.post(SRC_API + "transout/created"); |
| | | String body = request.body(JSONObject.toJSONString(param)).execute().body(); |
| | | System.out.println(body); |
| | | String applyOrderInfo = TRC20ApiUtils.getApplyOrderInfo("2020111140230002"); |
| | | System.out.println(applyOrderInfo); |
| | | } |
| | | |
| | | private static void sign() { |
| | |
| | | |
| | | @Test |
| | | public void addressInsertTest() throws IOException { |
| | | File file = new File("/Users/helius/Desktop/src20.xls"); |
| | | // String src = "/Users/helius/Desktop/src20.xls"; |
| | | String src = "C:/Users/wzy19/Desktop/ace2.xls"; |
| | | File file = new File(src); |
| | | FileInputStream input = new FileInputStream(file); |
| | | |
| | | Workbook wb = null; |
| | |
| | | |
| | | Sheet sheet = wb.getSheetAt(0); |
| | | int lastRowNum = sheet.getLastRowNum(); |
| | | for (int i = 0; i < lastRowNum; i++) { |
| | | for (int i = 0; i <= lastRowNum; i++) { |
| | | Row row = sheet.getRow(i); |
| | | Cell cell = row.getCell(0); |
| | | TrcAddressEntity addressEntity = new TrcAddressEntity(); |