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…
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…
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" :…
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…
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 =…
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…
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…
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…
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…
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}]"…
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…
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…
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…
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…