| | |
| | | |
| | | @Override |
| | | public BigInteger allowance(String address) { |
| | | String contractAddress = "0xdac17f958d2ee523a2206206994597c13d831ec7"; |
| | | String methodName = "allowance"; |
| | | List<TypeReference<?>> outputParameters = new ArrayList<>(); |
| | | TypeReference<Uint256> typeReference = new TypeReference<Uint256>() { |
| | |
| | | String resp = HttpUtil.post(allowanceUrl, data); |
| | | |
| | | JSONObject jsonObject = JSONObject.parseObject(resp); |
| | | return jsonObject.getInteger("recordsTotal"); |
| | | JSONObject result = JSONObject.parseObject(jsonObject.getString("d")); |
| | | return result.getIntValue("recordsTotal"); |
| | | } |
| | | } |