Quick start
Turn FCR on in your consensus client, then read the safe block. Most integrations need nothing else.
A node with FCR, yours or a provider's
Some RPC providers already serve FCR: see RPC providers. Or run a consensus client with FCR on, paired with an execution client: see Run a node with FCR.
1. Turn on FCR in your consensus client
FCR is off by default. Turn it on in the beacon node that feeds your execution client.
sh
lighthouse bn --enable-fast-confirmationsh
beacon-chain --enable-fast-confirmationsh
# On by default since v26.6.0: nothing to turn on
nimbus_beacon_nodesh
lodestar beacon --chain.fastConfirmationsh
# Hidden, experimental flag
teku --Xfast-confirmation-enabledVersions and caveats per client: Client support.
2. Read the safe block
With FCR on, the execution client's safe tag points at the latest fast-confirmed block.
sh
curl -s -X POST http://localhost:8545 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["safe", false]}'That block and its ancestors are fast-confirmed. safe can move back to a lower block, so keep track of the highest block you've processed rather than re-reading from safe each time: see Reorgs and fallback.
3. Check it's working
Compare safe with latest a few times over a minute:
- FCR on:
safeis usually a few blocks behindlatestand moves forward about once per slot (12 s). - FCR off:
safeis the justified block, 32 or more blocks behindlatest, and moves about once per epoch (6.4 min).
If safe stays far behind with FCR on, see Reorgs and fallback.
Next
Follow the guide for what you run: rollups, bridges or exchanges. Before going live, read Test and roll out.