Wallet SSC: 0.00000000 / $0
Standard Transaction to Bitcoin address P2PKH step-by-step. P2PKH p2pkh, p2sh, p2wpkh, p2wsh - SecretScan.org

Bitcoin transaction

Standard Transaction to Bitcoin address P2PKH (address starts with '1') step-by-step
P2PKH -> p2pkh, p2sh, p2wpkh, p2wsh

Creating a new Transaction. The In’s and Out’s of Transactions


version 02000000
input count
01
input previous output hash
previous output index
script length
scriptSig
sequence
output count
01
output value
script length
scriptPubKey
block lock time
Warning: does not automatically create change outputs, so you can easily accidentally pay a large transaction fee. Create a multi-output transaction so you can send change to yourself.
* required fields.

The new transaction now looks like (not broadcast to the Bitcoin Network):
copy
02000000 01 00000000 00 fdffffff 01 0000000000000000 00 00000000
transaction hash
0
size
0
fee
0
Broadcasting the Raw Transaction Into the Bitcoin Network: blockchair.com mempool.space blockcypher.com etc.

Note:

Transaction Fee

Change is given to the original spender if the sum of the inputs is greater than the amount being sent to the recipient. After adding the "change" output, if the sum of the inputs is greater than the sum of the outputs, the remainder is collected by the miner who confirms your transaction, which is called the "fee".

The transaction fee that goes to the miner is the delta between the total input and output amounts. In the example transaction, the miner fee is calculated as:
fee = (input amount) - (spend amount + change amount)
fee = (17373066) - (390582 + 16932484)
fee = 50000 satoshi

Change is given to the original spender if the sum of the inputs is greater than the amount being sent to the recipient. After adding the “change” output, if the sum of the inputs is greater than the sum of the outputs, the remainder is collected by the miner who confirms your transaction, which is called the “fee”. Naturally, the sum of all bitcoins in the inputs must be greater than or equal to the sum of all bitcoins in the outputs, or else your transaction will get rejected.

Replace-by-fee (RBF) Bitcoin

Replace-by-fee (RBF) is a feature that allows users to replace one version of an unconfirmed transaction with a different version of the transaction that pays a higher transaction fee. This can be done multiple times while the transaction is unconfirmed. Transaction replacement

Additional materials

Bitcoin Wiki
Most of this data has been automatically parsed out of the original source code for each cryptocurrency. Still, there exists chance of bugs/error. Please report any errors at: info@secretscan.org Your Private Key is a unique secret number that only you know. It can be encoded in a number of different formats. We show the Public Address and Public Key that corresponds to your Private Key as well as your Private Key in the most popular encoding formats (WIF, HEX).
Our website uses cookies (ie. Cookies) for statistical, advertising and functional. Thanks to them, we can customize the site to your needs. Anyone can accept cookies, or has the ability to disable them in your browser, so you will not collect any information.
Got it