Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected api

Methods

findAllOperations

  • Returns the most recent balance operations on the named account. This returns a list of operation history objects, which describe activity on the account.

    Parameters

    • accountId: ChainObject

      object id of the account whose history should be queried, 1.2.*

    • Default value assets: ChainObject[] = []

      list of asset object ids to filter or empty for all assets

    • Optional recipientAccount: ChainObject

      partner account object id to filter transfers to specific account, 1.2.* or null

    • Default value fromBlock: number = 0

      filtering parameter, starting block number (can be determined from time) or zero when not used

    • Default value toBlock: number = 0

      filtering parameter, ending block number or zero when not used

    • Default value startOffset: number = 0

      starting offset from zero

    • Default value limit: number = 100

      the number of entries to return (starting from the most recent), max 100

    Returns Observable<BalanceChange[]>

    a list of balance changes

findAllTransfers

  • Returns the most recent transfer operations on the named account. This returns a list of history composite objects, containing resolved accounts, assets and block. Pages through whole history and calls multiple apis to fetch all related data, experimental use only.

    Parameters

    • accountId: ChainObject

      object id of the account whose history should be queried, 1.2.*

    • Default value assets: ChainObject[] = []

      list of asset object ids to filter or empty for all assets

    • Optional recipientAccount: ChainObject

      partner account object id to filter transfers to specific account, 1.2.* or null

    • Default value offset: number = Number.MAX_SAFE_INTEGER

      block number to search from

    • Default value limit: number = 100

      the number of entries to return (starting from the most recent), max 100

    Returns Observable<TransferComposite[]>

    a list of balance changes

getOperation

  • Returns balance operation on the account and operation id.

    Parameters

    • accountId: ChainObject

      object id of the account whose history should be queried, 1.2.*

    • operationId: ChainObject

      object id of the history object, 1.7.*

    Returns Observable<BalanceChange>

    an balance operation change

isConfirmed

  • isConfirmed(operationId: ChainObject): Observable<boolean>
  • Check if the operation is confirmed and cannot be reverted.

    Parameters

    • operationId: ChainObject

      object id of the history object, 1.7.*

    Returns Observable<boolean>

listOperations

  • Get account history of operations.

    Parameters

    • accountId: ChainObject

      object id of the account whose history should be queried, 1.2.*

    • Default value startId: ChainObject = ObjectType.OperationHistory.genericId()

      id of the history object to start from, use {@link ObjectType.OperationHistory.genericId} to ignore

    • Default value stopId: ChainObject = ObjectType.OperationHistory.genericId()

      id of the history object to stop at, use {@link ObjectType.OperationHistory.genericId} to ignore

    • Default value limit: number = 100

      number of entries, max 100

    Returns Observable<OperationHistory[]>

    a list of operations performed by account, ordered from most recent to oldest

listOperationsRelative

  • Get account history of operations.

    Parameters

    • accountId: ChainObject

      object id of the account whose history should be queried, 1.2.*

    • Default value start: number = 0

      sequence number of the most recent operation to retrieve. 0 is default, which will start querying from the most recent operation

    • Default value limit: number = 100

      maximum number of operations to retrieve (must not exceed 100)

    Returns Observable<OperationHistory[]>

    a list of operations performed by account, ordered from most recent to oldest

Protected request

Generated using TypeDoc