Questions tagged [raw-transaction]

This tag should be used for questions related to raw transactions, bitcoin transactions that have been serialized for network transmission.

Raw transactions are bitcoin transactions that have been serialized for network transmission. Use this tag for questions relating to how to serialize, deserialize, or manipulate raw transaction data.

Raw transactions are also used as part of Bitcoin Core's RPC interface through the use of the following RPC commands: createrawtransaction, decoderawtransaction, getrawtransaction, sendrawtransaction, and fundrawtransaction.

Typically, hex formatting is used for representing raw transactions in the RPC commands, questions and answers. The format of raw transactions can be found on bitcoin.org

378 questions
41
votes
1 answer

My raw transaction destroyed 0.0284377 BTC. What did I do wrong?

Years ago I designed a .NET module which facilitates the transmission of BTC to my customers. It creates a binary representation of the desired transaction based on the material presented here and here: The binary representation is then converted to…
31
votes
2 answers

Redeeming a raw transaction step by step example required

I am looking, specifically, for a step by step example transaction of sending Bitcoin which uses an actual transaction (How To Redeem A Basic Txn, from a few years back, does a great job of outlining most steps of sending a raw txn but does not use…
Wizard Of Ozzie
  • 5,268
  • 4
  • 30
  • 63
18
votes
3 answers

How to sign a transaction with multiple inputs?

I have been able to program an application in python that sends valid transactions that spend 1 input, but I really can't get it to work with 2 or more inputs. So my question is, how exactly is the hash that has to be signed for each input…
Nathan Parker
  • 758
  • 1
  • 5
  • 15
11
votes
2 answers

How do I spend bitcoins from multiple wallets in a single transaction?

Using, e.g., the Bitcoin Core command line, how could I spend bitcoins from multiple wallets in a single transaction? This comment says: instead of sending the transaction to the network, you send it to the next person who will add their inputs and…
Geremia
  • 4,469
  • 4
  • 37
  • 75
10
votes
1 answer

What does a segregated witness transaction look like?

I'd like to learn how segregated witness works, and I thought the raw transaction data would be a good place to start If this is the structure of current transactions: version | [inputcount] {[txid] [vin] [signature] [sequence]} | [outputcount]…
inersha
  • 2,928
  • 1
  • 17
  • 41
9
votes
3 answers

Is it possible to create a transaction in pure python without needing to run bitcoin locally?

Lets say I have a bitcoin address that has 10 BTC sent to it. I also have the private key for this address Using Python (2 or 3) is there a way to create a signed transaction (which I believe is a long string of hex digits) that can then be sent to…
priestc
  • 301
  • 1
  • 2
  • 8
9
votes
4 answers

Is there a user-friendly tool for creating and signing raw transactions?

The title stands for itself. The only tool for doing so I know of is the bitcoind daemon, but it is for from user-friendly. A web-tool in JS would be ideal or a simple CLI tool with clear documentation.
Steven Roose
  • 11,473
  • 8
  • 44
  • 71
9
votes
3 answers

Can an unconfirmed transaction that only Blockchain.info shows be manually re-broadcast?

Blockchain.info shows a transaction that was created by Blockchain.info/wallet but for whatever reason the transaction didn't confirm right away and appears to not be getting re-broadcast (perhaps because the transaction is more than a day old…
Stephen Gornick
  • 26,990
  • 12
  • 67
  • 141
8
votes
3 answers

How to extract addresses from input in raw transaction

I need help to get input addresses from "vin" in offline mode. I don't know how https://live.blockcypher.com/btc/decodetx/ is doing it. Example raw transaction: txn id : b0dd3d915a568c9d48e37b3fbfca58ae3276a5dba176fdf30f18af794310cc02 raw txn…
sujoshi
  • 105
  • 6
7
votes
1 answer

Can I send almost 1MB transaction?

Block size is still limited to 1MB. As I understood, transaction size is no longer limited. So can I be sure that my transaction with 29000 outputs and reliable fee will be included into block? Or what is the max transaction size?
Lizzy Bug
  • 75
  • 5
7
votes
2 answers

HTLC (Hash Time Lock Contract) using bitcoin-qt

Is it possible to manually create a HTLC using the bitcoin-qt command line? I know how to manually creating createrawtransaction/sendrawtransaction using the bitcoin-qt clients command line, and wanted to know how to manually create a HTLC. When I…
7
votes
3 answers

Reading Bitcoin Raw Transaction

I want to understand Bitcoin data structure. So i try to understand a raw transaction in json format. When i checked the blockchain.info API documentation, i see that input structure is defined for transactions like this: "prev_out": { …
7
votes
1 answer

What are the hex and asm field values in the JSON decoded from a raw transactions?

I used the command line bitcoin-cli decoderawtransaction and got back a JSON output (see below). However, I noticed there are hex and asm fields that are themselves hex values (at times). I am thinking these are metadata that can further…
Jane Wayne
  • 349
  • 2
  • 9
7
votes
1 answer

How to sign raw transaction given a private key and SHA hash (in java)

I have followed the instructions here to build my own bitcoin transaction. Redeeming a raw transaction step by step example required Currently my code can create a transaction and compute the SHA hash but I am struggling to sign it using ECDSA. I…
alex676
  • 73
  • 1
  • 3
7
votes
1 answer

How to decode raw tx hex programmatically

createrawtransaction(...) in testnet returns this…
Doug Peters
  • 1,366
  • 14
  • 23
1
2 3
25 26