Blockchain keeps and maintains all its data in a database. This database contains all sets of transactions in blocks. All the transactions are then added to the ledger in the form of blocks. A block has the following elements: - 1. Previous Hash 2. Data 3. Hash 4. Nonce