Package io.keyko.nevermined.api
Interface AccountsAPI
-
- All Known Implementing Classes:
AccountsImpl
public interface AccountsAPI
Exposes the Public API related with the management of Accounts
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Balance
balance(Account account)
Returns the Balance of an accountList<Account>
list()
Returns a list of the accounts registered in Keeperorg.web3j.protocol.core.methods.response.TransactionReceipt
requestTokens(BigInteger amount)
Requests Ocean Tokens
-
-
-
Method Detail
-
list
List<Account> list() throws EthereumException
Returns a list of the accounts registered in Keeper- Returns:
- a List of all Account registered in Keeper
- Throws:
EthereumException
- EthereumException
-
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
-
-