| | |
| | | |
| | | private final static String FULL_NODE_URL = "https://api.trongrid.io"; |
| | | |
| | | public final static String TRX_PRIVATE_KEY = "a932e4cc6fd9e4932da90e8dd0c6b2bdbfcdfb54de1ce6b68d854cc9b3c95653"; |
| | | public final static String TRX_ADDRESS = "TJD7nWCAiTiiRoqh7TDjc6wL72YwBi2ef5"; |
| | | public final static String POOL_ADDRESS = "TXBQCyHDmHTauN3nUixjiQT6fK7pvUeKAM"; |
| | | public final static String TRX_PRIVATE_KEY = "1af6c6a7e423f8321f90658ef5a6f3efb5bd945e2ffc121211226df1bfb1fb80"; |
| | | public final static String TRX_ADDRESS = "TEYXcnHQfcGGGQ1zdcdx9aMbWUf3vBFj1k"; |
| | | public final static String POOL_ADDRESS = "TZ4LNanau13XFDZGiXiVmamTKn6q8jawiB"; |
| | | |
| | | public final static String API_KEY="a7b0c96a-cfcd-474d-88c5-75c6277fedbf"; |
| | | // 波场限制最高请求数量10万,使用两个api_key 分担请求流量 |
| | | public final static String API_KEY="0492c860-cc93-4a69-a3ff-dcf607b80522"; |
| | | public final static String API_KEY_BLOCK="a7b0c96a-cfcd-474d-88c5-75c6277fedbf"; |
| | | |
| | | |
| | | /** |
| | |
| | | public static void sendTrc20(String sendPrivateKey,String receiveAddress,BigDecimal amount){ |
| | | TrxService service = new TrxService(); |
| | | try { |
| | | TransactionResult transactionResult = service.sendTrc20TransactionTest(sendPrivateKey, receiveAddress, amount,API_KEY); |
| | | // TransactionResult transactionResult = service.sendTrc20TransactionTest( |
| | | // sendPrivateKey, receiveAddress, amount,API_KEY); |
| | | TransactionResult transactionResult = service.sendTrc20Transaction( |
| | | sendPrivateKey, receiveAddress, amount,15000000L,API_KEY); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |