@interlay/interbtc-api / Exports / BTCRelayAPI
▸ getLatestBlock(): Promise<BitcoinH256Le>
Promise<BitcoinH256Le>
The raw transaction data, represented as a Buffer object
▸ getLatestBlockHeight(): Promise<number>
Promise<number>
The height of the latest Bitcoin block that was rekayed by the BTC-Relay
▸ getStableBitcoinConfirmations(): Promise<number>
Promise<number>
A global security parameter: the required block confirmations for a transaction to be considered stable on Bitcoin
▸ getStableParachainConfirmations(): Promise<number>
Promise<number>
A global security parameter: the required block confirmations for a transaction to be considered stable on the parachain
▸ isBlockInRelay(blockHash): Promise<boolean>
| Name | Type |
|---|---|
blockHash |
string |
Promise<boolean>
True if the block is in the relay, false otherwise.