@Test public void testGetBalanceOfAccount() throws Exception { setUpWireMockForBalanceOf(account1.getScriptHash(), "invokefunction_balanceOf_300000000.json"); assertThat(gasToken.getBalanceOf(account1.getScriptHash()), is(new BigInteger("300000000"))); }
public BigInteger getBalanceOf(ScriptHash scriptHash) throws IOException, UnexpectedReturnTypeException { ContractParameter ofParam = ContractParameter.hash160(scriptHash); return callFuncReturningInt(NEP5_BALANCE_OF, ofParam); }
Nep5Token extends SmartContract { public BigInteger getBalanceOf(ScriptHash scriptHash) throws IOException, UnexpectedReturnTypeException { ContractParameter ofParam = ContractParameter.hash160(scriptHash); return callFuncReturningInt(NEP5_BALANCE_OF, ofParam); } }
Nep5Token extends SmartContract { public BigInteger getBalanceOf(ScriptHash scriptHash) throws IOException, UnexpectedReturnTypeException { ContractParameter ofParam = ContractParameter.hash160(scriptHash); return callFuncReturningInt(NEP5_BALANCE_OF, ofParam); } Nep5Token(ScriptHash scriptHash, Neow3j neow); }
Nep5Token extends SmartContract { public BigInteger getBalanceOf(ScriptHash scriptHash) throws IOException, UnexpectedReturnTypeException { ContractParameter ofParam = ContractParameter.hash160(scriptHash); return callFuncReturningInt(NEP5_BALANCE_OF, ofParam); } Nep5Token(ScriptHash scriptHash, Neow3j neow); String getName(); String getSymbol(); BigInteger getTotalSupply(); int getDecimals(); BigInteger getBalanceOf(ScriptHash scriptHash); BigInteger getBalanceOf(Wallet wallet); TransactionBuilder transfer(Wallet wallet, ScriptHash to, BigDecimal amount); TransactionBuilder transferFromSpecificAccounts(Wallet wallet, ScriptHash to,
            BigDecimal amount, ScriptHash... from); TransactionBuilder transferFromDefaultAccount(Wallet wallet, ScriptHash to,
            BigDecimal amount); }
Nep5Token extends SmartContract { public BigInteger getBalanceOf(ScriptHash scriptHash) throws IOException, UnexpectedReturnTypeException { ContractParameter ofParam = ContractParameter.hash160(scriptHash); return callFuncReturningInt(NEP5_BALANCE_OF, ofParam); } Nep5Token(ScriptHash scriptHash, Neow3j neow); String getName(); String getSymbol(); BigInteger getTotalSupply(); int getDecimals(); BigInteger getBalanceOf(ScriptHash scriptHash); BigInteger getBalanceOf(Wallet wallet); TransactionBuilder transfer(Wallet wallet, ScriptHash to, BigDecimal amount); TransactionBuilder transferFromSpecificAccounts(Wallet wallet, ScriptHash to,
            BigDecimal amount, ScriptHash... from); TransactionBuilder transferFromDefaultAccount(Wallet wallet, ScriptHash to,
            BigDecimal amount);  }