Questions tagged [createrawtransaction]
An RPC command in Bitcoin-Core which creates a transaction spending the given inputs and creating new outputs.
58
questions
0
votes
1
answer
61
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:
...
0
votes
0
answers
33
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 ...
2
votes
1
answer
40
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 ...
2
votes
2
answers
199
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 ...
5
votes
1
answer
127
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 ...
1
vote
1
answer
63
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 ...
0
votes
1
answer
186
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&...
0
votes
1
answer
160
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 &...
0
votes
1
answer
197
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 ...
1
vote
1
answer
156
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 ...
3
votes
1
answer
142
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 ...
0
votes
1
answer
481
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?
1
vote
2
answers
213
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 ...
1
vote
1
answer
227
views
How to create bitcoin coin , coinbase transaction?
I know about
createrawtransaction '[{"txid":"0000000000000000000000000000000000000000000000000000000000000000","vout":0}]' '{"39jbHRLG6Z2KgXLHR3BWgbccZde1Moo15k"...
1
vote
1
answer
541
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 ...
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 ...
0
votes
1
answer
419
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 ...
2
votes
1
answer
278
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 ...
3
votes
1
answer
454
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(...
0
votes
1
answer
132
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 ...
1
vote
1
answer
507
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 ...
1
vote
1
answer
92
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 ...
1
vote
1
answer
353
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 ...
0
votes
0
answers
179
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 ...
1
vote
1
answer
129
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.
...
0
votes
1
answer
98
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 ...
1
vote
1
answer
99
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,...
1
vote
1
answer
232
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 ...
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\":\"...
1
vote
1
answer
899
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
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 ...
2
votes
0
answers
316
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
1
answer
194
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 ...
2
votes
1
answer
533
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 ...
2
votes
2
answers
469
views
Breaking down a raw transaction:
Complete example:
...
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:
...
0
votes
2
answers
138
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
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
...
0
votes
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 ...
1
vote
1
answer
456
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
1
answer
862
views
How to sign a transaction using multi signature using bitcoind?
I created a multisignature address using
bitcoin-cli createmultisig 2 '["...
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] => ...
0
votes
1
answer
444
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....
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: "...
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 ...
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 ...
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"...
0
votes
1
answer
192
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
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":"...
0
votes
1
answer
675
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?