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
      • requestEthFromFaucet

        FaucetResponse requestEthFromFaucet​(String address)
                                     throws ServiceException
        Requests Ether to faucet for paying transactions gas
        Parameters:
        address - the account address requesting ETH
        Returns:
        FaucetResponse response status and message
        Throws:
        ServiceException - ServiceException
      • requestTokens

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