autonomy.chain.subgraph.client
Subgraph client.
Unit Objects
class Unit(TypedDict)
Unit container.
UnitContainer Objects
class UnitContainer(TypedDict)
Unit container
SubgraphClient Objects
class SubgraphClient()
Subgraph helper class.
__init__
def __init__(url: Optional[str] = None) -> None
Initialize object
get_component_by_token
def get_component_by_token(token_id: int,
package_type: PackageType) -> UnitContainer
Get component by package hash
get_record_by_package_hash
def get_record_by_package_hash(package_hash: str) -> UnitContainer
Get component by package hash
get_record_by_package_id
def get_record_by_package_id(package_id: PackageId) -> UnitContainer
Get component by package hash