Questions tagged [createrawtransaction]

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

Filter by
Sorted by
Tagged with
-1 votes
1 answer
34 views

EasyBitcoin-PHP not working for Rawtransactions RPCs

I've been using easybitcoin to access "Wallet RPCs" as defined here - https://developer.bitcoin.org/reference/rpc/index.html#rawtransactions-rpcs But it doesn't seem to work with "...
mista phi's user avatar
0 votes
1 answer
86 views

Transaction created using `bitcoin-cli` failed to decode

I am creating a rawtransaction using bitcoin-cli. After I create my transaction using 'bitcoin-cli createrawtransaction ' this returns and HEX of: ...
Gencehan ARPAÇAY's user avatar
0 votes
0 answers
49 views

How do I create an p2pkh raw transaction using the latest Bitcoin core version? Any help? Thanks

Like the title says I need of help here, how can I create an p2pkh raw transaction using the latest version of Bitcoin core is it even possible? What are the required fields do I need to use the ...
davonte lawrence's user avatar
2 votes
1 answer
73 views

json parsing error with createrawtransaction with bitcoin-cli in regtest

I have been trying to use getrawtransaction to work with raw transactions in regtest and I have not been able to get it to parse correctly. the general format I am using is this. I am running this ...
lookingforhelp's user avatar
2 votes
2 answers
363 views

How to recover and sweep P2PK coins

In an effort to recover some old dust, I've been working on a sweep script to be used on a bunch of old private keys with a little BTC locked inside multiple p2pk utxos. First I tried using python's ...
smk's user avatar
  • 29
6 votes
1 answer
218 views

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 ...
karask's user avatar
  • 2,530
1 vote
1 answer
65 views

can u guys help me to check the raw_tx that i've made?

so i just learnt how to created a raw coinbase transaction, and i need to confirm if the format is correct, can you guys help me with this? : this is just an example it doesnt exists in the blockchain ...
just.callme.client's user avatar
0 votes
1 answer
239 views

Bitcoin RPC createrawtransaction parse error

I try to create a raw transaction using the Bitcoin Core RPC through curl. Python script: import requests data = '{"jsonrpc":"2.0","id":"curltext","method&...
Scripter's user avatar
  • 135
0 votes
1 answer
186 views

What "Data" should be inserted into the argument field of the "createrawtransaction" rpc command

This resource states that "data": "hex",(string, required) A key-value pair. The key must be "data", the value is hex-encoded data. Questions It says that the field is &...
AncientTides's user avatar
0 votes
1 answer
234 views

What exactly is the data required when creating a coinbase transaction? How do I insert the blocks height into the coinbase transaction?

Still trying to write a function to properly create a coinbase transaction and the only thing I can't seem to get a hold on is..... How to get the block height provided by getblocktemplate into the ...
AncientTides's user avatar
1 vote
1 answer
197 views

convert from public address format to raw transaction format

So I am trying to full understand how to decode transactions. In the dev docs it discusses a raw transaction: https://developer.bitcoin.org/reference/transactions.html in the paragraph "TxOut: A ...
noone392's user avatar
  • 422
3 votes
1 answer
153 views

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 ...
Kevin Gravell's user avatar
0 votes
1 answer
492 views

Is there a flag to allow creating a transaction with multiple outputs to the same address?

Does bitcoin core have a flag to allow creating a transaction with multiple outputs to the same address?
deezy's user avatar
  • 301
1 vote
2 answers
221 views

Partially Signing multisig rawtransaction returns redeemScript/witnessScript does not match scriptPubKey

I want to partially sign a rawtransactions using bitcoind through RPC but I am really stuck almost at the end of the process when I try to sign my manually created raw transaction and I spent many ...
Kevin Gravell's user avatar
1 vote
1 answer
254 views

How to create bitcoin coin , coinbase transaction?

I know about createrawtransaction '[{"txid":"0000000000000000000000000000000000000000000000000000000000000000","vout":0}]' '{"39jbHRLG6Z2KgXLHR3BWgbccZde1Moo15k"...
tseries's user avatar
  • 205
1 vote
1 answer
630 views

How to create a transaction input from tx id of UTXO?

I'm in the midst of working this github --> https://github.com/karask/python-bitcoin-utils/blob/master/examples/spend_p2sh_transaction.py Sorry as I'm not that good in this. I would like to ask the ...
Jsim's user avatar
  • 43
9 votes
3 answers
1k views

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 ...
Darius's user avatar
  • 789
0 votes
1 answer
449 views

How does `createrawtransaction` and `fundrawtransaction` work with Elements?

I know how to create and fund bitcoin transactions using createrawtransaction and fundrawtransaction methods. I tried to use the same methods in Elements to create a transaction on regtest and I'm a ...
Sosthène's user avatar
  • 623
2 votes
1 answer
337 views

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 ...
Hamita's user avatar
  • 174
3 votes
1 answer
483 views

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(...
M A's user avatar
  • 89
0 votes
1 answer
136 views

bitcoind multisig transaction not shown as multisig transaction / shown as "signed" by 2:3

Seems like there was a change in how multisig transactions are being created. Running a node using bitcoind v0.16.3 and another one using latest bitcoind (v.0.19.0.1). The multisig transaction created ...
t0berius's user avatar
1 vote
1 answer
515 views

How to sign a raw multisig transaction from an external private key

I am creating a 2-of-3 multisig wallet, where the 2 hot keys are external HSM devices. I am using Bcoin to create my transactions. After the transactions are created, I will send the raw transaction ...
madu's user avatar
  • 149
1 vote
1 answer
100 views

How to fill in the subtractFeeFromOuputs field in fundrawtransaction

I am attempting to use fundrawtransaction, but I am a bit confused on how to populate the subtractFeeFromOutputs field... "subtractFeeFromOutputs": [(json array, optional, default=empty array) A ...
Jeffrey L. Roberts's user avatar
1 vote
1 answer
393 views

Calculate Miners Fee before Signing Raw Transaction?

I am attempting to automate the process of sending coins from multiple transactions to a single output and single change address using createrawtransaction I am a bit lost though, because how can I ...
Jeffrey L. Roberts's user avatar
0 votes
0 answers
188 views

Issue while using create transaction API of blockcypher?

I am getting this error "Not enough signatures: 1 for 2 inputs" always while using create transaction API for BTC,LTC,DASH. Before few days ago its was working fine. But Now I am getting Error After ...
Nandni's user avatar
  • 11
1 vote
1 answer
141 views

Create a transaction from a wallet coins (UTXOs) with the bcoin library

I have a multisig setup where the signing is done through external HSM's. I am using Bcoin and its wallet to receive funds. What I am trying to do is to create a transaction and sign it with the HSMs. ...
madu's user avatar
  • 149
0 votes
1 answer
105 views

The nlocktime parameter in createrawtransaction seems not work using Bitcoin Core Wallet GUI

If I add the CLocktime (e.g 20) at the end it always gives: Error: Error parsing JSON:{"12CxqQHzhFxCm2TkGkKHdFFPyUerFXcSte":0.008,"1DBDDvpcHv66LD7sWz1mCitPALW1qfrga7":0.012}, If I delete the ...
yrm23's user avatar
  • 51
1 vote
1 answer
101 views

Open source, how can I view "Transaction Create a new transaction" and "Sign Transaction"?

Not long ago I saw on the site github.com the very first Nakamoto code: https://github.com/livegnik/BitCoin-v0.01-ALPHA Running bitcoin.exe, I did not find the console. If the program is open source,...
Izi Tors's user avatar
1 vote
1 answer
251 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 ...
mocode10's user avatar
  • 135
2 votes
1 answer
1k 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\":\"...
mocode10's user avatar
  • 135
1 vote
1 answer
954 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?
Geremia's user avatar
  • 4,596
0 votes
1 answer
1k 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 ...
Sonic Soul's user avatar
2 votes
0 answers
319 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 ...
Michael's user avatar
  • 135
0 votes
1 answer
199 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 ...
merklexy's user avatar
  • 107
2 votes
1 answer
560 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 ...
pebwindkraft's user avatar
  • 5,076
2 votes
2 answers
475 views

Breaking down a raw transaction:

Complete example: ...
oshirowanen's user avatar
0 votes
1 answer
85 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: ...
oshirowanen's user avatar
0 votes
2 answers
157 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 ...
oshirowanen's user avatar
1 vote
1 answer
2k 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 ...
Tailer's user avatar
  • 3,659
1 vote
1 answer
3k 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 ...
Patrick Mil's user avatar
1 vote
1 answer
463 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 ...
Jesper's user avatar
  • 111
0 votes
1 answer
865 views

How to sign a transaction using multi signature using bitcoind?

I created a multisignature address using bitcoin-cli createmultisig 2 '["...
merklexy's user avatar
  • 107
1 vote
1 answer
84 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] => ...
Tailer's user avatar
  • 3,659
0 votes
1 answer
453 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....
merklexy's user avatar
  • 107
3 votes
1 answer
2k 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: "...
smartmouse's user avatar
3 votes
2 answers
8k 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 ...
Ajit Soman's user avatar
1 vote
2 answers
1k 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 ...
Denis Matafonov's user avatar
0 votes
1 answer
1k 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"...
Thamer Mazzuca Martins's user avatar
0 votes
1 answer
195 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 ...
Tudor Constantin's user avatar
0 votes
3 answers
6k 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":"...
Kleber Mota's user avatar