Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EthereumConnection

Hierarchy

  • EthereumConnection

Implements

  • AtomicSwapConnection

Index

Constructors

constructor

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(transaction: UnsignedTransaction): Promise<Fee>

getNonce

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

getNonces

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

    • query: AddressQuery | PubkeyQuery
    • count: number

    Returns Promise<keyof Nonce[]>

getSwaps

  • getSwaps(query: AtomicSwapQuery, minHeight?: number, maxHeight?: number): Promise<keyof AtomicSwap[]>
  • Parameters

    • query: AtomicSwapQuery
    • Default value minHeight: number = 0
    • Default value maxHeight: number = Number.MAX_SAFE_INTEGER

    Returns Promise<keyof AtomicSwap[]>

getToken

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

getTx

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

    • id: TransactionId

    Returns Promise<ConfirmedAndSignedTransaction<UnsignedTransaction>>

height

  • height(): Promise<number>

listenTx

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

    • query: 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<LightTransaction>[]>
  • Parameters

    • query: TransactionQuery

    Returns Promise<keyof ConfirmedTransaction<LightTransaction>[]>

watchAccount

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

watchBlockHeaders

  • watchBlockHeaders(): Stream<BlockHeader>

watchSwaps

  • watchSwaps(_: AtomicSwapQuery): Stream<AtomicSwap>

withDefaultFee

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

Static createErc20SwapId

  • createErc20SwapId(): Promise<SwapId>

Static createEtherSwapId

  • createEtherSwapId(): Promise<SwapId>

Static establish

Generated using TypeDoc