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.