Build on Bitcoin Bridge
Anyone can call Relay to check the inclusion of a transaction in a certain block header. To do so, the Relay user should provide Relay with Merkle proof. The user also needs to pay the Relay fee.
The Bitcoin Relay has a function called
checkTxProofthat can be used to check the inclusion of a transaction in a block:
bytes calldata intermediateNodes,
) external payable returns (bool);
txidis the double hash of a Bitcoin transaction.
blockHeightis the height of the block that includes the transaction.
intermediateNodesis the Merkle inclusion proof of
txidin the block.
indexis the index of
txidin the transactions of the block.