Docs
Reference
Contract documentation
common
ICrossChainSync

ICrossChainSync

Interface implemented by both the TaikoL1 and TaikoL2 contracts. It exposes the methods needed to access the block hashes of the other chain.

CrossChainSynced

event CrossChainSynced(uint256 srcHeight, bytes32 blockHash, bytes32 signalRoot)

getCrossChainBlockHash

function getCrossChainBlockHash(uint256 number) external view returns (bytes32)

Returns the cross-chain block hash at the given block number.

Parameters

NameTypeDescription
numberuint256The block number. Use 0 for the latest block.

Return Values

NameTypeDescription
[0]bytes32The cross-chain block hash.

getCrossChainSignalRoot

function getCrossChainSignalRoot(uint256 number) external view returns (bytes32)

Returns the cross-chain signal service storage root at the given block number.

Parameters

NameTypeDescription
numberuint256The block number. Use 0 for the latest block.

Return Values

NameTypeDescription
[0]bytes32The cross-chain signal service storage root.