The diagram below shows the detail.
๐ธ Step 0 โ Bob wants to transfer 1 BTC to Alice. He initiates the transfer in his wallet.
๐ธ Steps 1 and 2 โ A transaction A is created with Aliceโs address. Bob then ๐ฌ๐ข๐ ๐ง๐ฌ the transaction with his private key.
๐ธ Step 3 โ The signed transaction A is put into ๐ฆ๐๐ฆ๐จ๐ซ๐ฒ ๐ฉ๐จ๐จ๐ฅ, together with other transactions from other people.
๐ธ Step 4 โ The miners actively pick transactions to work on. In our example, A is picked by both miner A and miner B, and both miners generate a block that contains transaction A. The miners then need to solve a maths problem which consumes a lot of ๐๐จ๐ฆ๐ฉ๐ฎ๐ญ๐ข๐ง๐ ๐ซ๐๐ฌ๐จ๐ฎ๐ซ๐๐๐ฌ.
๐ธ Step 5 โ Miner A solves the problem first and its block gets accepted and added to the blockchain as a new block. A new block is created ๐๐ฏ๐๐ซ๐ฒ 10 ๐ฆ๐ข๐ง๐ฎ๐ญ๐๐ฌ.
๐ธ Steps 6 and 7 โ Miner A gets ๐ซ๐๐ฐ๐๐ซ๐๐๐ by the work to solve the maths problem (Proof-of-Work). Alice now gets 1 BTC in her wallet.