Questions tagged [raw-transaction]

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

1 vote
0 answers
16 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 ...
  • 11
0 votes
1 answer
59 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 ...
1 vote
1 answer
113 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 ...
  • 51
1 vote
1 answer
44 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. ...
  • 51
0 votes
0 answers
36 views

Spend from multiple P2SH addresses with Bitcoin Core

I have P2SH wallet keys from block io backup. The keys and the redeem script example: BIP32 Public Key: xpub661MyMwAqRbcGWq****************************************...
0 votes
1 answer
19 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.
1 vote
2 answers
65 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 ...
  • 113
3 votes
1 answer
125 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): ...
1 vote
1 answer
71 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 ...
  • 356
2 votes
1 answer
58 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
2 votes
1 answer
78 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,...
0 votes
1 answer
61 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 ...
1 vote
1 answer
88 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 ...
  • 113
0 votes
1 answer
143 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<...
  • 1
3 votes
1 answer
208 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 ...
  • 107

15 30 50 per page
1
2 3 4 5
25