eosf

Python front-end for EOSIO cleos.

class eosf.Verbosity

Bases: enum.Enum

An enumeration.

class eosf.Wallet(name='default', password='', is_verbose=1, verbosity=None)

Bases: cleos.WalletCreate, eosf._Eosf

Create a new wallet locally and operate it. Usage: WalletCreate(name=”default”, is_verbose=1)

  • parameters:

    name: The name of the new wallet, defaults to `default`.
    is_verbose: If `0`, do not print unless on error, 
        default is `1`.
    
  • attributes:

    name: The name of the wallet.
    password: The password returned by wallet create.
    error: Whether any error ocurred.
    json: The json representation of the object.
    is_verbose: Verbosity at the constraction time.  
    
import_key(account_or_key)

Imports private keys of an account into wallet. Returns list of cleos.WalletImport objects

index()

Lists opened wallets, * marks unlocked. Returns cleos.WalletList object

keys()

Lists public keys from all unlocked wallets. Returns cleos.WalletKeys object.

lock()

Locks the wallet. Returns cleos.WalletLock object.

open()

Opens the wallet. Returns WalletOpen object

unlock()

Unlocks the wallet. Returns WalletUnlock object.