graphenecommon.aio.genesisbalance module¶
-
class
graphenecommon.aio.genesisbalance.
GenesisBalance
(*args, **kwargs)¶ Bases:
graphenecommon.aio.blockchainobject.BlockchainObject
,graphenecommon.genesisbalance.GenesisBalance
Deals with Assets of the network.
Parameters: - Asset (str) – Symbol name or object id of an asset
- lazy (bool) – Lazy loading
- full (bool) – Also obtain bitasset-data and dynamic asset data
- blockchain_instance (instance) – instance to use when accesing a RPC
Returns: All data of an asset
Return type: dict
Note
This class comes with its own caching function to reduce the load on the API server. Instances of this class can be refreshed with
Asset.refresh()
.-
claim
(account=None, **kwargs)¶ Claim a balance from the genesis block
Parameters: - balance_id (str) – The identifier that identifies the balance to claim (1.15.x)
- account (str) – (optional) the account that owns the bet
(defaults to
default_account
)
-
refresh
()¶
-
class
graphenecommon.aio.genesisbalance.
GenesisBalances
(**kwargs)¶ Bases:
graphenecommon.genesisbalance.GenesisBalances
List genesis balances that can be claimed from the keys in the wallet