2018-7-15 12:49 |
First we will see , what a bitcoin transaction is, alongside will create a bitcoin transaction using javascript & then will broadcast it to bitcoin testnet.
There are two types of Bitcoin transactions, one is coinbase transaction and other is normal transaction.
Transaction has inputs and outputs, inputs spends unspendable outputs of previous transaction, whereas outputs sits as (UTXO) unspendable outputs until some input spends them.A transaction can have multiple inputs and outputs.
Pic courtesy: bitcoin.org
Javascript Code used here is simplified version of coinbin github repository, to understand bitcoin transaction.
View broadcasted transaction: 2fc34244bdecc723996b406c0dd3fc773920780fe5ffaf57c0d19a763726d6b3
References:
Bitcoin Transaction Guide @ bitcoin.org.
Similar to Notcoin - Blum - Airdrops In 2024