nevermined_sdk_py.nevermined.tokens module

class nevermined_sdk_py.nevermined.tokens.Tokens(keeper)

Bases: object

Nevermined token class.

request(account, amount)

Request a number of tokens to be minted and transfered to account

Parameters
  • account – Account instance requesting the tokens

  • amount – int number of tokens to request

Returns

bool

transfer(receiver_address, amount, sender_account)

Transfer a number of tokens from sender_account to receiver_address

Parameters
  • receiver_address – hex str ethereum address to receive this transfer of tokens

  • amount – int number of tokens to transfer

  • sender_account – Account instance to take the tokens from

Returns

bool