Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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

How can I specify transaction fee size when creating a raw transaction?

Question: Am I able to specify the transaction size in a raw transaction without having to send "change" back to myself? I get some unspent bitcoins listunspent() I grab the txid, vout, and ...
3
votes
1answer
2k views

Error -25 when bitcoind sendrawtransaction

I am trying to send a bitcoin raw transaction, but always got such an error. what's the possible explaination? bitcoind --testnet sendrawtransaction ...
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 ...
1
vote
1answer
494 views

OP_EQUALVERIFY: non-equal data

I'm trying to push the following transaction but keep getting OP_EQUALVERIFY: non-equal data Here's the transaction ...
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
622 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
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?
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 ...
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 ...
3
votes
1answer
714 views

How can I create a transaction that collects inputs from many addresses and sends them to one address in bitcoind?

I'm using bitcoind and would like to understand how to create transactions that send inputs from many specifically selected addresses (from my wallet) to one destination address. I want to do manually ...
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 ...
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 ...
2
votes
1answer
4k views

SignRawTransaction - What is scriptPubKey and redeemScript? [SOLVED] [closed]

Let me talk about how I got to the situation I'm in right now. I am using PHP and the JSON library to control bitcoind. And doing so..... I created a multisignature address requiring 2 of 3 ...
2
votes
1answer
563 views

How to tell which part of the previous tx I need to make the hash to sign for an old given tx?

I have recently been taught (here) how to create the hash to sign for a given "input script" for an existing transaction. I then sought to test my abilities and sought out a difficult transaction to ...
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 ...
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 ...
2
votes
2answers
3k views

Create OP_RETURN tx with Bitcoinjs-lib

I know how to create a basic TX: var bitcoin = require('bitcoinjs-lib') var tx = new bitcoin.Transaction() // Add the input (who is paying) of the form [previous transaction hash, index of the ...
1
vote
1answer
708 views

Single signature P2SH redeem script

How would one go about creating a single signature P2SH transaction? (Analogous to a "2 of 3 multisig P2SH" but instead I'm asking about a "1 of 1".) Would one wrap a standard P2PKH scriptPubKey ...
1
vote
1answer
376 views

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

Th testnet TxID 8d897ca91774a7fafa086a3275e679248d6bffee015d3b2efefd5dab00df152d has the following scriptPubKey: scriptPubKey: "OP_DUP OP_HASH160 5f1426c2ce4a8e1abaa9dbe819b6303eb8a25a26 ...
1
vote
1answer
3k views

Bitcoin offline transaction

Consider the following scenario: create an entire bitcoin raw transaction while offline (no access to the blockchain) only when you decided to broadcast it that you would need to get online Is ...
0
votes
2answers
755 views

Sign transaction with multiple inputs using bitcoinj/peercoinj libraries

Good day for everyone! I have some troubles with adding signed Input to the transaction. Currently, I'm working with altCoin (fork peercoin) currency. I'm trying build the transaction in the ...
0
votes
1answer
286 views

Transaction version byte

What does the transaction version byte mean and what would happen if it was 02 instead of 01? Example: ...
5
votes
2answers
232 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 ...
3
votes
1answer
857 views

getrawtransaction in Bitcoin-Qt (0.8.5)

I am getting an error {"code"=>-5, "message"=>"No information available about transaction"} when issuing getrawtransaction. I am aware that since bitcoind/Bitcoin-qt 0.8, no transaction index is ...
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
543 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?
3
votes
1answer
1k views

Receiving `error: {“code”:-25,“message”:“”}` on sendrawtransaction with v0.9.3

I'm running a bitcoind regtest node. When trying to relay a transaction (created using bitcoin-ruby) I receive error: {"code":-25,"message":""} When I restart the node and relay the exact same ...
3
votes
1answer
1k views

Why I cannot get transaction from genesis block [duplicate]

When I run command getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b in my bitcoin-qt console (or bitcoind), I get No information available about transaction (...
2
votes
1answer
849 views

What does “16: mandatory-script-verify-flag-failed (Non-canonical DER signature)” error mean?

What can this error mean? I've read through the code for it, and several of my transactions have not met the criteria for the error, yet are still rejected. I've tried decoding via several means (...
2
votes
1answer
730 views

How does one submit a transaction to the network using the blockchain.info API?

I am currently working on a project which makes use of the blockchain.info api (php). Could anybody please tell me how to use this api to submit transactions to the network?
1
vote
1answer
284 views

Does createrawtransction accept scriptPubKey and redeemScript as inputs?

According to the built-in RPC documentation the signature for createrawtransaction is: createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}. Gavin in his example on 2-of-3 ...
1
vote
1answer
305 views

What is a “serialized signed transaction”?

Shown in the gray area here, describing how to apply, I think, Segwit to a transaction (particularly a Bitcoin Cash tx). The last section is titled "serialized signed transaction" however it doesn't ...
0
votes
3answers
2k views

Extract genesis block raw TX data

RPC does not return the raw transaction for the genesis block. I need to get this data for other coins to be able to add them to ABE. https://github.com/bitcoin-abe/bitcoin-abe/blob/master/Abe/...
0
votes
0answers
240 views

Unable to broadcast native P2WPKH (SegWit) TX; malformed, but how?

I'm trying to add SegWit functionality to my app but am running into trouble building my transaction. I've read BIP143 so many times I virtually have it memorized, and I've followed it to the letter. ...
0
votes
2answers
676 views

How do you create a scriptsig for a new raw tx?

Could someone please explain how to do this is in a detailed step by step manner that correlates to a real linked transaction such that a n00b can comprehend? Is it just copy and paste a particular ...