@aleph-sdk/monorepo
    Preparing search index...

    Class AuthenticatedAlephHttpClient

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    account: Account
    addressClient: AddressClient
    aggregateClient: AggregateMessageClient
    balanceClient: BalanceClient
    forgetClient: ForgetMessageClient
    instanceClient: InstanceMessageClient
    messageClient: BaseMessageClient
    nodeClient: NodeClient
    postClient: PostMessageClient
    priceClient: PriceClient
    programClient: ProgramMessageClient
    storeClient: StoreMessageClient

    Methods

    • Downloads a file from the Aleph network.

      Parameters

      • file_hash: string

        The hash of the STORE message of the file to retrieve.

      Returns Promise<ArrayBuffer>

    • Fetches an aggregate value from the Aleph network. Aggregates are a key-value store on the Aleph network. Aggregates are bound by address and each address can have multiple keys. By default, only the address that signs the aggregate can modify it.

      Type Parameters

      • T

      Parameters

      • address: string

        The address of the aggregate's owner

      • key: string

        The key of the aggregate to fetch

      Returns Promise<T>

    • Fetches multiple aggregates from the Aleph network. Aggregates are a key-value store on the Aleph network. Aggregates are bound by address and each address can have multiple keys. By default, only the address that signs the aggregate can modify it.

      Parameters

      • address: string

        The address of the aggregate's owner

      • Optionalkeys: string[]

        The keys of the aggregates to fetch

      Returns Promise<Record<string, any>>