List all keys & values

Retrieves the value for the queried keys or all keys for an address.

Returns

A dictionary of keys and their value object.

Usage

def fetch_aggregates(
    address,
    keys,
    session,
    api_server,
)

Required Arguments

Optional Arguments

  • 2. keys - Iterable of strings Default: None Keys to retrieve for the address. If none are passed, all keys and values are returned.

  • 3. session Default: None this is the explanation

  • 4. api_server - string Default: "https://api2.aleph.im" Target API server

Example

>>> from aleph_client.synchronous import fetch_aggregates
>>> fetch_aggregates(account.get_address(), 'testkey')
{'a': 1, 'b': 2}

Last updated