interbtc-api

@interlay/interbtc-api / Exports / BTCRelayAPI

Interface: BTCRelayAPI

Implemented by

Table of contents

Methods

Methods

getLatestBlock

getLatestBlock(): Promise<BitcoinH256Le>

Returns

Promise<BitcoinH256Le>

The raw transaction data, represented as a Buffer object

Defined in

src/parachain/btc-relay.ts:25


getLatestBlockHeight

getLatestBlockHeight(): Promise<number>

Returns

Promise<number>

The height of the latest Bitcoin block that was rekayed by the BTC-Relay

Defined in

src/parachain/btc-relay.ts:29


getStableBitcoinConfirmations

getStableBitcoinConfirmations(): Promise<number>

Returns

Promise<number>

A global security parameter: the required block confirmations for a transaction to be considered stable on Bitcoin

Defined in

src/parachain/btc-relay.ts:16


getStableParachainConfirmations

getStableParachainConfirmations(): Promise<number>

Returns

Promise<number>

A global security parameter: the required block confirmations for a transaction to be considered stable on the parachain

Defined in

src/parachain/btc-relay.ts:21


isBlockInRelay

isBlockInRelay(blockHash): Promise<boolean>

Parameters

Name Type
blockHash string

Returns

Promise<boolean>

True if the block is in the relay, false otherwise.

Defined in

src/parachain/btc-relay.ts:33