I am currently learning bitcoin technology. So I came up around the term raw transaction. There are many tools to create a raw transaction but I want to do it all by myself.
My Idea is to write a raw transaction and broadcast it over network without cli. All I want is to deeply understand the Bitcoin Raw transaction.
To make it simple my transaction has one input and one output. I have got all the input as follows:
#All the values entered here are for example. None need to be true. Version: 010000 Reverse of previous Tx hash: 8602122a7044b8795b5829b6b48fb1960a124f42ab1c003e769bbaad31cb2 Previous output index: 000000 Script size: 6a Script sig: 3044022............................. Output Count: 01 Value(in satoshi): 1000000 //Please check if it is written in correct format or not Script size: //To be known scriptPubkey: //To be known locktime: 00000000
The problem is I don't know how to generate the
scriptPubKey and how to write the value in Satoshi.
The info you may need to generate
Private Key: 94C54DFCAE5E4E64A82B21478A9A243039AA57650EC6395FEC4250ACF90C3902 Public Key: 033c6f7a45e7892df81329e453b9faf5bafef648dfd9bec321eecc8e65512b3c367
Okay don't rush to block explorer. The wallets are empty. 😉