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
1answer
387 views

Manage multiple users wallets for web wallet service

This already summaries the issue I'm currently trying to figure out to calculate the transaction fee to prevent negative balance. (testnet) I tried using createrawtransaction answered. When I tried ...
0
votes
0answers
34 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
617 views

NBitcoin: Get address out of raw block stream

OK, I am sure that this is a really dumb, rookie question, so sorry in advance... I am trying to read through the blockchain and display the receiving address(es) for all transactions in the chain. (...
0
votes
1answer
214 views

ScriptSig raw hex to sign raw tx

i have a p2sh address that is created using an uncompressed public key (from my ledger nano) and a compressed public key (bitcoincore wallet). It requires both signatures to send the funds. When i use ...
1
vote
1answer
48 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
577 views

How to properly use the rpc command `listunspent` with `bitcore-lib` to create a transaction and get the transaction hash?

I am trying to use the rpc command listunspent to get all the UTXOs relevant to an address, and then I am trying to pass it to a transaction, using bitcore-lib. Below is my code: const Client = ...
2
votes
1answer
51 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).
0
votes
1answer
47 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
29 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
64 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
1answer
89 views

How to get BTC transfer amount from raw tx using bitcoinjs

Suppose I have following object console.log(bitcoinjs.Transaction.fromHex(rawTx)); The output Transaction { version: 2, locktime: 1655960, ins: [ { hash: <Buffer dc 4d aa 10 db ...
0
votes
0answers
21 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
131 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?
2
votes
1answer
638 views

How to sign a transaction using BitcoinJ

I am having problem signing the transaction using BitcoinJ library without the Wallet instance, I only have the Transaction class instance and the ECKey in order to sign the transaction. Is there a ...
0
votes
1answer
73 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
2answers
428 views

Is the any workable testnet3 Bitcoin solution for creating, signing, broadcast a normal transaction using Golang?

Currently I'm trying to create, sign & broadcast bitcoin transaction using btcsuite. For start, I've already had testnet3 address & its associated privatekey for testing. However, hunting ...
6
votes
2answers
3k views

Reading Bitcoin Raw Transaction

I want to understand Bitcoin data structure. So i try to understand a raw transaction in json format. When i checked the blockchain.info API documentation, i see that input structure is defined for ...
0
votes
1answer
33 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
114 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
26 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
1answer
45 views

Can I receive detailed tx data via command line using only a lightclient?

I recently tried to sync the Bitcoin blockchain, but my laptop does not have enough space on it. I want to be able to analyze UTXOs and raw transaction data. Will a lightclient allow me to do this?
0
votes
1answer
156 views

Bitcoin Pay-to-PubKeyHash (P2PKH) in multi-sig addresses

Can we send Pay-to-PubKeyHash (P2PKH) to an address which starts from 3 . I tried to send raw transaction to one of my coinbase address which starts from 3 but it send to completely different address ...
0
votes
0answers
36 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 ...
1
vote
1answer
972 views

Create Multiple Output transactions with Bitcoin Core

I am new to multiple output transactions with bitcoind and I want to learn how to implement them. Let's say I want to create 2-3 addresses and send 1 btc to the generated addresses. If I want to ...
3
votes
1answer
271 views

ZMQ Raw TX doesn't include all transactions

I'm running a Bitcore.io node and using their ZMQ hook but I've noticed that on livenet not all transactions are actually being sent. I've been comparing it to https://blockchain.info/unconfirmed-...
0
votes
2answers
415 views

Is there any python library could be used to decodescript in output

For example decode the ScriptPubKey like 4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac to some data like ...
3
votes
1answer
59 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 ...
4
votes
1answer
1k views

Building Signed Bitcoin Transaction in Java

I have been attempting to build my own raw transaction generator in Java which I can then broadcast on the testnet network. The problem is when I attempt to broadcast the transaction it says there is ...
1
vote
2answers
283 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
1answer
477 views

Litecoin - mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)

I have manually a raw transaction using bit library in order to send a transaction using Litecoin testnet. After adjusting fee's and other network variables I got the following error that is stated in ...
1
vote
1answer
464 views

What is a “serialized signed transaction”?

Shown in the gray area here, describing how to apply, I think, Segwit to a transaction (particularly a Bitcoin Cash tx). The last section is titled "serialized signed transaction" however ...
0
votes
1answer
42 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 ...
0
votes
2answers
464 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 ...
0
votes
3answers
91 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 ...
1
vote
1answer
25 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
62 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
43 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 -...
1
vote
0answers
275 views

wireshark packet analysis missing checksum in version msg

I'm trying to send a raw bitcoin transaction through a raw socket connection in python. To debug I'm using wireshark to sniff the packets. Wireshark figures out that the packet is for Bitcoin and ...
2
votes
1answer
65 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-...
3
votes
1answer
5k views

How exactly can I generate a transaction id?

I'd like to create a transaction object from scratch. I've read that the tx id for a transaction is the double SHA-256 hash of a serialized transaction, but havent been able to find details on exactly ...
0
votes
1answer
79 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
1k views

How to sign rawtransaction with private key

How to sign raw transaction with private key. this is my raw transaction : ...
1
vote
1answer
41 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 ...
1
vote
2answers
57 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 ...
2
votes
1answer
286 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
64 views

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

I have an unsigned raw transaction: ...

1
2 3 4 5
7