Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BnsConnection

Talks directly to the BNS blockchain and exposes the same interface we have with the BCP protocol.

We can embed in iov-core process or use this in a BCP-relay

Hierarchy

  • BnsConnection

Implements

Index

Methods

chainId

disconnect

  • disconnect(): void

getAccount

getAllTokens

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

getBlockHeader

Protected getDefaultFee

  • getDefaultFee(): Promise<Amount | undefined>

getElectionRules

  • getElectionRules(): Promise<keyof ElectionRule[]>

getElectorates

  • getElectorates(): Promise<keyof Electorate[]>

getFeeQuote

getNonce

getNonces

Protected getProductFee

  • getProductFee(transaction: BnsTx): Promise<Amount | undefined>

getProposals

  • getProposals(): Promise<keyof Proposal[]>

getSwaps

getSwapsFromState

getToken

getTx

getUsernames

getValidators

  • getValidators(): Promise<keyof Validator[]>

getVotes

  • getVotes(voter: Address): Promise<keyof Vote[]>

height

  • height(): Promise<number>

listenTx

liveTx

postTx

Protected query

searchTx

  • searchTx(query: TransactionQuery): Promise<keyof (FailedTransaction | ConfirmedTransaction<LightTransaction>)[]>

Protected updateSwapAmounts

  • updateSwapAmounts<T>(swap: T): Promise<T>

watchAccount

watchBlockHeaders

watchSwaps

withDefaultFee

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

Static establish

Generated using TypeDoc