Preset | Use-case | How to code it | Typical delay |
---|---|---|---|
FAST | UI refresh, analytics | provider.getBlock("latest") | ~1 s |
SAFE | Most user actions | await tx.wait(7) | ~7-8 s |
FINAL | Treasury, bridge, NFT mint | provider.getBlock("finalized") | ~15-20 s |
Golden rule: a latest block is optimistic; a finalized block is forever.
https://quicknode1.peaq.xyz
ID 3338
https://peaq‑agung.api.onfinality.io/public
ID 9990
london
npx hardhat run scripts/deploy.js --network peaq
Topic | What’s different | What to do |
---|---|---|
block.difficulty / prevrandao | Always 0 | Use Chainlink VRF or for low stakesrandomnessCollectiveFlip queried at finalized height. |
Gas schedule | Mostly London‑equivalent; storage a bit pricier | Always run eth_estimateGas , never hard‑code. |
Account abstraction (ERC‑4337) | Not yet live | Wait for roadmap. |
Deep traces | debug_* RPCs only on tracing‑enabled nodes | Run a node with --ethapi=debug,trace,txpool & --features evm-tracing . |
provider.call(tx)
first; for deep dives use debug_traceTransaction
on a tracing node.