Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [signrawtransaction]

The tag has no usage guidance.

0
votes
0answers
21 views

How does transaction authentication between buyer and seller look for?

I am new to cryptography and would like to understand how a digital signature works between a buyer and a Bitcoin seller. How does transaction authentication between buyer and seller look for? Please ...
1
vote
2answers
48 views

Could not sign Transaction with SignRawTransactionWithKey through the RPC (RegTest)

I am able to sign following transaction with Complete=true result, but when trying to decode signed transaction, it returns error "TX decode failed" both from DecodeRawTransaction and ...
1
vote
1answer
31 views

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 ...
1
vote
1answer
37 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
47 views

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 ...
0
votes
1answer
41 views

Creating a raw bitcoin transaction and signing it with the private key using php and javascript

I have a full bitcoin core node setup and would like to use it to just "broadcast" my signed transactions. But what is required to make a raw transaction using PHP and Javascript? The variables I have ...
3
votes
1answer
139 views

What exactly is hashed and signed in a segwit transaction

I have an unsigned raw segwit transaction on my regtest network: ...
0
votes
1answer
90 views

Sign Bitcoin transaction with several inputs using bitcoinj. Broadcasting of transaction failed

Good day! I'm working with low level API to make tx and sign it offline. But after all preparations I try to broadcast it and than i get an error from network: 16: mandatory-script-verify-flag-...
1
vote
2answers
51 views

Why are my Signature Scripts Different from my professors?

bob_addr = "1NWzVg38ggPoVGAG2VWt6ktdWMaV6S1pJk"#"1FMb8Jnn1jSh7yjDFfonC8xCCH3ittoEzB" bob_hashed_pubkey = base58check.b58decode(bob_addr)[1:] bob2_hashed_pubkey = b'\xec\x06\xb2\xbf\x18\xc8\x97\x06\...
1
vote
0answers
121 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
96 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
141 views

BitcoinLib SignRawTransaction JSON-RPC returns false when using private key

This is a repost of (JSON-RPC signrawtransaction returns false when using private keys) but I could not comment because of my reputation (new user). I've been using BitcoinLib via Litecoin Testnet ...
0
votes
0answers
114 views

How to spend nonstandard transaction output

I play around with transactions and testnet and created (not broadcasted yet) transaction with the following scriptPubKey: "256 OP_CHECKSEQUENCEVERIFY OP_DROP OP_DUP OP_HASH160 <pkh> ...
1
vote
1answer
182 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
308 views

How to sign a transaction using multi signature using bitcoind?

I created a multisignature address using bitcoin-cli createmultisig 2 '["...
1
vote
0answers
49 views

Using blockcypher BitcoinJs at clientside is secure or not?

I am trying to create new transaction using bitcoinjs at client side. Is it a secure way to create a transaction from Client side, which includes curl call. Scenario, if I start from creating the new ...
0
votes
1answer
257 views

What do I need to sign to produce a scriptSig signature that consumes a multisig UTXO?

I am trying to figure out how to produce a valid signed transaction to consume BTC from a multisig address. 1) First let's look into producing a signature for an UTXO associated to a regular address: ...
1
vote
1answer
432 views

Trying rawtransaction BCC/BCH with failed CHECK(MULTI)SIG. What is wrong?

I was able on Bitcoin cash testnet to receive 1000.000 satoshis to address: miZHp1pJC9iTLQXeDa1VJVkCnfUkG2aMzj Receiving TX = outpoint in new TX https://www.blocktrail.com/tBCC/tx/...
1
vote
2answers
324 views

Do i need to sign each input in a raw transaction?

I've been reading up about raw transactions on bitcoin.org and there are two examples Simple and Complex. What I can't tell from the information provided is if it necessary to sign each of the inputs ...
0
votes
2answers
544 views

Sign transaction with multiple inputs using bitcoinj/peercoinj libraries

Good day for everyone! I have some troubles with adding signed Input to the transaction. Currently, I'm working with altCoin (fork peercoin) currency. I'm trying build the transaction in the ...
0
votes
1answer
104 views

can someone help me redeem a raw transaciton on Litecoin? looking to create new raw transaction and redeem with public key

I recently have been trying to understand the inner workings of bitcoin and I completely understand all the steps in this guide: How to redeem a basic Tx? I was wondering if anyone could help me to ...
0
votes
1answer
93 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
0answers
205 views

Can't sign a transaction correctly using bitcoinJ

I'm having a lot of trouble with creating correct raw transaction for sending money using bitcoinJ library without any wallets. I am using Electrum Protocol for getting any information about ...
2
votes
3answers
376 views

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 ...
1
vote
2answers
553 views

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 ...
3
votes
0answers
571 views

To sign raw transaction in Segwit

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. ...
1
vote
3answers
2k 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 ...