Questions tagged [createrawtransaction]

An RPC command in Bitcoin-Core which creates a transaction spending the given inputs and creating new outputs.

See https://developer.bitcoin.org/reference/rpc/createrawtransaction.html

58 questions
9
votes
3 answers

What's the most efficient way to create a raw transaction with a specific fee rate?

There seems to be a chicken and egg problem when it comes to creating a transaction that has a specific fee rate (sat/kW). In order to set a specific fee rate, you need to know what the total weight of a transaction will be. But in order to…
5
votes
1 answer

How to disable RBF in Bitcoin Core?

I am creating a transaction with Bitcoin Core (v24.0.1) and it has RBF enabled (sequence: 4294967293) by default. I am trying to disable RBF by adding walletrbf=0 and mempoolfullrbf=0 to bitcoin.conf but it does not seem to make any difference to…
karask
  • 2,405
  • 1
  • 9
  • 19
4
votes
2 answers

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 createrawtransaction '[{ "txid" :…
3
votes
1 answer

Can't send raw transaction Bitcoin Core 0.19.1 - non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation)

I wanted to send a raw testnet transaction and I was doing it like in the bitcoin documentation, but I still get this error: non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation) (code 64) (code -26). What am…
3
votes
1 answer

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: "http://localhost:3128"}); const Btc =…
3
votes
2 answers

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 bitcoin core. I have tried this command: bitcoin-cli…
3
votes
2 answers

Is there a way to use a webservice for `createrawtransaction`?

createrawtransaction is a bitcoin-cli command that generates a raw transaction given one or more transaction ids and a list of Outputs, which are the destination amounts that will receive the funds. AFAIK, the raw transaction is only based on the…
Adam Matan
  • 619
  • 7
  • 19
3
votes
1 answer

Function combinerawtransaction is not working

I have multiple partially signed transactions that I want to combine into one transaction. All those transactions were signed using the same key so it should be possible to combine all those partial signed into one combined transaction that can be…
2
votes
1 answer

How to build coinbase transaction from bitcoin core?

I am coding a program that connects to bitcoin-qt as local server. For building the blockheader i need the merkleroot, to build the merkle root, i need the coinbase transaction (which is not provided when connecting directly to bitcoin-qt) i…
2
votes
1 answer

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\":\"b0d6607323d5dadcd67dd1b5b6d6e5f08b70c45d187c8cf17ebfa00f9c0fb65e\",\"vout\":1}]"…
mocode10
  • 135
  • 4
2
votes
0 answers

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 keys which I have generated from the 3 priv Keys…
2
votes
1 answer

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 a simple if/else/endif statement, not from a…
pebwindkraft
  • 5,086
  • 2
  • 13
  • 34
2
votes
2 answers
2
votes
3 answers

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 is signing a raw transaction that you created with…
Dave Scotese
  • 793
  • 5
  • 19
2
votes
1 answer

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 the transaction? But what do I have to use as the…
Jan Wytze
  • 299
  • 1
  • 10
1
2 3 4