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

Can I use uncompressed public keys in Bitcoin Cash transactions?

It have read that Bitcoin Cash uses BIP 143 to generate the signatures and that BIP 143 does not accept uncompressed public keys. Does that mean that you cannot send a Bitcoin Cash transaction using ...
0
votes
1answer
191 views

How to transfer btc from multiple btc addresses to a single btc address?

I have 3 btc addresses and let's say each btc address has 1 bitcoin. If I want to transfer to my address from 3 btc addresses, I have to create 3 transactions and every time I have to pay a mining fee....
1
vote
2answers
1k views

How to create hex of raw transaction

Below is my response after creating the transaction. How do I create the hex encoded string of raw transaction in PHP. Is there package for it in PHP ? { "tx": { "block_height": -1, ...
1
vote
0answers
76 views

How can I use raw litecoin protocol to connect to nodes?

I am trying to connect to litecoin nodes using raw protocol. I follow Ken Shirriff instructions from this article . My code works perfect with bitcoin, so I just replaced bitcoin nodes connection ...
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: "...
1
vote
1answer
62 views

What are the parts of and how is a raw coin generation transaction made?

Referencing: https://blockchain.info/tx/9b0fc92260312ce44e74ef369f5c66bbb85848f2eddd5a7a1cde251e54ccfdd5 With raw data: ...
0
votes
0answers
269 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
230 views

Unclear on double-hashing previous Transaction when creating a new Transaction

I'm having trouble performing the double-sha256 hash of the previous transaction, Step 3 in this explanation. The previous transaction is: ...
1
vote
1answer
738 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 ...
0
votes
2answers
299 views

Cannot create a raw transaction using bitcoin-ruby

Im using bitcoin-ruby to create a raw transaction then broadcast it through block-cypher. I follow their tutorial # use testnet so you don't accidentally blow your whole money! Bitcoin.network = :...
0
votes
0answers
16 views

Transferring partial BTC between wallets if I know both private keys [duplicate]

Is there a way to transfer/import partial amounts of BTC from one wallet to another off the chain in order to avoid transaction fees? I assume this is how services like Coinbase get around letting you ...
1
vote
1answer
164 views

Unable to broadcast raw transaction

I am a real beginner and am having trouble with signing this P2sh code: ...
2
votes
1answer
705 views

How to decode raw transaction which has 00 in '#TxIn' slot?

These are two raw transactions I got from Testnet, using bitcoind -testnet. ...
1
vote
1answer
1k views

How to broadcast a transaction

I think this question is not only matter of bitcoin but also of every other crypto currency. My question is if I lets say have an app or wallet or website. And I want to send money to certain address,...
1
vote
1answer
327 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
2answers
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
160 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
281 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
847 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
118 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
515 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
727 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
546 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
843 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
325 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
204 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
408 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
544 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
910 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
737 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
63 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
147 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
607 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
582 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
57 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
654 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
566 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
855 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
171 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
215 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
209 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
582 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
454 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
52 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
314 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
1k 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 ...