Block states
How can you determine when a Taiko block is Safe
or Finalized
?
The Safe
block state on Taiko is analogous to a Safe
block state on Ethereum.
Every Taiko L2 block has a corresponding Ethereum L1 block as it’s origin that can be queried through a taiko-geth API
.
When that Ethereum L1 block can be considered Safe
, the corresponding Taiko L2 block can be considered to have reached the same block state.
The Finalized
block state is referred to as the Verified
block state on Taiko.
A Taiko block is Finalized
/Verified
when every state transition from genesis to the current block has valid proofs.
Example Query and Response:
The above Taiko block with blockID 0x19a3c
would thus be considered Safe
if the L1 block with the blockHash 0x419f..
reaches a Safe
state.
The Taiko block with blockID 0x19a3c
would be Finalized
/Verified
if every state transition from genesis to the current block has a valid proof.