Blocks are the fundamental unit of time in a blockchain. They are created by the network every few seconds and contain a list of transactions that have been validated by the network.
Many applications need to listen to new blocks as they are created in order to update their state or trigger some action. In the following snippet we are showing you how to listen to new blocks using Polkadart.