nevermined_sdk_py.nevermined.accounts module¶
-
class
nevermined_sdk_py.nevermined.accounts.
Accounts
(keeper, config, ocean_tokens)¶ Bases:
object
Nevermined accounts class.
-
property
accounts_addresses
¶ Return a list with the account addresses.
- Returns
list
-
balance
(account)¶ Return the balance, a tuple with the eth and nevermined balance.
- Parameters
account – Account instance to return the balance of
- Returns
Balance tuple of (eth, ocn)
-
list
()¶ Return list of Account instances available in the current ethereum node
- Returns
list of Account instances
-
request_tokens
(account, amount)¶ Request an amount of ocean tokens for an account.
- Parameters
account – Account instance making the tokens request
amount – int amount of tokens requested
- Raises
OceanInvalidTransaction – if transaction fails
- Returns
bool
-
property