Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LiskConnection

Hierarchy

  • LiskConnection

Implements

  • BlockchainConnection

Index

Constructors

constructor

  • new LiskConnection(baseUrl: string, chainId: ChainId): LiskConnection

Methods

chainId

  • chainId(): ChainId

disconnect

  • disconnect(): void

getAccount

  • getAccount(query: AccountQuery): Promise<Account | undefined>

getAllTokens

  • getAllTokens(): Promise<keyof Token[]>

getBlockHeader

  • getBlockHeader(height: number): Promise<BlockHeader>

getFeeQuote

  • getFeeQuote(tx: UnsignedTransaction): Promise<Fee>

getNonce

  • getNonce(_: AddressQuery | PubkeyQuery): Promise<Nonce>

getNonces

  • getNonces(_: AddressQuery | PubkeyQuery, count: number): Promise<keyof Nonce[]>
  • Parameters

    • _: AddressQuery | PubkeyQuery
    • count: number

    Returns Promise<keyof Nonce[]>

getToken

  • getToken(searchTicker: TokenTicker): Promise<Token | undefined>
  • Parameters

    • searchTicker: TokenTicker

    Returns Promise<Token | undefined>

getTx

  • getTx(id: TransactionId): Promise<ConfirmedAndSignedTransaction<UnsignedTransaction>>
  • Parameters

    • id: TransactionId

    Returns Promise<ConfirmedAndSignedTransaction<UnsignedTransaction>>

height

  • height(): Promise<number>

listenTx

  • listenTx(_: TransactionQuery): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>
  • Parameters

    • _: TransactionQuery

    Returns Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>

liveTx

  • liveTx(query: TransactionQuery): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>
  • Parameters

    • query: TransactionQuery

    Returns Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>

postTx

  • postTx(bytes: PostableBytes): Promise<PostTxResponse>

searchTx

  • searchTx(query: TransactionQuery): Promise<keyof ConfirmedTransaction<UnsignedTransaction>[]>
  • Parameters

    • query: TransactionQuery

    Returns Promise<keyof ConfirmedTransaction<UnsignedTransaction>[]>

watchAccount

  • watchAccount(query: AccountQuery): Stream<Account | undefined>

watchBlockHeaders

  • watchBlockHeaders(): Stream<BlockHeader>

withDefaultFee

  • withDefaultFee<T>(transaction: T): Promise<T>
  • Type parameters

    • T: UnsignedTransaction

    Parameters

    • transaction: T

    Returns Promise<T>

Static establish

Generated using TypeDoc