@Test public void testGetBalanceOfWallet() throws Exception { setUpWireMockForCall("invokefunction", "invokefunction_balanceOf_300000000.json", "balanceOf", account1.getScriptHash().toString()); setUpWireMockForCall("invokefunction", "invokefunction_balanceOf_300000000.json", "balanceOf", account2.getScriptHash().toString()); assertThat(gasToken.getBalanceOf(Wallet.withAccounts(account1, account2)), is(new BigInteger("600000000"))); }
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);  }