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
1
vote
1answer
16 views

Validate raw transaction hex without broadcasting

I would like to check the validity of a raw transaction (i.e. whether it would be accepted by network nodes), without broadcasting the transaction to the network. I am interested in knowing what is ...
0
votes
0answers
43 views

What is the best site/tool/way for finding the RSZ values of a bitcoin transaction? [duplicate]

The two most popular sites for doing this are down which are https://2coin.org/ and https://2xoin.com/getRSZfromRawTX/ with no indication they'll ever return to be usable. Can anyone here link any ...
0
votes
0answers
48 views

Decode Raw Bitcoin Hexadecimal Transaction

I have been using this excellent site one amongst many that offer to Decode Raw Bitcoin Hexadecimal Transaction....https://live.blockcypher.com/btc/decodetx/ Well, the site was down for a bit and that ...
2
votes
1answer
66 views

DLC funding transaction error: non-mandatory-script-verify-flag (Witness program hash mismatch) (code 64)

I'm attempting to construct a funding transaction for a DLC. So far I have created the following transaction which encodes entry of a bet for local/remote collateral of 1000/1000 sats and binary win/...
0
votes
1answer
35 views

Why is signature S value is unnecessarily high not safe?

I get frequent warning when sending RawTX to PushTX message (Non-canonical signature: S value is unnecessarily high) Why is signature S with a large value dangerous (that is, when the first HEX ...
1
vote
0answers
59 views

How do you sign an unsigned transaction using Electrum in a multisig setup?

I am experimenting with multisig in testNet between Electrum and Caravan by Unchained Capital. I created a 2-of-2 multisig in Electrum with BIP 39 seeds. I then created a watch-only wallet in Caravan ...
0
votes
2answers
65 views

Error 400 when pushing tx hex to mempool.space's API

I am using the code syntax provided by mempool.space for a POST transaction request from their website here: https://mempool.space/api const mempoolJS = require("@mempool/mempool.js") const ...
0
votes
1answer
45 views

Get raw transaction from tx id without txindex=1

I'm trying to get the raw transaction hex string of a transaction that I know the id from. I would like to do that without using txindex=1. As I assume the transaction is unspent (and confirmed) I'm ...
0
votes
1answer
44 views

How can I get RawTX transactions?

I used to be able to get RawTX transactions on the Blockchain using the link: https://blockchain.info/tx/60183ab915f2f4b0190605f98bd0e9f8eafe13a1c902b3ae87ecd0dfc8a599a0?format=hex But the site ...
1
vote
1answer
100 views

What is "Witness"?

What really is "Witness"? I saw this data in blockchain and can not identify what it really is. Here is the dump of transaction for example. TX hash = ...
0
votes
0answers
37 views

I can't broadcast raw transaction with return false

I'm going to transfer funds from the multisig address. Multisig address is 2/3 format. The two signature is done successfully but sendrawtransaction function don't be implemented. Help me about it! My ...
1
vote
1answer
167 views

Broadcasting a raw transactions on bitcoin network

I have made a raw transaction (based on Bitcoin rules) for my own for sending on Bitcoin network. I would like to submit it on the Bitcoin network. How can I do it ? (preferably command line based).
1
vote
1answer
87 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
54 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
77 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
75 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
57 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
46 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 ...
1
vote
1answer
194 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
42 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
40 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
77 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
57 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
533 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
115 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
91 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
36 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
38 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
90 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
55 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
47 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
100 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
105 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
48 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
71 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
398 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
89 views

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

I have an unsigned raw transaction: ...
0
votes
1answer
63 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
71 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
68 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
59 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
86 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
115 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
154 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
57 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
44 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
34 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
86 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 ...

1
2 3 4 5
7