🛠
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.
TODO.
The Bitcoin Relay has a function called
checkTxProof
that can be used to check the inclusion of a transaction in a block:function checkTxProof(
bytes32 txid,
uint blockHeight,
bytes calldata intermediateNodes,
uint index
) external payable returns (bool);
Where:
txid
is the double hash of a Bitcoin transaction.blockHeight
is the height of the block that includes the transaction.intermediateNodes
is the Merkle inclusion proof oftxid
in the block.index
is the index oftxid
in the transactions of the block.
Last modified 3mo ago