Interface AccountsAPI

  • All Known Implementing Classes:
    AccountsImpl

    public interface AccountsAPI
    Exposes the Public API related with the management of Accounts
    • Method Detail

      • balance

        Balance balance​(Account account)
                 throws EthereumException
        Returns the Balance of an account
        Parameters:
        account - the account we want to get the balance
        Returns:
        the Balance of the account
        Throws:
        EthereumException - EthereumException
      • requestTokens

        org.web3j.protocol.core.methods.response.TransactionReceipt requestTokens​(BigInteger amount)
                                                                           throws EthereumException
        Requests Ocean Tokens
        Parameters:
        amount - the amount of tokens
        Returns:
        a TransactionReceipt from the transaction sent to the smart contract
        Throws:
        EthereumException - EthereumException