ain.db package

Submodules

Module contents

class ain.db.Database(ain: Ain, provider: Provider)

Bases: object

Class for the AIN Database instance.

ref(path: str = None) Reference

Creates a Reference to the given path at the AIN Blockchain Database(global state tree).

Parameters:

path (str, Optional) – The path that you want to create a Reference. If path is None, references the root of the tree. Defaults to None.

Returns:

The Reference at the path.

Return type:

Reference