Questions tagged [signrawtransaction]

A command or procedure call provided by Bitcoin-Core that allows a raw transaction to be signed using keys provided or keys in the wallet.

57 questions
6
votes
1 answer

What exactly is hashed and signed in a segwit transaction

I have an unsigned raw segwit transaction on my regtest…
JBaczuk
  • 7,278
  • 1
  • 11
  • 32
5
votes
1 answer

Signing a raw transaction with multiple inputs

So I am creating a simple P2PKH transaction and after I researched about this found few useful posts and answers here; I was able to successfully spend a a single P2PKH UTXO but it is really getting complicated when I try to spend transaction with…
4
votes
2 answers

How to send bitcoin from an offline Bitcoin Core that doesn't have a synced balance?

I am setting up a cold wallet. How can I generate a signed raw transaction from bitcoin core wallet that controls some bitcoins? PS: I generated the wallet using getnewaddress in console from the bitcoin-qt GUI
4
votes
0 answers

To sign raw transaction with Segwit Address in the TestNet

I am using Bitcoin core 0.14.1 testnet. I created a Segwit address. transfer some coins to this address. Now I want to spend it. I created a raw transaction using console command i.e. createrawtransaction. Now I want to sign it. I tried using usual…
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
0 answers

How to sign bitcoin raw transactions with Python offline

I have a raw bitcoin transaction created using createrawtransaction unsigned_tx =…
3
votes
1 answer

Signrawtransaction is not working on bitcoin core V0.17.1

I am having trouble signing a transaction on bitcoin core since it appears signrawtransaction no longer works. I get the following error message : signrawtransaction is deprecated and will be fully removed in v0.18. To use signrawtransaction in…
jean
  • 31
  • 3
2
votes
1 answer

How to combine separately signed inputs from different users?

With two separate signed raw transactions from two users, how would one go about 'batching' these manually (combining the inputs and outputs into a single transaction)? Is this a viable solution for groups of users attempting to save on fees, or…
2
votes
1 answer

signrawtransaction is not a function on bitcoin core V0.17.1

I'm using npm bitcoin-core ^2.0.0 to get access to my bitcoind (v0.17.1 MAC) My code: let signedRawTx = await btcClient.signRawTransaction(rawTx, [], [privateKey], 'ALL'); I get an error message telling me that signrawtransaction is deprecated, use…
jfjobidon
  • 285
  • 2
  • 9
2
votes
1 answer

How do I sign and send a raw transaction using BitcoinJ?

Transaction transaction = new Transaction(params); // 遍历未花费列表,组装合适的item double sum = 0; String address = null; List unspents = new ArrayList<>(); Map keysMap = new HashMap<>(); for (Unspent utxo :…
Jon Chiang
  • 21
  • 3
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
3 answers

Trying to send bcc with bitcoin-qt but getting "16: mandatory-script-verify-flag-failed" - error

I'm trying to use the method from this reddit link to send a raw transaction to the bcc-network, but keep getting the error: "16: mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)…
2
votes
2 answers

signrawtransaction of a P2SH-P2WPKH spend seems to be broken?

I'm trying to spend a SegWit output on testnet using the Bitcoin core's RPC commands. Without importing the private key into my wallet (i.e. w/o addwitnessaddress). I wonder if anyone had luck spending SegWit outputs this way? Perhaps the…
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
2 answers

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 bitcoinlib, but after creating and signing the…
1
2 3 4