Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransactionManager

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly cache

cache: Map<string, Transaction> = ...

The cache of the manager.

Readonly client

client: Client

Protected Optional Readonly extras

extras: []

Protected Readonly hold

hold: typeof Transaction

Readonly stellar

stellar: StellarClient

Methods

add

  • add(data: TransactionRecord, cache?: boolean): Transaction

fetch

  • fetch(id: string, cache?: boolean, checkCache?: boolean): Promise<Transaction>
  • Fetch the transaction by its id in the cache or from the Pi Network Stellar API.

    Parameters

    • id: string

      The transaction id to fetch.

    • Optional cache: boolean

      If the transaction should be cached (or cached transaction patched), true by default.

    • checkCache: boolean = true

      If the transaction should be fetched in the cache, true by default.

    Returns Promise<Transaction>

    The fetched transaction.

resolve

Generated using TypeDoc