For this we need to fetch all account data from the DB (including storages), and merkleize it. More information in the [Ethereum yellow paper](https://ethereum.github.io/yellowpaper/paper.pdf).