| | |
| | | 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() { |