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

387 questions
6
votes
2 answers

To combine or not to combine

If I have to make 10 payments of various amounts to different recipients: What is the best approach for the lowest tx fee? One transaction that will serve many (or all) logical payments (many inputs and outputs) or many but small in size…
Doug Peters
  • 1,366
  • 15
  • 23
3
votes
2 answers

sendrawtransaction creates hash but does not propogate to the network

I'm on testnet, I've created a raw tx and I'm using bitcoind. I've confirmed that the hex is formed correctly and signrawtransaction returns complete:true. After I've run bitcoind sendrawtransaction raw_tx I get a hash returned, however when I look…
serialb
  • 83
  • 4
2
votes
1 answer

64: non-mandatory-script-verify-flag (No error) (-26)

What does this error mean? I've manually constructed a transaction, and I get this error when I try to insert it in to the network.
inersha
  • 3,063
  • 1
  • 17
  • 41
2
votes
1 answer

Cannot transmit raw bitcoin transaction

I'm using the testnet and as far as i can tell im doing everything right but it just wont send. The coins are old with more than 170 confirms now, the unspent output has a total of 4. I'm sending 3 to another address in my wallet and 0.5 to another…
derrend
  • 696
  • 5
  • 16
2
votes
2 answers

Decode a signing raw transaction

I'm trying to compare raw_transaction with a sign_raw_transaction. is there any way to do that ? ( Using rpc commande if possible) What i want to do is : create raw_transaction signing it compare the hexencoded ( signed raw tx) with raw tx. To see…
Userbn
  • 123
  • 2
1
vote
1 answer

Transaction fails to validate (Error running script)

I've created a transaction on the TESTNET and am trying to push it via BlockCyphers facility at: https://live.blockcypher.com/btc-testnet/pushtx/ when I make the attempt, I get the following error: Error validating transaction: Error running script…
ekkis
  • 177
  • 10
1
vote
1 answer

Unable to broadcast raw transaction

I am a real beginner and am having trouble with signing this P2sh…
Peter
  • 19
  • 2
1
vote
3 answers

In creating a scriptSig, how do I sign the hash of a raw transaction?

I have created a raw transaction, added the hash code, and Double-sha256 this result. Now I should sign this hash with the private key, which would give me the DER encoded signature, but I'm not clear on what exactly I should be doing. How do I…
user31364
1
vote
1 answer

getnewaddress vs. getrawchangeaddress

I'm using the Golang btcsuite/btcd library to write a Bitcoin app that creates custom OP_RETURN TXs in the blockchain. I understand Bitcoin at a high-level (proof-of-work consensus, Merkle trees, membership, signatures, etc.), but I'm getting lost…
Alin Tomescu
  • 1,337
  • 9
  • 29
1
vote
1 answer

How to redeem Non-standard script Tx (testnet instance)

Th testnet TxID 8d897ca91774a7fafa086a3275e679248d6bffee015d3b2efefd5dab00df152d has the following scriptPubKey: scriptPubKey: "OP_DUP OP_HASH160 5f1426c2ce4a8e1abaa9dbe819b6303eb8a25a26 OP_EQUALVERIFY OP_CHECKSIGVERIFY OP_IF OP_DUP OP_HASH160 …
Wizard Of Ozzie
  • 5,298
  • 4
  • 31
  • 63
1
vote
2 answers

Is tighting inputs to specific outputs possible within one transaction?

For convenience purposes let's say I need to make these payments (and let's pretend that tx fees do not exist): Address A: 1 BTC Address B: 2 BTC Address C: 3 BTC My balance is 6 BTC that consists of these spendable inputs: Tx1: 0.5 BTC Tx2:…
Doug Peters
  • 1,366
  • 15
  • 23
0
votes
1 answer

Bitcoin Pay-to-PubKeyHash (P2PKH) in multi-sig addresses

Can we send Pay-to-PubKeyHash (P2PKH) to an address which starts from 3 . I tried to send raw transaction to one of my coinbase address which starts from 3 but it send to completely different address which starts from 1 . How can I send transaction…
0
votes
1 answer

How likely is it that the structure of a raw transaction will change?

I've written a script that decodes raw transactions, as it's faster than calling the decoderawtransaction RPC. How likely is it the structure of a raw transaction will change in the future?
inersha
  • 3,063
  • 1
  • 17
  • 41
0
votes
1 answer

"Unable to find all tx inputs"

I've created a transaction using "bitcoinjs-lib". Here is the…
Lolums
  • 3
  • 1
0
votes
1 answer

how to calculate the inputs to raw transactions?

I'm wanting to send a raw TX, but i don't know how to come up with some of the parameters to the commands. What goes into the commands, what commands get used, and how to calculate anything that needs calculating. I know this needs to be done in the…
Tyler
  • 11
1
2