project screenshot 1
project screenshot 2
project screenshot 3

BlockTime

Accountants need to match the closest timestamps to blocks so this data source exists now to decode any block to a timestamp!

BlockTime

Created At

ETHGlobal Bangkok

Project Description

This project compiles a single file with every mainnet Ethereum block alongside the timestamp which that block was mined. This is critical to computing cost basis. Accountants can look through this file to find those timestamps. Those can then be used to calculate a more accurate cost-basis which the IRS requires when determining gains and losses.

How it's Made

This is a fetch in a loop from any rpc endpoint! I performed this with TypeScript. The pieces were stitched together with bun to execute the typescript code. One thing hacky that is interesting is that making this many rpc requests is challenging so it hits rpc endpoint in a round-robin fashion to ensure I don't hit the same RPC with quite as many requests.

background image mobile

Join the mailing list

Get the latest news and updates