| | |
| | | public class TrxUsdtUpdateService { |
| | | |
| | | public static List<String> addressList = new ArrayList<>(); |
| | | private static String http = "https://api.shasta.trongrid.io"; |
| | | private static String http = "https://api.trongrid.io"; |
| | | |
| | | private static String TRC20_CONTRACT_ADDRESS = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | public Trc20Contract contractToken(String address, String privateKey) { |
| | | ApiWrapper wrapper = ApiWrapper.ofShasta(privateKey); |
| | | ApiWrapper wrapper = ApiWrapper.ofMainnet(privateKey, Trc20Service.API_KEY); |
| | | Contract trc20Contract = wrapper.getContract(COIN_CONTRACT_ADDRESS); |
| | | return new Trc20Contract(trc20Contract, address, wrapper); |
| | | } |