Questions tagged [createrawtransaction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
60 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
0answers
13 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
1answer
24 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
0answers
67 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
1answer
52 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
0answers
65 views

How to use bitcoind-rpc.js to create raw transaction?

I am using bitcoind-rpc in javascript but i couldn't use the function/api that require 2 or more arguments. For example, what is the proper format of the arguments needed for createRawTransactions? ...
0
votes
1answer
33 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
1answer
70 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
1answer
78 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
1answer
253 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
269 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
496 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
190 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
126 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
290 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
322 views

Breaking down a raw transaction:

Complete example: ...
0
votes
1answer
62 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
41 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
462 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
421 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
1answer
257 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
626 views

How to sign a transaction using multi signature using bitcoind?

I created a multisignature address using bitcoin-cli createmultisig 2 '["...
0
votes
1answer
57 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
170 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
1answer
1k 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
5k 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
644 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
764 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
112 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
2answers
4k 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
340 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 ...
2
votes
3answers
3k 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 ...
3
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
738 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
652 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
450 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
433 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
525 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. ...