We’re rewarding the question askers & reputations are being recalculated! Read more.

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

Signing tx with OpenSSL, but fails when sending with bitcoin qt. How to debug?

I try to create a tx with 4 inputs, and sign it via cmdline and openssl on a cold storage machine. Then I want to send it via bitcoin qt (or blockchain.info). Signing with a single input and a single ...
1
vote
0answers
32 views

Is it possible to to create an output in a transaction that has a value of zero? [duplicate]

When you create a transaction, can you create outputs that have values of zero? Or does every output have to have a value greater than zero?
2
votes
1answer
53 views

When does transaction output become usable?

Say, I've generated, signed and sent raw transaction (via JSON-RPC) to the network. The call resulted in a transaction hash. When can I use the output of that transaction: when the transaction will be ...
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] ...
1
vote
2answers
442 views

send btc from specific input without running bitcoind

Is there any third-party API allowing to send Bitcoins using specific transactions as inputs? Back in 2013 I had to run bitcoind myself and build a raw transaction manually. But maybe it's easier now,...
0
votes
1answer
63 views

How likely is it that the structure of a raw transaction will change?

I've written a script that decodes raw transactions, as it's faster than calling the decoderawtransaction RPC. How likely is it the structure of a raw transaction will change in the future?
1
vote
4answers
2k views

Generate and push raw Bitcoin transaction

When I try to push a raw Bitcoin transaction via the blockchain.info API I get the following error message: Script resulted in a non-true stack: [] Transaction should send 0.001 Bitcoins with a 0....
0
votes
1answer
92 views

How can I spend my paper wallet directly?

I am totally new to Bitcoin. Can you tell step by step, how I can spend a paper wallet directly? Or is it necessary to create a software wallet?
2
votes
1answer
801 views

How do you create a transaction from a UTXO in BitcoinJ?

Is there a way to construct and send a transaction in BitcoinJ without a wallet? I just want to build my transaction from a utxo and broadcast it.
1
vote
1answer
117 views

Value of `vout` in vin exceeds number of vout elements. Why?

This is a slightly modified version of a transaction. (privacy reasons) Edit: Sorry, but turns out there is another tx besides this tx: "txid": "...
0
votes
1answer
165 views

“Unable to find all tx inputs”

I've created a transaction using "bitcoinjs-lib". Here is the hash: ...
1
vote
1answer
1k views

getnewaddress vs. getrawchangeaddress

I'm using the Golang btcsuite/btcd library to write a Bitcoin app that creates custom OP_RETURN TXs in the blockchain. I understand Bitcoin at a high-level (proof-of-work consensus, Merkle trees, ...
3
votes
1answer
433 views

How to send money to set of recipients using bitcoinj

I am creating a wallet app using the bitcoinj library. I have a use-case where I need to send bitcoins to multiple recipients in one transaction. Currently, I am creating multiple send requests for ...
1
vote
2answers
115 views

Why are some transactions unavailable in my debug window?

I got a block and asked for the data in its first transaction and that generated an error. The following is from the console tab in the Debug window: 10:52:52 getblock ...
2
votes
1answer
154 views

How to recognize which output is used as input for a new transaction

I want to find out which address's coins will be used in a transaction. I have the txid of a transaction. In vin I see the txid of the input transaction, but how can I know which output of this ...
5
votes
2answers
705 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 ...
2
votes
1answer
2k views

How can I set the transaction fee when creating a transaction through Bitcoin-cli commands?

I want to run the following command via bitcoin-cli: ./bitcoin-cli sendfrom "10302c02147e2948cbejd9a2bd80d9691ef08a6a4d416c2bb602143a4anj06b90e" "32cjBTQkfLBp38ixj7hdjk0cc90VPPnwhQ" 3.04384215 (...
1
vote
2answers
454 views

Manually crafted multisig Tx: non-mandatory-script-verify-flag

I'm trying to broadcast a manually crafted and signed transaction. As far as I can tell, the scripts are correct and the signatures pass BIP 66 validation. However, I keep getting: {'message': '64: ...
7
votes
1answer
5k views

How to decode raw tx hex programmatically

createrawtransaction(...) in testnet returns this hex: ...
0
votes
1answer
69 views

Why is this (testnet) transaction considered invalid?

96c42fd1a6d4a77eef677030483ce79fd3e70100000000ffffffff02b0040000000000001976a914817b776c02b9e0fe60163a170b0d72a194a463ef88ace05a0100000000001976a914817b776c02b9e0fe60163a170b0d72a194a463ef88ac00000000 ...
2
votes
1answer
517 views

Can Bitcore decode a raw tx?

I have a serialised transaction in raw hex format that I want decoded in JavaScript. Can Bitcore do that for me?
2
votes
1answer
754 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
3answers
766 views

What is the best way to monitor non-wallet addresses for new transactions

The main purpose is to have "payment done" confirmation as fast as possible, within some seconds. First option is to implement it myself. Now I have the following implementation based on querying ...
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 ...
2
votes
0answers
387 views

Bitcoin raw transaction hash signing

I was just wondering when you're at the double hashing part of making a transaction do you need to specify the scriptpubsig like: 01000000 01 ...
2
votes
1answer
166 views

Why do web wallets using multi-signature need 1 of N keys?

I've been researching multi-signature transactions and am wondering, as the title says, why a web wallet offering multi-signature transactions (2-of-3, for example) like blockchain.info would need any ...
2
votes
1answer
910 views

64: non-mandatory-script-verify-flag (No error) (-26)

What does this error mean? I've manually constructed a transaction, and I get this error when I try to insert it in to the network.
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 ...
-1
votes
1answer
155 views

trying to transfer my bitcoins from my unsynced bitcoin qt wallet to new online wallet by createrawtransaction but it comes with error code [closed]

it comes up with error Error:error parsing JSON: [{txid:my txid,vout:my transaction number},...] so whats this mean and what can i do to correct it please? im not very it inclined cheers :-)
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 ...
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 ...
-2
votes
2answers
125 views

Can Bitcoin Core be used to create a raw transaction for CLAM altcoin?

Clam is an altcoin that issued that altcoin to the owner of the private key of each and every Bitcoin address that had funds (0.0001 or more) on May 12, 2014. I don't want to install the Clam client. ...
0
votes
1answer
224 views

How does the scriptPubKey for this test vector work?

The scriptPubKey for cbebc4da731e8995fe97f6fadcd731b36ad40e5ecb31e38e904f6e5982fa09f7 is: ...
1
vote
2answers
577 views

Quick way to find transaction

I am running bitcoinqt on my server. Each second, I use a .NET API to query the daemon to find new transactions which contain needed addresses. (The addresses are not from the local wallet.) So, ...
1
vote
1answer
698 views

How to return change (utxo - inputs) to output address?

I've been learning to create bitcoin transactions for 3 weeks now, but keep paying the entire unspent_outputs - inputs as fees, even if the transacted amount was like 1/100 th of the outputs. How do I ...
2
votes
1answer
2k views

Are there any Python modules that decode raw transaction data?

I'm currently doing RPC calls to bitcoin-cli within python to get raw block data: bitcoin-cli getblock BLOCKHASH False I've already written a function that cuts off the block header and splits the ...
2
votes
1answer
400 views

sendrawtransaction without downloading blockchain

Is it possible to use sendrawtransaction without downloading the blockchain? Or will bitcoind reject the broadcast since it can't validate the inputs? If the client does block it by default, is there ...
2
votes
1answer
1k views

Bitcore.io Create a raw tx hex (signed) to push to the blockchain

I am trying to push a raw transaction to blockr.io testnet using bitcore (current latest version 0.12.9) for node.js https://github.com/bitpay/bitcore I have constructed my transaction like so: var ...
1
vote
1answer
498 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 ...
5
votes
1answer
933 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: ...
2
votes
2answers
908 views

How to check if raw transaction is signed?

I have a raw transaction and would like to check if signed or not. How can I do this. I tried using bitcoind and verifying a transaction from be blockchain but it says its not complete. $ bitcoin-...
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/...
2
votes
1answer
560 views

How to sign a transaction using BitcoinJ

I am having problem signing the transaction using BitcoinJ library without the Wallet instance, I only have the Transaction class instance and the ECKey in order to sign the transaction. Is there a ...
1
vote
2answers
648 views

How to get the input address from an txid with bitcoind

I want to get the input addresses of a transaction with a known id. If I use getrawtransaction I get something like: "vin" : [ { "txid" : "...
0
votes
1answer
352 views

Trying to find the raw genesis transaction length

I see that many different altcoins have different lengths for the initial genesis tx. How would I go about finding the length of the initial genesis tx? I saw another answer but I have no need of ...
2
votes
1answer
154 views

Is it possible to change an output of a partially signed transaction?

In step 5 of the procedure described in https://en.bitcoin.it/wiki/Smart_Property#Theory, the buyer creates a partially signed transaction. Will the seller be able to change an output prior to signing ...
2
votes
0answers
567 views

on testnet: 'transaction already in blockchain'.. but it isn't

At least I don't think so! I'm trying to create a wallet infrastructure to minimise fees, and so I've been experimenting with raw transactions. I'm quite clueless but fortunately have enough sense to ...
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 ...