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



Problem Statement
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.
Solution
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.
Hackathon
ETHGlobal Bangkok
2024
Contributors
- dawsbot
2 contributions