Questions tagged [raw-transaction]

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

Filter by
Sorted by
Tagged with
35
votes
1answer
5k views

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 ...
22
votes
2answers
15k views

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 ...
13
votes
3answers
5k views

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 ...
10
votes
3answers
520 views

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 ...
9
votes
3answers
2k views

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 ...
8
votes
4answers
3k views

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 ...
7
votes
3answers
11k views

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 ...
7
votes
1answer
2k views

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] ...
7
votes
1answer
5k views

How to decode raw tx hex programmatically

createrawtransaction(...) in testnet returns this hex: ...
7
votes
1answer
547 views

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 ...
6
votes
2answers
1k views

OP_RETURN data transaction

Looking at Dev Update #5 and in particular the OP_RETURN data function due to be included in 0.9 release, how is data returned during the transaction? Am I meant to create a new txout with no value ...
6
votes
2answers
5k views

How to do mass payouts in my application to multiple addresses at once, or very quickly?

Let's say it's pay day--I've accumulated a lot of bitcoins, and sent them all to a single address. I now want to pay a lot of addresses from this "pool" of coins, say anywhere between 100 and 10,000 ...
6
votes
1answer
2k views

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

I used the command line bitcoin-cli decoderawtransaction <hex-value> and got back a JSON output (see below). However, I noticed there are hex and asm fields that are themselves hex values (at ...
6
votes
2answers
164 views

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 ...
6
votes
1answer
434 views

Working example of raw transaction utilising Boolean (OP_IF, OP_ENDIF) scripting REQUIRED

I recently posted this Testnet TX (TxID 2d0daa01da8294a54178f8111eb2a02010c425fd15957d8baee8717edcfbe105) which successfully spends an output (TxID ...
6
votes
1answer
526 views

How to sign non-standard transaction

Consider Testnet transaction 7a438...de03e which has vout[0].scriptPubKey = OP_DUP OP_DROP OP_DUP OP_HASH160 039.....6fe OP_EQUALVERIFY OP_CHECKSIG The script is equivalent to a standard pay-to-...
5
votes
2answers
707 views

Is it possible to combine two separate transactions into one transaction by only using their signatures?

I have two valid txs and two valid signatures for those txs. Right now they look like: 1) A -> B 2) C -> D A and C are inputs & B and D are outputs. I want to be able to combine them ...
5
votes
1answer
1k views

How do you spend a P2SH transaction?

I've been running into a lot of trouble getting a transaction to spend coins in a multisig address. I create the raw transaction When I go to sign, I get "Operation not valid with the correct stack ...
5
votes
3answers
460 views

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 : ...
5
votes
2answers
1k views

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 ...
5
votes
1answer
3k views

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 ...
5
votes
1answer
1k views

What is meant by “relaxed standards” for P2SH redeem scripts in Bitcoin Core 0.10.0?

From the Bitcoin Core 0.10.0 release notes: Standard script rules relaxed for P2SH addresses The IsStandard() rules have been almost completely removed for P2SH redemption scripts, allowing ...
5
votes
1answer
640 views

How would this normal raw transaction appear if it was a raw segwit transaction?

How would this raw bitcoin transaction appear if it was a raw segwit transaction? https://blockchain.info/tx/ff8766ec873ff55cc0ac17dee7b379a4efa2a5c83dabdd9a30287c7761ad55d5 This TX Raw is: ...
5
votes
2answers
234 views

Double spend transactions flag the node as “bad”?

I'm playing with raw transactions. It's easy to send two signed valid transactions at the same time from the same output to different addresses (making a double-spend attack). My doubt is: if I make ...
5
votes
1answer
1k views

What is the exact difference between a Bitcoin and Bitcoin Cash raw transaction to address sighash_forkid?

Bitcoin Cash apparently uses sighash_forkid, such that if you don't implement that into your raw transactions, the bitcoin cash network won't accept it. How would one need to alter (what to add and ...
5
votes
3answers
4k views

Calculating “total received” and balance by an address

This is something which I think should be simple but it's driving me crazy. See for example this list of transactions associated with an address: https://blockchain.info/address/...
5
votes
1answer
934 views

Problem with sendrawtransaction

When I use bitcoin-cli sendrawtransaction and only get -25 errors. I have tried to push the transaction using different blockchain explorer sites, but that didn't work. I have tried: ...
5
votes
2answers
2k views

Are timestamps in transactions trustable?

I need to properly segment transactions by time. Are timestamps in transactions trustable? Can these be forged? I'm not sure if transaction timestamps are part of the protocol, but I'm particularly ...
4
votes
2answers
612 views

How does the variable length integer work?

I'm trying to write a script that constructs a serialized bitcoin transaction from scratch. But when it comes to the number of inputs, the field is a variable length integer. It's typically only 1 ...
4
votes
2answers
187 views

what's the point of “n” in “vout”? getrawtransaction

It seems like "n" is the index, is that true? If that is the case, why is the "n" key necessary? Example: bitcoin-cli getrawtransaction ...
4
votes
1answer
4k views

Signing a raw transaction with Python ECDSA (or OpenSSL)

I'm looking for specifics of Step15-17 from Redeeming a raw Tx Step By Step, which is essentially the step where the concatenated raw Tx structure is double sha256 hashed, and then signed with an ...
4
votes
1answer
1k views

Transaction's maximum size

Is there a maximum size for any given transaction? I just created this tx: http://blockexplorer.com/testnet/tx/194173dcc07b396433d5725abe76d52b10d42ebd3d1d10b465429f87fee12a52 and although it ...
4
votes
1answer
623 views

Why do my transactions show I received 1 satoshi?

My Multi-Bit client shows 1 satoshi sent to me in my receiving transactions, with 1 confirmation only. The receiving address is quite old too. Why is that showing up when I didn't send myself anything ...
4
votes
3answers
1k views

2of2 multisig - redeem script required

Normally somebody who signs a multisig transaction also needs the redeem script or all the public keys used for the creation of the redeem script, alongside their own private key. No I was thinking, ...
4
votes
1answer
3k views

Creating a raw transaction using Bitcoin Core v0.10.0 bitcoin-tx / createrawtransaction

I'm trying to create a raw transaction using Bitcoin Core v0.10.0 (on Windows 7 x64, and with txindex=1 optioned). Bitcoin Core v0.10.0 comes with a new Bitcoin-tx executable utility. The help menu ...
4
votes
1answer
4k views

How do I find the txid and vout values for an input I want to spend?

I was in the http://coinb.in/multisig/#newTransaction and wanted to make a input but it needed 2 values. Txid, How do I get that? TxIn/vout, Whats that and how do I get that?
4
votes
2answers
1k views

Broadcast raw transaction without input validation

What tool/software can I use to broadcast a raw transaction, which would not reject a transaction because of invalid or double spend? Bitcoind with RPC has a validation step which rejects any raw ...
4
votes
1answer
358 views

How widespread is OP_RETURN forwarding and mining (as of February 2014)?

As of now (February 2014), how easy is it to have a transaction which makes use of OP_RETURN data confirmed into a block? Do standard nodes forward such transactions yet? Have major mining pools ...
4
votes
1answer
1k views

Code sample to sign a transaction

I have the 32-bytes double hash of a transaction, a 32-bytes private key, and I would like to sign the hash using the private key. How do I do that using BouncyCastle (or anything, really), in C# or ...
4
votes
1answer
2k views

How are transaction fees calculated in raw-transactions?

So, after understanding how to create and send raw transactions on the basis of 'How to send from many bitcoin addresses to one bitcoin address?', in practice I still struggle with transaction fees. ...
3
votes
4answers
2k views

How to decode very huge (!) raw transactions?

I'm parsing the blockchain to extract certain information I need for a script. One thing I do is parsing transactions. What I do is: getrawtransaction <tx> decoderawtransaction <rawtx> ...
3
votes
1answer
562 views

Transaction with OP_RETURN rejected by bitcoind 0.9

The raw transaction below is being rejected by bitcoind 0.9.1 (error: {"code":-22,"message":"TX rejected"}) ...
3
votes
2answers
986 views

16: bad-txns-vin-empty. Code:-26

I am trying to push a raw transaction via BTC insight API, but I always get an error message: 16: bad-txns-vin-empty. Code:-26 Here is the raw transaction hex: ...
3
votes
2answers
378 views

Unable to construct a correct raw transaction for bitcoin cash testnet

I am trying to construct a raw transaction for bitcoin cash testnet. I have made a lot of use out of this very nice answer to how to construct a raw transaction, but am still unable to construct a ...
3
votes
1answer
1k views

What's going on with address 1NZ9kxxUykiNSe61ZRNPLqWeVHVRnirGry?

Does anyone know what is going on here: https://blockchain.info/address/1NZ9kxxUykiNSe61ZRNPLqWeVHVRnirGry As far as I can tell, it looks like the "1NZ9..." address seems to be one one of those ...
3
votes
1answer
4k views

How exactly can I generate a transaction id?

I'd like to create a transaction object from scratch. I've read that the tx id for a transaction is the double SHA-256 hash of a serialized transaction, but havent been able to find details on exactly ...
3
votes
1answer
2k views

How can I tell what input address sent me coin? [duplicate]

Rather - how does SatoshiDice do it? I know it's not proper format and people advise against it, but how is it technically possible?
3
votes
1answer
77 views

Could a transaction hex on testnet theoretically be valid on mainnet?

For all practical intents and purposes it seems a testnet tx hex could never be valid on mainnet because of the prev tx hex present for all inputs used in the tx. However, let's say that by some ...
3
votes
1answer
1k views

How to push a raw transaction using BitcoinJS (and Request)?

I'm using BitcoinJS to create a playground for Bitcoin transactions. I have created the following Javascript file: const request = require('request'); const proxiedRequest = request.defaults({proxy: "...
3
votes
1answer
550 views

Parsing a SegWit transaction - what is the size of witness data?

I'm parsing s SegWit transaction, I got it done until i reach the witness data. How big is the witness data?