Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WalletOperation

description

WalletOperation allows to monitor operation inclusion on chains and surface information related to the operation

Hierarchy

Index

Constructors

constructor

Properties

Protected _included

_included: boolean = false

Protected _includedInBlock

_includedInBlock: ReplaySubject<BlockResponse> = ...

Protected _operationResult

_operationResult: ReplaySubject<OperationContentsAndResult[]> = ...

Protected Readonly context

context: Context

Protected newHead$

newHead$: Observable<BlockResponse> = ...

Readonly opHash

opHash: string

Methods

confirmation

  • confirmation(confirmations?: number): Promise<{ block: BlockResponse; completed: boolean; currentConfirmation: number; expectedConfirmation: number; isInCurrentBranch: () => Promise<boolean> }>
  • Parameters

    • Optional confirmations: number

      Number of confirmation to wait for

    Returns Promise<{ block: BlockResponse; completed: boolean; currentConfirmation: number; expectedConfirmation: number; isInCurrentBranch: () => Promise<boolean> }>

confirmationObservable

  • confirmationObservable(confirmations?: number): Observable<{ block: BlockResponse; completed: boolean; currentConfirmation: number; expectedConfirmation: number; isInCurrentBranch: () => Promise<boolean> }>
  • Parameters

    • Optional confirmations: number

    Returns Observable<{ block: BlockResponse; completed: boolean; currentConfirmation: number; expectedConfirmation: number; isInCurrentBranch: () => Promise<boolean> }>

getCurrentConfirmation

  • getCurrentConfirmation(): Promise<number>

isInCurrentBranch

  • isInCurrentBranch(tipBlockIdentifier?: string): Promise<boolean>

operationResults

receipt

  • receipt(): Promise<Receipt>
  • description

    Receipt expose the total amount of tezos token burn and spent on fees The promise returned by receipt will resolve only once the transaction is included

    Returns Promise<Receipt>

Generated using TypeDoc