@arkade-os/sdk Documentation - v0.4.21
    Preparing search index...

    Class RestIndexerProvider

    REST-based indexer provider implementation.

    const provider = new RestIndexerProvider('https://arkade.computer');
    const commitmentTx = await provider.getCommitmentTx("6686af8f3be3517880821f62e6c3d749b9d6713736a1d8e229a55daa659446b2");

    Implements

    Index

    Constructors

    Properties

    serverUrl: string

    Methods

    • Open a streamed subscription for a previously created subscription id.

      Parameters

      • subscriptionId: string

        Subscription identifier returned by subscribeForScripts

      • abortSignal: AbortSignal

        Signal used to terminate the stream

      Returns AsyncIterableIterator<SubscriptionResponse>

      Async iterator of subscription responses

    • Create or extend a subscription for a set of scripts.

      Parameters

      • scripts: string[]

        Scripts to monitor

      • OptionalsubscriptionId: string

        Existing subscription id to extend

      Returns Promise<string>

      Subscription id

    • Remove some or all scripts from an existing subscription.

      Parameters

      • subscriptionId: string

        Subscription identifier to update

      • Optionalscripts: string[]

        Scripts to remove, or omit to remove all

      Returns Promise<void>