EIP-8304: Trustless log and transaction index

Hi @Vansh, that’s awesome that your table matches ours on every block root and the entry count. Thanks for running it.

It’s deployed on mainnet now with that root. HistoryIndex is at 0x1bff54823425A8FDBCb88890caf6F061D65B64b8 with the source verified on Etherscan, and its code hash is 0x4739139e36e3045c5ccef9df7edf9f5d808f9188477d52ec6bf3c1010855b5a6. The contract was deployed in this tx and the SP1 merge proof was verified on-chain in the submitMerge tx, so get(25845760, 1024) now returns 0x201e730a99fa30d9c1be13e7c32b26b246e34c420597150f37651bb708c703bd.

For the state proof, any mainnet RPC that serves eth_getProof should work. We tested https://ethereum-rpc.publicnode.com and the account and storage proofs verify against the block’s state root. get only reads one storage slot, 0xc71baafdaab73a4a55de6622f6e4b0845b6b126487a0234d6bd5190b5deb0cd6, in case it’s handy to request it directly.

Mainnet has no system index, so the four 256-block leaf roots were seeded at deploy in a small contract with no setter (0xbBa37484fF6783496F60C568895059a3A6C58bAa). What’s proven on-chain is the merge of those four into the 1,024-block root, which the contract only accepted with a valid SP1 proof. Your own computation of those leaf roots from the blocks covers the seeded part. Let us know how the query goes.