| | |
| | | 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(); |
| | | } |
| | |
| | | /** |
| | | * 手续费 |
| | | */ |
| | | private final static BigDecimal TRX_FEE = new BigDecimal("10"); |
| | | private final static BigDecimal TRX_FEE = new BigDecimal("15"); |
| | | |
| | | @Resource |
| | | private UsdtUpdateProducer usdtUpdateProducer; |