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

Can you specify a date in the future for the Bitcoin transaction

I just came across this Transaction: https://blockchain.info/tx/cf77c2b888916c0debfb801d3d129ba5b7f6445e0dd6db9238b313b51369024c Received Time: 2063-08-04 05:00:33 Raw Transaction: https://...
3
votes
1answer
2k views

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

how to spend an utxo when the corresponding scriptsig is longer than 256 bytes?

I am trying to spend an utxo sent to a p2sh address. The scriptsig (including the redeem script) is longer than 256 bytes. When the transaction is serialized there is only one byte to indicate the ...
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 ...
2
votes
1answer
249 views

Python testnet raw transaction creation error

Based on the script from github. I tried to construct a valid testnet transaction. I had to do some modifications to the script so here is the current code. import struct import base58 import hashlib ...
0
votes
2answers
728 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
108 views

Transaction built manually has negative amount

I want to build a transaction with multiple inputs and one output. I'm using json-rpc, call createrawtransaction and then signrawtransaction. After calling signrawtransaction I get back a txid, but ...
1
vote
1answer
453 views

NBitcoin: Get address out of raw block stream

OK, I am sure that this is a really dumb, rookie question, so sorry in advance... I am trying to read through the blockchain and display the receiving address(es) for all transactions in the chain. (...
1
vote
2answers
663 views

signrawtransaction of a P2SH-P2WPKH spend seems to be broken?

I'm trying to spend a SegWit output on testnet using the Bitcoin core's RPC commands. Without importing the private key into my wallet (i.e. w/o addwitnessaddress). I wonder if anyone had luck ...
1
vote
1answer
507 views

What does allowhighfees in sendrawtransaction actually does?

lets say. i have created a raw transaction with inputs = outputs aka setting 0 fees. so when i do bitcoin-cli sendrawtransaction <signed_hex> 1 1 is for allowhighfees what it actually ...
0
votes
2answers
802 views

Send bitcoin raw transaction to network via webserver?

What is the best way to send a raw transaction via a webserver, what role does a RPC play in this? Is a bitcoin-RPC used to send/transmit a raw transaction to the bitcoin network? Can the process of ...
1
vote
1answer
304 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 ...
1
vote
2answers
197 views

What are the unnamed parts of the segwit/bitcoin cash raw tx shown and how do I get them as shown?

There are three parts to this. Shown here. Part 1. This string is found at the final form of the raw tx: ...
0
votes
1answer
368 views

What is the “sequence” and its details as referenced for the segwit application?

On the segwit page there is a reference that the "feffffff" is the "sequence". What does the "sequence" represent in relation to what? Does it always have to be "feffffff"? What happens if it's "...
1
vote
1answer
505 views

Submitted a raw tx that was already on the blockchain, to test it. I got 'missing inputs' instead of 'already exists'. Why?

In an attempt to more fully understand raw transactions etc, I went to look at tx 518c41d5e59114f6a23383afbe95f02cdd09cb50cabd8390bdd9162a890435b3 in its raw form being: ...
2
votes
1answer
840 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 (...
0
votes
2answers
666 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 ...
0
votes
1answer
62 views

Why is such a large int (uint32) used for the transaction version field

The transaction version field is a unsigned 32 bit integer. [Source Code] [Docs] This will allow for 0 through 4,294,967,295 (2^32 − 1) versions. So far, only versions 0, 1, 2 have been used. It ...
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
137 views

In manual raw tx creation, how do you specify the amount of the bitcoin to be sent?

According to this You can specify the amount of bitcoin with an (apparently) 16 alphanumeric hex representation. It is stated you must specify the bitcoin you want to send in units of Satoshi. ...
2
votes
1answer
551 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 ...
10
votes
3answers
489 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 ...
0
votes
1answer
1k views

How to create raw transactions with custom fees?

I have a website where users can send and withdraw funds using Bitcoin. I would like to give them the possibility to use different fees (low, medium and high) instead of a fixed fee or to let bitcoind ...
0
votes
1answer
56 views

Transactions tree not list?

I try to understand how Bitcoin handles change or the combination of multiple transactions to provide sufficient funds for a given price. Bitcoin transactions contain an array for the input ...
1
vote
1answer
600 views

creating OP_RETURN script on bitcoin core console. i.e. with the help of commands

I want to create a OP_RETURN script on bitcoin core console. Not using GUI, i.e. available on proofofexistence.com , Just as we create raw transaction and then sign it and then broadcast it, I am ...
3
votes
1answer
536 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?
0
votes
1answer
789 views

Unspendable outputs vs Black Hole address

On the Script page of the Bitcoin Wiki, in the "Provably Unspendable/Prunable Outputs" section, it gives an example of a script which would make that output of the transaction unspendable. In the ...
1
vote
1answer
25 views

Any stress-tests done after 2015?

I was considering running a small test using Bitcoin transactions when I ran into the stress-test / DDOS that Coinwallet.eu conducted in July 2015 (and maybe September too, I am not really sure) where ...
1
vote
1answer
168 views

Can arbitrary transactions be aggregated?

Is it possible to take multiple transactions in the form: [A->X] , [B->Y] , [C->Z], where A,B,C,X,Y,Z are arbitrary, unrelated Bitcoin users/wallets and aggregate them to a single transaction: [...
1
vote
0answers
208 views

transacton fees for raw transactions

I'm building a merchant system for a client that will accept payments in bitcoin and send all coins to a cold storage wallet once a week (or month). The system is using a deterministic wallet to ...
3
votes
1answer
187 views

ZMQ Raw TX doesn't include all transactions

I'm running a Bitcore.io node and using their ZMQ hook but I've noticed that on livenet not all transactions are actually being sent. I've been comparing it to https://blockchain.info/unconfirmed-...
0
votes
1answer
531 views

Why getrawtransaction returns an HTTP STATUS CODE 500 for not found transactions?

As far as I understand, if you supply a made up TxID to the getrawtransaction RPC API, it should return an error code that suggests the record is not found (i.e. 404 HTTP STATUS CODE?). However, in ...
1
vote
1answer
438 views

ScriptSig field during P2PKH transaction signature

In P2PKH transactions, the content after signing the transaction contains: <signature(with hash_flag)><public_key>. However, since the signature can't sign itself, during the signature ...
1
vote
0answers
51 views

What is the expected rate of transactions per second that I should expect from Bitcoin's ZMQ service?

I'm currently subscribed to the hashtx topic for Bitcoin's ZMQ service. I am noticing that I used to get an average of 3 transactions/second, but lately, I've been getting an average of 0.1 ...
0
votes
1answer
298 views

Is it possible to configure the bitcoin daemon to only broadcast unconfirmed transactions with ZeroMQ?

Currently, I am running a full node bitcoin daemon configured to publish hash transactions via ZeroMQ (ZMQ). I've been noticing that, as a subscriber to the hashtx topic, there are both confirmed and ...
3
votes
1answer
939 views

Building Signed Bitcoin Transaction in Java

I have been attempting to build my own raw transaction generator in Java which I can then broadcast on the testnet network. The problem is when I attempt to broadcast the transaction it says there is ...
3
votes
1answer
321 views

What happened to the “time” (and blocktime) field of raw transactions?

I have been calling the HTTP method getrawtransaction for a while now to retrieve raw transactions. It used to be, until recently, that I would get the time field with every transaction. However, in ...
2
votes
1answer
3k views

How to correctly sign a transaction? Error: 64: scriptsig-not-pushonly

I sent a transaction with far too low fee and it's stuck in mempool. I'm trying to do a double-spend with a higher fee without any luck. My wallet: 15Zz2KP5iA7oVarmtmBvb9ZHUmQaSFL9M8 Unconfirmed ...
1
vote
1answer
252 views

Duplicate addresses in transaction possible?

I am making a bitcoin laravel package. I have a table with all transactions. The txid and the address are unique together. So it is possible to have only one column with the same txid and address. ...
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 ...
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, ...
2
votes
0answers
29 views

How do I get the addresses of input transactions using bitcoin-cli? [duplicate]

I noticed that the bitcoin-cli getrawtransaction does not show the addresses of input transactions. For example, I execute the following command. bitcoin-cli getrawtransaction ...
1
vote
1answer
529 views

Bitcoin testnet3: unable to push/publish raw transaction: how to verify validity of transaction?

I have created a raw transaction and am now trying to push the hex format into testnet3. I have used following two ways and both are giving me two different errors, first one: curl -d '{"hex":"...
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 ...
1
vote
0answers
22 views

How can I tell what the latest version is which can conduct a transaction?

In my planned setup I have two machines: a connected machine (HOT) and a non-connected machine (COLD). My plan, in the event that I need to send bitcoins, is that I will: formulate desired ...
1
vote
1answer
71 views

Complex Transaction Signing?

I am trying to recreate this complex transaction in my own project, but it seems my scriptSigs are off. My guess is that I am assembling the rawTX incorrectly, and my best explanation would probably ...
0
votes
1answer
677 views

Create Multiple Output transactions with Bitcoin Core

I am new to multiple output transactions with bitcoind and I want to learn how to implement them. Let's say I want to create 2-3 addresses and send 1 btc to the generated addresses. If I want to ...
1
vote
3answers
509 views

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

GetRawTransaction not returning time

I am trying to write a quick blockchain explorer so that I can lookup transactions on my own server rather than using a 3rd party service - consider this an exercise more than a production service. I ...
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 ...