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
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
1answer
667 views

Redeeming OP_SHA256 hash OP_EQUAL (Testnet) Tx

I created the following non-standard Tx on the Testnet3 network: 6b52c981e6814072db77cb755b2633cd126b4ca21501d18ab994531e17a4a813 { hash: "...
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 ...
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 ...
1
vote
1answer
283 views

OP_RETURN in rawtransaction rejected with error code -25

I'm newbie with bitcoin, i'm trying to generate a rawtransaction but bitcoin-cli sendrawtransaction return me an error code -25. The transaction is { "locktime": 0, "version": 1, "vin": [ ...
1
vote
1answer
280 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 ...
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 ...
2
votes
2answers
639 views

“value” field in raw transaction: Rounded Bitcoins (float) or Satoshis?

I am getting confused about the Bitcoin amount presentation in a raw transaction's "value" field. If i want to spend 0.05 BTC, for instance, which of these is the correct value? "value" : 0.05 "...
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 ...
0
votes
1answer
118 views

How do I make a transaction [duplicate]

I want to make a multisig transaction but dont how to do it. I am using this site: coinb.in And what is Txin or N that it also can be called.
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?
0
votes
1answer
184 views

How to detect a race attack and re-spend the already-spent outputs?

My service automatically accepts, processes and sends payments to its users. It connects to bitcoind through its JSON-RPC API and makes use of the raw transactions interface. What is going to happen ...
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 ...
1
vote
1answer
239 views

What is the easiest way to associate an utxo to a specific account?

I'm building a web application that uses bitcoind's accounts to track user balances. My dev env is currently in regtest mode. I am working on calculating the network transaction fee prior to creating ...
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
504 views

Understanding Bitcoin protocol (through practice)

OK, firstly, Ken Sheriff (the guy who mined Bitcoin using pencil and paper) has posted some fantastic Bitcoin articles on his blog. In "Using Bitcoins the Hard Way" he writes (emphasis added): It ...
7
votes
3answers
10k 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 ...
3
votes
1answer
601 views

How to detect a rejected transaction?

If the nodes I connect to don't support the BIP 61 reject message, how do I know that my transaction was eventually rejected by the network (e.g. due to my bugs)? Is there any timeout or whatever ...
2
votes
1answer
147 views

What is the maximum number of multisigaddresses you can create? [duplicate]

I have created a few multisig addresses, and just tried to create a 2 of 3 address, but it returned with the 'AddCScript() failed' error. What is the maximum number of m-sig addresses and where is ...
1
vote
1answer
76 views

Is it possible to create a transaction with 2txin and 2txout?

Is it possible to create a transaction with 2txin and 2txout? If it is possible, then how does one sign this transaction? Or do I have to create two separate transactions? 1txin 1txout and 1txin ...
1
vote
1answer
206 views

Minimum tx amount where amount = fee

What is the absolute minimum amount which when transferred over a tx its value equals the tx's suggested fee? Is it the dust amount of 0.00005430 BTC? How is this value affected when that amount is ...
5
votes
2answers
228 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 ...
2
votes
1answer
401 views

Help me work out a transaction fee

I am having difficulty working out how to work out a transaction fee. I've read the theory, but don't understand how to get the values to put the theory to practice. Can someone please help me work ...
3
votes
1answer
83 views

Tracking outgoing transactions & malleability attack

What is the best way (in terms of security or resources) to track my outgoing transactions through the RPC API? I would like to be able to track them down using their tx id and also to have a ...
2
votes
1answer
362 views

signrawtransaction hex

When calling RPC signrawtransaction it returns a hex-encoded string that contains the raw tx request with its signatures. Is this string: malleable? unique?
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 ...
1
vote
0answers
228 views

wireshark packet analysis missing checksum in version msg

I'm trying to send a raw bitcoin transaction through a raw socket connection in python. To debug I'm using wireshark to sniff the packets. Wireshark figures out that the packet is for Bitcoin and ...
2
votes
1answer
95 views

Is the change address always at the same position in the vout array of a raw transaction?

When using the sendtoaddress command, does the Bitcoin client automatically place the change address at vout array position 0? I would assume so, because bitcoin works through a sequence of procedures....
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 ...
3
votes
1answer
560 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"}) ...
2
votes
1answer
392 views

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 ...
2
votes
2answers
209 views

What is the format of the standard claim script?

With reference to this: https://en.bitcoin.it/wiki/Transactions#Pay-to-PubkeyHash It would seem the claim script is simply the signature consisting of S and R and the public key. However I know at ...
0
votes
1answer
366 views

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 ...
1
vote
1answer
265 views

Bitcoind, Multisig, and the default account “”

I've been attempting to do transactions to and from a multisig address for a couple of days, but I'm finding that my default account "" keeps paying for things, even though I'm explicitly saying other ...
2
votes
1answer
1k views

How to validate raw transactions using bitcoind and/or bitcoin-cli (preferably offline)?

I've been wanting to join in the fun on this Bitcoin transaction contest but while I'm comfortable enough working out the scripts themselves and playing with the web-based tools suggested, as a ...
1
vote
1answer
163 views

Cost of single vs multiple outputs to the same address

A transaction can have multiple outputs pointing to the same address however it's not clear to me if and how this affects the transaction's priority and cost? As an example, let's consider these two ...
1
vote
2answers
63 views

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 ...
6
votes
2answers
161 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 ...
1
vote
1answer
104 views

Bitcoind need blockchain to sign transaction

I'm trying to sign a transaction using bitcoind via rpc. Here is the request I send. signrawtransaction "...
1
vote
1answer
207 views

Correlated raw transactions' input/output chaining

So I'm in the process of implementing a BTC-based payment module where for every transaction to a non-wallet account a fraction of the amount will end up to a charity account in a external wallet not ...
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 ...
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 ...
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 ...
0
votes
1answer
1k views

Can anyone explain the differences in behavior of getrawtransaction and gettransaction in RPC?

I right clicked the transaction history in the QT client and pasted in the TxID below. Q1 In the following test, can anyone explain what the purpose of the suffix -000 is and what it's used for? ...
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 ...
1
vote
0answers
1k views
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 (...
6
votes
1answer
513 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-...
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> ...
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 ...