@interlay/interbtc-api / Exports / DefaultBTCRelayAPI
• new DefaultBTCRelayAPI(api): DefaultBTCRelayAPI
| Name | Type |
|---|---|
api |
ApiPromise |
• Private api: ApiPromise
▸ 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
BTCRelayAPI.getLatestBlockHeight
▸ getStableBitcoinConfirmations(): Promise<number>
Promise<number>
A global security parameter: the required block confirmations for a transaction to be considered stable on Bitcoin
BTCRelayAPI.getStableBitcoinConfirmations
▸ getStableParachainConfirmations(): Promise<number>
Promise<number>
A global security parameter: the required block confirmations for a transaction to be considered stable on the parachain
BTCRelayAPI.getStableParachainConfirmations
▸ isBlockInRelay(blockHash): Promise<boolean>
| Name | Type |
|---|---|
blockHash |
string |
Promise<boolean>
True if the block is in the relay, false otherwise.