Skip to main content

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

Is there any easy tool to write raw transactions with a memo?

The idea is to build a complex transaction that have many outputs and some of them are MEMOs (using OP_RETURN) and spend one (or many) UTXOs. A GUI tool would be awesome, but a CLI tool would also ...
eloyesp's user avatar
  • 202
0 votes
0 answers
56 views

Is there anyway to produce the transaction's hash created by sender?

It seems that when someone wants to send Bitcoins, he creates a transaction and the transaction_id will be transaction's hash. after block confirmation this id will be change and we can find out this ...
Mohsen Ghorbani's user avatar
0 votes
0 answers
50 views

Getting error "non-mandatory-script-verify-flag (Witness program hash mismatch)" when trying to send raw signed transaction

I'm trying to send a fairly simple segwit transaction with multiple input and outputs using bitcoinlib, here's how the simplified code looks like: from bitcoinlib.transactions import Output, Key, ...
Javier Villanueva's user avatar
1 vote
1 answer
60 views

I cannot broadcast my raw tx (P2PKH) on testnet: Signature must be zero for failed CHECK(MULTI)SIG operation

I am trying to broadcast my transaction on the test network with no success so far. I get always this error: sendrawtransaction RPC error: {"code":-26,"message":"mandatory-...
Dot Brian's user avatar
0 votes
1 answer
52 views

Error validating transaction: Transaction orphaned, missing reference (TESTNET)

RAWTRANSACTION HEX ...
Tepan's user avatar
  • 3
0 votes
1 answer
44 views

Incorrect Transaction ID being calculated for a p2wpkh transaction

RAW Signed transaction (signet) ...
Prabhat Verma's user avatar
0 votes
1 answer
55 views

Raw Transaction decoding fails on signet but decodes fine in BlockCypher decoder

Type of transaction: p2wpkh transaction creating a multisig (p2wsh) on signet. Error:TX must have atleast one inputs. Output on online decoder { "addresses": [ "...
Prabhat Verma's user avatar
1 vote
1 answer
201 views

get source address of a transaction

I have been conducting research on the web and Bitcoin Stack Exchange to find a method for obtaining the source address of a transaction. I have come across multiple answers, some suggesting the use ...
Monte Conte's user avatar
3 votes
1 answer
169 views

Processing bitcoin reward block's input transaction

I'm parsing the block response of my bitcoin node and everything is going ok. The only thing I don't understand is how to parse the input transaction of the block reward. This is the array that I see ...
Monte Conte's user avatar
0 votes
1 answer
233 views

Is there any online service/API to get the complete transaction in raw form?

Is there any online service or API that allows you to get the transaction in raw form, i.e. in "byte" format? I know it can be done through bitcoin core, however, I need some online service/...
dassd's user avatar
  • 1,099
0 votes
1 answer
103 views

What fields of a coinbase transaction can be empty?

Is it correct to say: As the coinbase transaction doesn't need to identify an output, there is no need for the input scriptSig. Would a block be accepted in which the coinbase transaction has an ...
Lee's user avatar
  • 877
2 votes
0 answers
26 views

No inv messages from inbound nodes

I'm writing a tx relay-only node that can accept inbound connections and make outbound ones. Just for research. What I'm seeing that on inbound nodes the initial handshake completes and the connection ...
Eva4684's user avatar
  • 41
0 votes
0 answers
32 views

How to hash a message (tx message) to get message hash? [duplicate]

I am trying to create a raw TX and sign it. I know that to sign a transaction we need the message hash (here m) value which is double sha256 hash of something like this: 01000000 #Version 01 #Number ...
madhurkant's user avatar
0 votes
0 answers
55 views

How do I create an p2pkh raw transaction using the latest Bitcoin core version? Any help? Thanks

Like the title says I need of help here, how can I create an p2pkh raw transaction using the latest version of Bitcoin core is it even possible? What are the required fields do I need to use the ...
davonte lawrence's user avatar
5 votes
4 answers
883 views

Why is little endian used in transaction formatting and other parts of bitcoin?

I've noticed just from studying the raw hex values of transactions that many components are formatted in hexidecimal little endian. For example, the amount specified in an output will be formatted as ...
jiamijiang's user avatar
1 vote
1 answer
704 views

Transaction keep beeing rejected "non-mandatory-script-verify-flag"

I'm developping Bitcoin integration for Microsoft Dynamics Business Central to offer enterprise capability to apply Bitcoin receivable and payable to accounting. To send a transaction, I'm using ...
Maxime CATY's user avatar
2 votes
1 answer
79 views

What is prepended to the front of a ScriptSig and ScriptPubKey of a P2PKH transction?

In some educational materials on bitcoin P2PKH transactions, I'll see 2 digits included in the front of what would be considered the ScriptSig. For example, what is the 8b in the front of the ...
jiamijiang's user avatar
-1 votes
1 answer
114 views

"Signature must be zero for failed CHECK(MULTI)SIG operation"

I want to broadcast signed transaction but I get this error how can I solve this I get this everytime. "Signature must be zero for failed CHECK(MULTI)SIG operation" RAW hex ...
K. Khurshudyan's user avatar
2 votes
1 answer
129 views

Create offline bitcoin tx for p2pkh address in a user-friendly way?

You created vanity p2pkh-addresses in the past, you have access to the private keys (WIF) and addresses (1...). Now you want to spend the funds securely and in an offline way (you do not want to ...
hodddl's user avatar
  • 101
2 votes
0 answers
112 views

Create and spend P2WSH that locks coins with OP_CHECKLOCKTIMEVERIFY

I'm attempting to create a P2SWH address with a script that locks the coins for some time. And then I want to spend those coins from that address. I've read a lot, some of the most relevant: BIP173 ...
wazint's user avatar
  • 21
0 votes
1 answer
193 views

parse bitcoin addresses from transactions received through the P2P protocol using python

I'm trying to extract public keys and transaction amounts from tx commands using python. Everyone on this stack exchange has been extremely helpful, but I think it's time to try and leverage a library ...
bitcoinluvr6969's user avatar
3 votes
1 answer
199 views

Relation between transaction data and transaction id

What is the relationship between transaction data and transaction id (which is used at mempool to generate Merkle root)? Note : when we query the getblock with verbosity 2, we get raw block in json ...
Ali's user avatar
  • 71
1 vote
1 answer
95 views

Submitblock input parameters similar to getblock?

I have installed Bitcoin Core on my laptop. Now open bitcoin daemon and do following: First i run getbestblockhash to get the last block hash on the Blockchain. We call this hash as BestBlockHash. ...
Ali's user avatar
  • 71
0 votes
1 answer
52 views

Can we have more than one address in transaction inputs and outputs addresses attribute?

In the transaction data of bitcoin can we have more than one address element in adresses attribute of inputs and outputs of a transaction.
Sherjil Malik's user avatar
2 votes
2 answers
442 views

Decode a signing raw transaction

I'm trying to compare raw_transaction with a sign_raw_transaction. is there any way to do that ? ( Using rpc commande if possible) What i want to do is : create raw_transaction signing it compare the ...
Userbn's user avatar
  • 123
3 votes
1 answer
415 views

How can I recognize an OP_RETURN transaction looking only at the hex?

Looking at these two transactions for example: tx1 and tx2. tx1 is an OP_RETURN trasaction, tx2 is a normal transaction. raw hex from tx1 (OP_RETURN): ...
luisschwab's user avatar
1 vote
1 answer
153 views

Parsing blk.dat file fails, is this block legitimate?

I'm parsing in blocks from my local blk*.dat files, using this excellent website as a guide. All goes well until file blk00976.dat, block ...
Lee's user avatar
  • 877
1 vote
1 answer
159 views

Can I create a P2PK tx?

Is it still possible to send to a pub key directly? How would I construct such a tx in raw hex, and would the mempool accept it? Thanks
Paul Otto's user avatar
2 votes
1 answer
122 views

Can a signed raw transaction's locktime be changed?

If I create a signed raw transaction with a locktime in the future, and give this raw transaction to somebody else, can they edit the locktime so that they recieve the bitcoin immediately? For example,...
Cannabijoy's user avatar
0 votes
1 answer
147 views

Should an offline address generated from private key send funds to wallet?

I'm trying to use the python package python-bitcoinlib to send a timelock transaction on testnet. The github has two examples to create an address, and then use that address to send the bitcoin to ...
Cannabijoy's user avatar
1 vote
1 answer
290 views

Structure of a bitcoin transaction, in particular the link to the previous transaction

I'm reading 'Blockchain and distributed ledgers' by Alexander Lipton and Adrien Treccani. I'm trying to understand how individual transactions are linked together. On page 338, they give the 'details ...
Neil D's user avatar
  • 113
1 vote
1 answer
326 views

Using the Bitcoin Crate to Sign a Segwit Transaction

Using the Bitcoin crate, I'm trying to create a transaction programmatically in Rust that spends an output associated with a P2WPKH address. This is the relevant code snippet: fn sign_transaction<...
THLO's user avatar
  • 11
6 votes
1 answer
515 views

What is the different between CompactSize and VarInt encoding?

Pieter Wuille's definition of CompactSize encoding seems to match Greg Walker's definition of VarInt encoding, yet the BitcoinWiki claims that CompactSize is not to be confused with VarInt. What, if ...
drogos86's user avatar
  • 147
0 votes
1 answer
218 views

testnet output address has no matching Script?

Here is my code to create a PSBT on the testnet: const bitcoin = require("bitcoinjs-lib") const privKey1 = "..." const address1 = "mkVPHMR5euGTcvpFj6tfyVERstDdH4RtQs" ...
jiamijiang's user avatar
0 votes
1 answer
227 views

How to submit nonstandard scriptPubKey transaction to bitcoind in regtest mode?

I'm trying to replicate an algebraic puzzle I saw in the scriptPubKey of a testnet transaction: OP_2DUP OP_ADD 6e OP_EQUAL I think the intent was for this output to be spendable by a scriptSig of ...
Dave M.'s user avatar
  • 147
0 votes
1 answer
132 views

sendrawtransaction on a non-synced node

This question is related to this post explaining how to use bitcoin-qt to generate a transaction. Once obtained, I'd like to dispatch it from my system which is running a non-synced node. When issuing ...
Jernej's user avatar
  • 97
0 votes
0 answers
196 views

Cant send raw transaction from golang with OP_EQUALVERIFY failed

I'm using btcsuite (especially this example) package to listen and send unspent inputs for specific address. Tx hash: 690059e82dcee13678c45f2c583207d357af254624f5037b4d4d12b39caf74ca From address: ...
nomvd's user avatar
  • 1
2 votes
2 answers
274 views

What is the relationship between r in signature and the public key

I've been reading about ECDSA in here. Step 11 says that you only need the ‘x‘ value (20 bytes) for the signature, and that value will be called ‘R‘ Does that say that R is the x-coordinate of the ...
KHJUAF403456ZS3K564WAEF's user avatar
1 vote
1 answer
243 views

How long is SIGHASH?

I am reading these two posts 1 2, and following step by step. I almost understand, but I still have some questions. Before signing, input script should be removed and replaced by pre locking script. ...
KHJUAF403456ZS3K564WAEF's user avatar
0 votes
1 answer
118 views

Why does my hash not line up with the one in the scriptPubKey?

I got some btc in testnet, here are the outputs. this is the UTXO that i get my btc { "value": 17.24756333, "n": 1, "scriptPubKey": { "asm": "...
KHJUAF403456ZS3K564WAEF's user avatar
1 vote
1 answer
160 views

How to show the Op codes of scriptPubKey?

I've been learning about bitcoin and creating raw transactions. In the example I saw in a video when they use the command decoderawtransaction it outputs: ... "scriptPubKey": { &...
Pedro's user avatar
  • 13
1 vote
1 answer
80 views

problem sending relative locktime (OP_CSV) transaction

i tried making a relative timelocked transaction with 1 block timelock (spendable after 1 confirmation) funding tx: 0fda5412da2a2615361914fad007aac73154746108d44c04529e78f6c4424655 address: ...
Antoni's user avatar
  • 287
0 votes
1 answer
1k views

How to calculate R, S, and Z from raw bitcoin transaction with witness?

How can I calculate the R, S, and Z values from a raw bitcoin transaction? I can extract them with rscan.py, but that doesn't work for new transactions.
Ramin Najafi's user avatar
1 vote
0 answers
194 views

Send transaction with 2 inputs and 2 outputs using Blockcypher

I'm using a node.js client of Blockcypher in order to broadcast a Bitcoin transaction. My code: const originWalletBalance = getBalance(originAddress) const fee = calculateFee() const txBody = { ...
forhas's user avatar
  • 137
-11 votes
1 answer
1k views

Can I be rewarded for discovering, creating, and proving bugs on Bitcoin?

There has never been a remittance history to this address. https://www.blockchain.com/btc/address/1JqPFnGPhHhy54zJKmC1MPiczzgFjCmzE9 public key : ...
user121477's user avatar
0 votes
1 answer
923 views

sign native P2WPKH with bitcoinjs-lib (signing sighash) (non-mandatory-script-verify-flag)

i experimented a lot with p2wsh multisig configurations with bitcoinjs-lib. but when i tried to sign a standard native segwit p2wpkh to p2wpkh transaction everything goes ok except for bitcoin-cli ...
Antoni's user avatar
  • 287
-1 votes
2 answers
72 views

How value of btc to be send is written in raw transaction?

I am currently learning about bitcoin, and I came up to this: https://medium.datadriveninvestor.com/bitcoin-raw-transaction-breakdown-c0a5a3aa8688 to know more about raw tx. What I cannot understand ...
madhurkant's user avatar
3 votes
1 answer
666 views

Creating a raw transaction from scratch/

I am currently learning bitcoin technology. So I came up around the term raw transaction. There are many tools to create a raw transaction but I want to do it all by myself. My Idea is to write a raw ...
madhurkant's user avatar
0 votes
1 answer
168 views

problem with unlocking P2WSH

i made a P2WSH address with bitcoinjs-lib from a script. the same script results in the same address with bitcoin core. I made an unlocking script and tested the combination with btcdeb and everything ...
Antoni's user avatar
  • 287
1 vote
1 answer
181 views

Transfer all funds to another wallet with node.js

I have a segwit address (starts with bc...) and its private key, that holds some BTC value. Using node.js I would like to transfer all my funds to another address. This should be pretty straight ...
forhas's user avatar
  • 137

1
2 3 4 5
8