Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [createrawtransaction]

The tag has no usage guidance.

0
votes
1answer
20 views

Bitcoin-cli how to createrawtransaction without spending entire input?

Is there any possible way to create a raw transaction using Bitcoin-cli createrawtransaction API that doesn't require spending the entire input? What I'm doing now is consuming that entire input ...
1
vote
1answer
69 views

Bitcoin-cli createrawtransaction with 3 outputs example

Is this possible to do? I am trying to create a transaction with 1 input that will have 3 outputs. I tried: bitcoin-cli createrawtransaction "[{\"txid\":\"...
1
vote
1answer
86 views

Is there a way to create coinbase transactions with an RPC command?

Is there a way to create coinbase transactions with an RPC command?
0
votes
1answer
208 views

bitcoin rpc api createrawtransaction with python returns -3: Expected type array, got object

experimenting with JSON RPC API using bitcoinrpc.authproxy for python. so far it works in all instances accept when i try to create a raw transaction. somewhere along the way im passing parameters in ...
1
vote
0answers
117 views

Multisig signrawtransaction fails

I have 3 private keys (a,b,c) which belong to an address (2 of 3) from which I want to spend funds using RPC commands. I´ve started with generating the redeemScript using createmultisig() and the pub ...
0
votes
1answer
90 views

Error in creating bitcoin raw transaction

I am creating a raw transaction to send amount from from_address to to_address. While sending a transaction I got an error. I posted the detailed process of creating a raw transaction. Could anyone ...
1
vote
1answer
189 views

bitcoin-cli createrawtransaction and purpose of “scriptPubKey”?

I am playing with P2SH on regtest and try to understand the logic of creating and signing tx with bitcoin daemon. I am on version 0.15.1, and try to create a tx. The used scriptPubKey results from ...
1
vote
2answers
214 views
0
votes
1answer
35 views

Why do I get 5 bytes worth of 0x00 hex values in both outputs?

From the hex generated by the createrawtransaction command, I understand that the following is the output value: ...
0
votes
2answers
34 views

Breaking down the hex value for output 1

Within the hex generated by createrawtransaction, I am trying to understand the output 1 hex. The output 1 hex I have is: 76a914ab68025513c3dbd2f7b92a94e0581f5d50f654e788ac Spacing out the ...
1
vote
1answer
117 views

64: non-mandatory-script-verify-flag while broadcasting P2WPKH Bech32 with specific inputs

Note: This happens with specific input, even though I've used the same code for other inputs and it works. I have created a raw transaction using the following unspent: Array ( [0] => Array ...
0
votes
1answer
226 views

bad-txns-nonstandard-inputs error after sendrawtransaction

I smashed my head over the table trying to send raw transaction and every time get the same error bad-txns-nonstandard-inputs. So, here is what I do: Get unspent transactions bitcoin-cli ...
0
votes
0answers
99 views

Verify user public key by signing raw transaction with private key

I have to verify that user who enters public key of his address verify his address by signing a neutral raw transaction which won't be broadcasted. Don't know which transaction to use to create a new ...
1
vote
1answer
171 views

When and where to add extra information when signing P2SH raw transaction?

This post is quite long so in summary: I'm wondering where I can add extra information when signing a raw transaction (in this case a cleartext of a digest). I'm also wondering if Missing inputs (code ...
0
votes
1answer
267 views

How to sign a transaction using multi signature using bitcoind?

I created a multisignature address using bitcoin-cli createmultisig 2 '["...
0
votes
1answer
40 views

what does this error mean “Script did not clean its stack” while signing segwit transactions

I'm trying to sign raw transaction on Bitcoin fork (Bitcoin-ABC 0.16.2) but I get Script did not clean its stack [args] => Array ( [RAW] => ...
0
votes
1answer
93 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....
2
votes
1answer
999 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: "...
2
votes
2answers
2k views

Create a raw transaction and broadcast it to blockchain using bitcoin core

I have a address- n3xYQtxvVwpBPSbgGsGRdMWz1YTUjakiMV, amount that i want to send-1 BTC and i have a private key. How can i create a raw transaction using it and broadcast it to blockchain using ...
1
vote
2answers
421 views

How to send bitcoins with commission extracted from payment in PHP or bitcoind

First, I have simple problem. I want to send customer some bitcoins, but I dont want to pay fees for him. I'd like to substruct fees from payment, so all commissions would be payed by customer. I ...
0
votes
1answer
542 views

createrawtransaction and fundrawtransaction

I use createrawtransaction for create a rawtransaction with [] "zero inputs" and one output. I use fundrawtransaction for populate rawtrasaction with inputs. {"method":"createrawtransaction","params"...
0
votes
1answer
87 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 ...
0
votes
1answer
3k views

Unable to create raw transaction with json-rpc command

I am trying create a coinbase transaction with the command: {"jsonrpc": "1.0", "id":"jsonrpc", "method":"createrawtransaction", "params":[{"txid":"...
0
votes
1answer
251 views

Values for txid and vout for create a coinbase transaction

I want create a coinbase transaction to go with a new block minned by my program. I am creating it with the json-rpc command createrawtransaction. What's the values for txid and vout in this case?
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
3answers
2k views

What does “operation not valid with the current stack size” mean?

I'm asking this question to help others who run into the same problem I ran into. The error is, at least sometimes, misleading and might not be accurate. The context in which this error is relevant ...
2
votes
2answers
2k views

bitcoin-cli commands like createrawtransaction not working with json on command line

I am trying to create raw transaction using the createrawtransaction api on testnet using the Windows7 command line. I always get an "error parsing JSON": C:\Users\amjad>bitcoin-cli -testnet ...
0
votes
1answer
607 views

How to estimate mining fee for raw transaction?

In our application we are generating a trasaction hex using the createrawtransaction call to "handcraft" a transaction. The problem we are facing is that we would like to estimate the mining fee for ...
2
votes
1answer
558 views

Create raw transaction what txid

I want to check for every transaction if there is enough balance to pay it(including fee). I found this question: Is there a way to know the Bitcoin Network transaction fee BEFORE actually submitting ...
1
vote
2answers
337 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,...
2
votes
0answers
358 views

vout value in createrawtransaction

I have been following the Bitcoin Core tutorial on creating a simple raw transaction from an offline computer using the CLI. The part on createrawtransaction indicates that the raw transaction should ...
2
votes
1answer
341 views

createrawtransaction online

createrawtransaction is a bitcoin-cli command that generates a raw transaction given one ore more transaction ids and a list of Outputs, which are the destination amounts that will receive the funds. ...