Taquito TypeDocs
    Preparing search index...

    Class Context

    Encapsulate common service used throughout different part of the library

    Index
    _config: BehaviorSubject<
        {
            confirmationPollingTimeoutSecond: number;
            defaultConfirmationCount: number;
        },
    > = ...
    batch: RPCBatchProvider = ...
    contract: RpcContractProvider = ...
    estimate: RPCEstimateProvider = ...
    operationFactory: OperationFactory
    prepare: PrepareProvider = ...
    tz: RpcTzProvider = ...
    wallet: Wallet = ...
    • get walletProvider(): WalletProvider
    • set walletProvider(value: WalletProvider): void

      Discard cached identity state whenever a caller replaces the active wallet provider. Ensure subsequent operations resolve the new provider rather than a stale authority. Force fresh public key hash and public key reads across context-bound consumers. Update the active provider reference before clearing the context wallet identity cache. Never reuse an earlier provider's cached account claims after reassignment. Detach the default-provider marker when an explicit provider instance is installed.

      Parameters

      Returns void

    • Internal

      Records an SDK-created default without classifying custom instances.

      Parameters

      • value: Forger

      Returns void

    • Applies the decorators on a cloned instance of the context and returned this cloned instance. The decorators are functions that inject logic into the context. They are provided by the extensions set on the TezosToolkit by calling the registerProviderDecorator method.

      Returns Context