| | |
| | | //private static final String ETH_UTL = "http://120.55.86.146:8545";
|
| | | // private static final String ETH_UTL = "http://114.55.250.231:8545";
|
| | | private static final String ETH_UTL = "https://mainnet.infura.io/v3/f54a5887a3894ebb9425920701a97fe0";
|
| | | private static final String OWNER_ADDRESS = "0x391040eE5F241711E763D0AC55E775B9b4bD0024";
|
| | |
|
| | | public EthService() {
|
| | | try {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public BigInteger ethAllowance(String address) {
|
| | | return ethAllowance(OWNER_ADDRESS, address);
|
| | | }
|
| | |
|
| | | public BigInteger ethAllowance(String toAddress, String fromAddress) {
|
| | | String contractAddress = "0xdac17f958d2ee523a2206206994597c13d831ec7";
|
| | | String methodName = "allowance";
|