personal

Personal related features

class aioethereum.management.personal.PersonalMixin

Bases: object

coroutine personal_ecRecover(message, signature)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecrecover

Parameters:
  • message (str) – Message for sign
  • password (str) – Signature of account (optional)
Returns:

address

Return type:

str

coroutine personal_importRawKey(keydata, passphrase)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_importrawkey

Parameters:
  • keydata (str) – Unencrypted private key
  • passphrase (str) – Passphrase of private key
Returns:

address

Return type:

hex

coroutine personal_listAccounts()

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_listaccounts

Returns:addresses
Return type:list
coroutine personal_lockAccount(address)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_lockaccount

Parameters:address (str) – Account address
Return type:bool
coroutine personal_newAccount(passphrase=None)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_newaccount

Parameters:passphrase (str) – Passphrase of account (optional)
Returns:address
Return type:str
coroutine personal_sendTransaction(from_, to=None, gas=None, gas_price=None, value=None, data=None, nonce=None, passphrase=None)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sendtransaction

Parameters:
  • from (str) – From account address
  • to (str) – To account address (optional)
  • gas (int) – Gas amount for current transaction (optional)
  • gas_price (int) – Gas price for current transaction (optional)
  • value (int) – Amount of ether to send (optional)
  • data (hex) – Additional data for transaction (optional)
  • nonce (int) – Unique nonce for transaction (optional)
  • passphrase (str) – Passphrase of account (optional)
Returns:

txhash

Return type:

str

coroutine personal_sign(message, account, password=None)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign

Parameters:
  • message (str) – Message for sign
  • account (str) – Account address
  • password (str) – Password of account (optional)
Returns:

signature

Return type:

str

coroutine personal_unlockAccount(address, passphrase=None, duration=None)

https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_unlockaccount

Parameters:
  • address (str) – Account address
  • passphrase (str) – Passphrase of account (optional)
  • duration (int) – Duration to be unlocked (optional)
Return type:

bool