Here we only introduce the on-chain transaction method of Bitcoin.
The transaction initiator creates a transaction and signs the transaction with a private key. This signature indicates the permission of the Bitcoin owner to the transaction and ensures that the transaction will not be tampered with by others after it occurs. After that, the transaction will be broadcast to the entire Bitcoin network and wait for confirmation.
When miners receive these transaction requests, they will package the transactions and upload them to the entire blockchain. When more than six nodes in the entire network confirm these transactions, the Bitcoin transfer is completed. After the transaction is completed, the transaction will be permanently stored on the blockchain, and the Bitcoin recipient will also obtain ownership of the funds.