Questions tagged [raw-transaction]

This tag should be used for questions related to raw transactions, bitcoin transactions that have been serialized for network transmission.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Creating Witness Signature: non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation)

So I am trying to do my own witness signatures as described in bip143. I have code that correctly verifies the example signature, so I thought I had a hold of the basic signing and verification. I ...
0
votes
1answer
29 views

When generating witness for bip143, how do you choose WHAT outpoint to use?

in bip 143 for creating a witness signature it describes what needs to be serialized/signed. One thing that the doc seems to be missing is how to determine WHICH outpoint to use. So in these ...
1
vote
1answer
24 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 ...
1
vote
1answer
58 views

signed raw transaction does not conform?

I have become fairly familiar with constructing raw transaction. One thing I can't understand is after a raw transaction comes back from a signing, it doesn't look like it conforms to the transaction ...
0
votes
0answers
17 views

Need help with (Script failed an OP_EQUALVERIFY operation)

This is a repost of a question which i posted directly on the repository of bitcoinjs-lib, which you can see here I'm getting the following error when trying to push transactions: Err: ...
0
votes
1answer
27 views

Bitcoin core trying to sign a transaction loaded from psbt file, but getting “could not sign any more inputs” error

I am trying to sign a transaction loaded from psbt file, but I'm getting could not sign any more inputs error. I did it successfully on the first try. However I cannot do it any more now. I changed my ...
0
votes
1answer
73 views

What is the difference between signrawtransactionwithwallet vs signrawtransactionwithkey in signing unsigned raw transaction?

I have a bitcoin address generated in bitcoin-core (offline computer) I imported that one address into electrum as a watch-only wallet (online computer) From electrum I created an unsigned transaction ...
1
vote
1answer
23 views

Error validating a transaction with blockcypher

I've created a testnet transaction using blockcypher API (https://api.blockcypher.com/v1/btc/test3/txs/new) and then signed the transaction using the signer (go lang). And then sent signed transaction ...
0
votes
0answers
35 views

Automatically forward bitcoins from address A to Address C At 0 confirmations?

I run a bitcoin full node,at that node i have an Address A. Assuming that Address A receive an Amount from Address B.(i can get UTXO information from blockchain.info API) How can I automaticlly resend ...
3
votes
1answer
55 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
1answer
40 views

How are the unlocking script + locking script executed?

I just wanted to verify the input of transaction 7de75. The related output is index 10 of transaction 00f64. The locking script defined in 76a91 (index 10) is: OP_DUP OP_HASH160 ...
1
vote
2answers
211 views

How to create a signed transaction offline using electrum?

I remember that on Electrum, it used to have a Preview button inside the Send tab. By clicking the Preview button I could export the unsigned transaction, and then sign it. I cannot find this button ...
0
votes
3answers
80 views

Is there a way to create a tx completely offline? Maybe with a script or cli commands?

I mean generating the transaction itself offline, assuming I know in advance how much bitcoin a UTXO has. In other words, without querying the network for the UTXO balance. Then I also need to sign ...
0
votes
1answer
67 views

Why not use address in raw transaction instead of public key bytes

In raw transaction, bitcoin using bytes of the public key, like: 042daa93315eebbe2cb9b5c3505df4c6fb6caca8b756786098567550d4820c09db988fe9997d049d687292f815ccd6e7fb5c1b1a91137999818d17c73d0f80aef9 It ...
1
vote
1answer
23 views

How to deserialize the Transaction Count in a raw block?

In the bitcoin-book, the "Transaction Counter" part of a block is documented as being 1~9 bytes long instead of a fixed size. How is this counter parsed from the raw data?
0
votes
1answer
29 views

What is the meaning of the “spent” attribute of a transaction output?

Looking at blockchain.info/tx/c52b....2b09?format=json, I see this: [{ "spent":true, "spending_outpoints":[ { "tx_index":0, "n":0 ...
0
votes
1answer
43 views

How to use bitcoinj to transfer btc from p2sh-p2wpkh

I wrote the code for transmitting btc from p2sh-p2wpkh based on the information I found, but when I tried to broadcast the original transaction in https://live.blockcypher.com/btc-testnet/pushtx/, an ...
1
vote
0answers
42 views

How do i debug a bitcoin transaction

My main problem is understanding how to convert the response from bitcoin-cli "decoderawtransaction" to the script format i am supposed to put in the debugginng tool. i.e my problem is ...
1
vote
1answer
40 views

How to set a specific fee in satoshis per transaction?

I'm currently working on a personal project which is a small bitcoin exchange website, I've figured out how to create a raw transaction and broadcast it (createrawtransaction -> fundrawtransaction -...
2
votes
1answer
60 views

rust-bitcoin Non-canonical DER signature

I am trying to create a raw transaction spending a P2PKH output using rust-bitcoin, but whenever I am pushing the transaction to the testnet I receive the following error mandatory-script-verify-flag-...
0
votes
1answer
70 views

nLocketime error PUSH TRANSACTION ERROR: 64: NON-FINAL

Created nlocktime with electrum and used the time date feature which is using unix time instead of block height number for the locktime. SO when pushing the raw tx before its time I get code 26 ...
1
vote
1answer
39 views

I encountered Signature is found in scriptCode exception when trying to make a BTC transfer

When I transferred a 0.001 BTC from miBEA6o6nZcaLZebR1dsDv4AMHRwJk1mbi to miV1sbmLM9fptRfWD5o8hs5L6ucUeJzmp5, the following error occurred: mandatory-script-verify-flag-failed (Signature is found in ...
0
votes
1answer
66 views

Ho do I generate the output script of a bitcoin transaction?

When I mean output script I mean the output script from step 11 from this question: Redeeming a raw transaction step by step example required Then the actual output script: 76 a9 14 ...
2
votes
1answer
244 views

How to convert PSBT transaction (base64) to raw/serialized (hex) transaction?

Bitcoin Core's CLI has a converttopsbt command used to convert from raw transaction to PSBT transaction but how is it possible to convert from PSBT transaction to raw transaction using Bitcoin Core (...
0
votes
1answer
58 views

signing multiple input raw transaction - algorithm and sighash types [duplicate]

I have an unsigned raw transaction: ...
0
votes
1answer
45 views

Segwit transaction - Non-canonical DER signature

Error (when sending) error code: -26 error message: 64: non-mandatory-script-verify-flag (Non-canonical DER signature) Transaction ...
0
votes
1answer
49 views

Practical tips for validating raw transactions

I have a protocol that creates a raw signed transaction that is then broadcast to the network. The transaction aims to send X BTC to a single address Z. The transaction is created with the help of ...
1
vote
2answers
54 views

Issues decoding the words to transaction hex

I had asked a question earlier about compressing the transaction hex as it was used in a project that involved sending text messages (160 characters limit per message): Compress transaction hex string ...
0
votes
1answer
42 views

Error: Non-canonical DER signature when attempting to broadcast signed Segwit Transactions

I'm trying to build a native Segwit transaction programmatically, however, whenever I attempt to broadcast the transaction, it returns this error: non-mandatory-script-verify-flag (Non-canonical DER ...
1
vote
1answer
76 views

Transaction Output Order

Suppose I generate a transaction with 5 outputs. Is there a deterministic way to know how the outputs will be ordered on chain (their .n values) or will they simply appear in the order in which I ...
0
votes
2answers
84 views

Unable to createrawtransaction - “Input not found or already spent”

I need help. I have createrawtransaction as per the screenshot but then, unable to signrawtransactionwithkey, I have insert WIF Private Key and it state that "Input not found or already spent&...
0
votes
2answers
91 views

Compress transaction hex string

I realized transaction hex can be very long and you need it for broadcasting a tx using blockstream.info API: https://blockstream.info/testnet/api/tx https://github.com/Blockstream/esplora/blob/...
0
votes
0answers
47 views

How to Post Transaction in Bitcoin Network?

I need help here as it has been almost a week since I've been trying to figure this out. Fyi, I can get my Python Script running using "Mainnet" for Bitcoin Transaction that able to execute ...
2
votes
1answer
37 views

Transaction parsing - Satoshi value

how exactly is the satoshi value in a raw transaction calculated to decimal? Because on blockchain.info, I cannot figure out how they parse the raw transaction from that value to the JSON result. I ...
1
vote
0answers
32 views

Is there an API to create transactions in the Bitcoin blockchain with only a private key?

Is there an API to create transactions in the Bitcoin blockchain with only a private key? I am new to working with the Bitcoin and using its API. So, I have searched the API documentation. And here is ...
0
votes
2answers
70 views

Why is 'script' used in a transaction instead of the output address?

I see transactions contain script for each output, but this "script" seems to be deterministically derived from the address associated with the output. Why does the bitcoin protocol opt for the use ...
1
vote
2answers
1k views

Why raw Bitcoin transaction are in hex format?

Why are Bitcoin raw transactions in hexadecimal format? I am looking for scientific articles / books on this topic and I can't find anything, so my question is: why are they in hexadecimal and can ...
0
votes
1answer
68 views

Bitcoin core - creating transaction from UI without broadcasting it

I would like to use Bitcoin core's wallet UI to create a transaction but instead of broadcasting it I would like to get the underlying raw transaction. Is there a way to do that? I assume that ...
0
votes
1answer
118 views

How to calculate fee in BitcoinJS raw transaction?

I have a transaction with 3 inputs and 2 outputs. 1output is the recipient and the other output is change address. How should I calculate the fee and apply it to output?
0
votes
1answer
556 views

Send bitcoin with bitcoin core without syncing to network

I want to use bitcoin-core just for sending bitcoin from my address to another destination address. i don't need the huge history information of blockchain. In fact, I want to run a light-weight ...
0
votes
1answer
41 views

How do I calculate the sum of transaction inputs?

I am attempting to calculate the mining fee of a transaction, given it's unsigned transaction hex by taking difference between the sum of the inputs and outputs. I also have access to an array of ...
0
votes
1answer
36 views

how to sign a multiple output transaction

currently i m using below code,how to add multiple address to address. let transaction = new bitcore.Transaction() transaction .from(txoSet) .to( ...
0
votes
1answer
52 views

How to spend the change in a BIP32 super account?

I am developing my own wallet in python for which I have already implemented BIP32 and BIP39. According to BIP32 documentation, change should be stored in different addresses as well as payments ...
0
votes
2answers
181 views

Creating a custom transactions

I am currently learning how to create raw transactions. I can already create standard using bitcoin core (0.19.1), but when I wanted to create with custom opcode like this: asm: OP_HASH160 ...
3
votes
1answer
189 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
1answer
244 views

getting public key from any raw transaction - what to take care of?

i need to retrieve public key of transaction sender. now i know there are 03 compressed pubkeys and 04 uncompressed ones. but how is this working with segwit and multisig addresses? can you please ...
0
votes
2answers
88 views

Can I build a raw segwit transaction with no segwit inputs?

I am trying to build a segwit transaction between a regular p2pkh address and a p2sh 2-of-2 multi-signature address. I have successfully transacted back and forth between these two addresses before (...
1
vote
0answers
103 views

Missing input returned from sendrawtransaction on P2SH multisig?

I'm playing around on regtest to build a flow for P2SH multisig. I'm getting "missing inputs" back from the sendrawtransaction RPC call, but I see inputs when I put it in a decoder. They each have a ...
3
votes
1answer
67 views

How to properly combine PSBTs for CoinJoin?

I am trying to learn the workflow for manual Coinjoins using PSBTs. I was following Andy Chow's suggestions in another thread here Where he suggests: 1. Createpsbt (he suggests using ...
0
votes
2answers
445 views

Creating a unconfirmed bitcoin transaction

I know that it's sounds ridiculous, but i need to create an unconfirmed bitcoin transaction that will be unconfirmed for 2+ hours.I came to a conclusion that i need to create a 0 fee transactions but ...

1
2 3 4 5
7