Questions tagged [transaction-id]

The unique identifier of a transaction. Corresponds to the double SHA256 hash of the serialized transaction.

Filter by
Sorted by
Tagged with
1 vote
1 answer
124 views

How to compute a TXID of any bitcoin transaction in Python

there, I've already looked at other similar posts on here but with little luck. All im trying to do is calculate the TXID of a transaction after downloading the transaction in hexadecimal from a ...
RabbitHole6565's user avatar
4 votes
2 answers
1k views

When calculating the hash of transaction, why is the version used as "01000000" instead of "00000001"?

According to the protocol documentation for tx, the first field on the transaction data is a version number of size 4. Based on this, I am trying to format the array of bytes needed to calculate the ...
Pedro Martins Timóteo da Costa's user avatar
2 votes
1 answer
102 views

Why is wtxid called "hash" in Bitcoin Core's getrawtransaction RPC?

In the industry txid is known as "transaction hash". Why wasn't the "hash" field called "wtxid"?
harbar's user avatar
  • 23
0 votes
1 answer
41 views

example of transaction ID in a ledger account

What is an example of a hash transaction ID for ledger account in 2023 for bitcoin payments
user avatar
0 votes
0 answers
26 views

Calculate a transaction version 2 ID [duplicate]

Been writing a bitcoin library from scratch, which eventually involves calculating transaction IDs. Version 1 transactions work fine when their hex data is being SHA256'd twice and then reversed. ...
RooSoft's user avatar
  • 147
1 vote
1 answer
258 views

How to calculate a bitcoin transaction hash of a coinbase transaction in 2022?

According to all internet sources i have found, the hash/ID of a transaction is the result of the double_sha256 algorithm that takes all raw data of the transaction. I tried to calculate it in Python ...
Vluedo404's user avatar
1 vote
2 answers
292 views

How are TXIDs determined from the raw hex data of a block? Also, what is the coinbase transaction?

Consider the hex data of block 170. The coinbase TXID is this: b1fea52486ce0c62bb442b530a3f0132b826c74e473d1f2c220bfa78111c5082 and the second TXID is: ...
Jamo's user avatar
  • 157
1 vote
1 answer
76 views

How does a node get information from the TxID?

If I'm right, segwit TxIDs are composed of the SHA^2(256) hash of the non-segwit data of a transaction. But, how does another node use the TxID to obtain information about the transaction such as the ...
Jamo's user avatar
  • 157
-1 votes
1 answer
52 views

How is it possible that Bitcoin blocks store transaction data in 32-bit SHA256 strings?

What I mean is that a traditional Bitcoin block has performed 2 SHA256 iterations on the raw hex data of a single transaction. Then it is stored in the block. But since it has been SHA256'd, how can ...
Jamo's user avatar
  • 157
1 vote
2 answers
217 views

Is txid a required field on all transactions?

I am writing a script that relies on txid to perform some tasks. I was wondering if it is possible for the txid to be missing from a transaction.
Dr. Strangelove's user avatar
1 vote
1 answer
99 views

Bitcoin transaction not confirmed since 3 days ago [duplicate]

Hello I might sound stupid but it’s been three days since I issued bitcoin transactions, all unconfirmed so far. I use Blockchain.com to manage my wallet and have done everything normally (I think, as ...
Mitnik's user avatar
  • 11
0 votes
1 answer
51 views

Developing a Bitcoin POS (Payment Page) - How do I identify the transaction

This is probably a basic question but I can not find an answer. We are developing a BTC payment process for a Point-of-Sale. We have managed to build this fine and can make requests (QR code) for a ...
dacology's user avatar
  • 103
0 votes
0 answers
158 views

How can I transfer unconfirmed transactions from wallet.dat to a new blockchain wallet

My question may not be very clear since I’m not really an expert in bitcoin and its technology. But in my possession I have just a wallet.dat files with an unconfirmed transaction on it. I followed a ...
Andrew's user avatar
  • 21
0 votes
1 answer
78 views

Is it only out of sheer luck that all my "txid"s are unique? How should I handle multi-vout transactions?

I have created a database table simply copying the information from listsinceblock from Bitcoin Core's API. I have a UNIQUE constraint set to "txid + vout", as I'm supposed to. But when, as ...
E. Arya's user avatar
1 vote
0 answers
31 views

Minimum characters to uniquely identify bitcoin trasanction in blockchain

What is the minimum number of characters (TXID from the beginning) which is generally considered to uniquely identify a bitcoin transaction in the blockchain? (Similarly to git and a commit SHA - ...
seberm's user avatar
  • 11
2 votes
1 answer
273 views

Refer to UTXO by output index or output full address in blockchain?

I'm writing my own simple crypto and wondering whether input in a transaction should refer to unspend output only by it's TXID and vout (index in outputs vector in a transaction) OR by it's TXID and ...
zaabson's user avatar
  • 21
0 votes
0 answers
87 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 ...
Jsim's user avatar
  • 33
1 vote
1 answer
1k views

Unconfirmed BTC transaction / TXID doesn't exist?

I recently tried sending some btc to coinbase. In a hurry I did not put a transaction fee. I've tried to explain to their customer support what is going on. I offered to charge me a fee through my ...
dave's user avatar
  • 61
0 votes
2 answers
1k views

How to find out if LND opening pending channels has a confirmation onchain?

After typing lncli pendingchannels I get a channel_point number, and when I put channel_point txid to check if it was confirmed onchain by typing: bitcoin-cli gettransaction "txid insert" I get an ...
Kortik's user avatar
  • 51
3 votes
1 answer
704 views

How to calculate txid for segwit transactions?

I'm having difficulty calculating txid for recent transactions. I followed bip-141 at https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki For the first transaction in the first block found ...
fon's user avatar
  • 77
0 votes
0 answers
176 views

Generating TXID from transaction's data [duplicate]

As I understand, we can generate a TXID by hashing transaction data through SHA256 twice, and as you know probably, A bitcoin transaction is just a bunch of data that describes the movement of ...
Saeed's user avatar
  • 125
0 votes
2 answers
1k views

getting address from public of ScriptPubKey vs ScriptSig

Recently I read some articles about BITCOIN protocol and it's transaction. I understand(maybe it is incorrect) these rules: An input is what we call an output when you're spending it in a transaction....
Saeed's user avatar
  • 125
0 votes
1 answer
133 views

bitcoind rest api tx endpoint

i am having a trouble with bitcoind REST API endpoint for retrieving transaction info. According to the documentation it should return confirmations among the retrieved data. But my bitcoind do not ...
Jakub's user avatar
  • 3
1 vote
1 answer
352 views

how can i get rid of a zombie channel in LND?

My LN-Node: 023bf99414b3e93ab7463ce60f44cd691f8be3c1ae33a2015fe784c85c36e770cf bitcoind 0.17.1 // LND 0.5.2-beta commit=v0.5.2-beta-rc7 Channel: 598078250466476032 Problem: lncli feereport returns: ...
The Goon's user avatar
2 votes
1 answer
258 views

Ripple: How to calculate transaction ID (TXID) [closed]

Given a signed Ripple transaction, how do I calculate the txid?
Thorkil Værge's user avatar
0 votes
1 answer
246 views

SPV clients querying the full node

Is there a way currently where an SPV client can send a TxID to a full node which is present in the UTXO set of the full node and have the full node not scan its entire blockchain to fetch the ...
archita's user avatar
  • 13
0 votes
1 answer
70 views

Custom transaction IDs

I understand that TxIDs are simply the double hash of tx data. But who creates them? I assume that all the nodes create the TXIDs of the transactions on their own and the TxIDs are not transferred ...
archita's user avatar
  • 13
5 votes
2 answers
353 views

Why didn't Bitcoin implement segwit in the first place?

Why didn't Bitcoin implement segwit in the first place? Why and how does non-segwit Bitcoin enable a miner to change a transaction's txid? From Mastering Bitcoin ch. 7 § "Transaction identifiers": ...
Geremia's user avatar
  • 4,566
1 vote
1 answer
379 views

Getting transaction id from raw transaction of a multisig address

I am able to get the tx id (or transaction hash) of almost any transaction but the one where the script starts with an "OP_O" (which is, I think, the null dummy introduced here https://github.com/...
Kevin P's user avatar
  • 69
0 votes
1 answer
133 views

What does postfic in the wallet transaction id mean [closed]

It's known the txid is always a 32 byte hex sequence for example ceca9c54d1a2f9122326a871a3b0b20b725540137e80cb50da663a404f7849a8, but when inpecting the transaction in a wallet it shows it with a ...
Ben's user avatar
  • 113
0 votes
2 answers
933 views

Confirm transaction in regtest mode

I'm testing some wallet features on regtest. Here's the sequence so far: cash-cli -regtest generate 101 cash-cli -regtest getbalance 500.00000000 cash-cli -regtest getnewaddress newAddress1 ...
Ben's user avatar
  • 113
3 votes
1 answer
139 views

Question about identical txids/merkle tree in Developer guide

I am new to the technical details about Bitcoin and has been reading Developer guide on bitcoin.org. I have a question about below contents mentioning merkle tree, identical txids. I googled and ...
Olivia Zhang's user avatar
0 votes
1 answer
580 views

Confused About Hash In Satoshi Nakamoto Diagram

In Satoshi Nakamoto's diagram: Consider the Hash block in the first transaction block above: How is that Hash value calculated? I see arrows from an Owner's Public Key and another arrow, so it's ...
Jazimov's user avatar
  • 367
0 votes
1 answer
214 views

Get input address using VIN txid?

I have written following script to get Vin address from Vin txids. #!/usr/bin/python # -*- coding: utf-8 -*- import requests,json url="http://asd:asdf@localhost:2332" payload={} payload = {"jsonrpc":...
cryptoKTM's user avatar
  • 554
1 vote
3 answers
984 views

Getting the wrong txid for coinbase transactions

I'm trying to hash transactions to get the txid. I get the hex values from blockchain.info. I get the correct hash for all transactions except for the coinbase when I hash it twice. Is there something ...
jørgen k. s.'s user avatar
-2 votes
4 answers
2k views

I think I found 241 Bitcoin [closed]

I have been having dreams for the past month about BTC and an old computer I had bought Bitcoin on a long, long time ago. I just found said computer in my grandmother's basement. Booted it up and lo ...
merger's user avatar
  • 1
0 votes
1 answer
656 views

Find message attached to Bitcoin transaction?

Given a txid, can I find out the message/comment the transaction was attached with by the sender?
illuminatitruthseeker's user avatar
4 votes
1 answer
1k views

How to compute SegWit txid?

BIP141 says wtxid is SHA256 of [nVersion][marker][flag][txins][txouts][witness][nLockTime]. Is data that hashed as txid includes witness? And will txid be presented in block, e.g. be counted when ...
fjchen's user avatar
  • 91
1 vote
1 answer
571 views

How does TXID gets created and at which point

I see TxID in bitcoin transaction input as reference of the UTXO. How does TXID gets created and at which point, wallet or node?
ManasMi's user avatar
  • 21
1 vote
1 answer
186 views

Why does bitcoin-cli not show the correct TXID for this transaction?

I've been decoding some transactions on Testnet, and I've found one that bitcoin-cli decoderawtransaction seems to "fail" to decode correctly. Here's the TXID: ...
inersha's user avatar
  • 2,968
0 votes
1 answer
598 views

After creation, what I have to do with a coinbase transaction?

I have create a coinbase transaction successfully with the command: createrawtransaction '[{"txid":"0000000000000000000000000000000000000000000000000000000000000000","vout":0}]' '{"...
Kleber Mota's user avatar
0 votes
1 answer
690 views

Values for txid and vout for create a coinbase transaction

I want create a coinbase transaction to go with a new block minned by my program. I am creating it with the json-rpc command createrawtransaction. What's the values for txid and vout in this case?
Kleber Mota's user avatar
5 votes
1 answer
481 views

SegWit and previous hash: txid or wtxid, or either?

With segwit there will be two transaction ids wtxid and txid Can either one of them be used as previous hash or only txid?
Albert S's user avatar
  • 1,630
0 votes
1 answer
1k views

Is the Bitcoin Transaction ID also the "Hash of things to sign" for the signature generation?

As a random example, is the transaction id: 114be7fea4d3dd0cf2e88a8fa9a56d4ea741efbabd07d61d08cf0810be2254fd Also the hash that was used as the "hash of things to sign" for the "signature generation"...
Mine's user avatar
  • 1,416
0 votes
1 answer
93 views

tx-malleability who re-signed the tx?

It would be really great if there was a way to loop through all the txids in a new block and be able to check if you (can) sign your original transaction the same way it was re-signed - that it ...
Ben Muircroft's user avatar
0 votes
1 answer
996 views

Possibility of validation of transaction TX id

I've readed numbers of thread here but non answer to my question. What I want to know if there is a way somehow to validate transactionID ( txID ). I have a site which accepts bitcoins. In order to ...
S.I.'s user avatar
  • 101
2 votes
1 answer
808 views

Create raw transaction what txid

I want to check for every transaction if there is enough balance to pay it(including fee). I found this question: Is there a way to know the Bitcoin Network transaction fee BEFORE actually submitting ...
Jan Wytze's user avatar
  • 299
2 votes
1 answer
991 views

Duplicate transactions in blockchain

Can someone explain what does this mean: As i see: 2 transactions are having SAME txid and differ just by address. Is this normal behavior? Should I get both transactions in such cases?
0x49D1's user avatar
  • 207
6 votes
2 answers
380 views

What would be the fastest way to query for a certain txid to get its inputs?

I am working in an artistic/visualization project that analyses Bitcoin transactions. I have a Bitcore instance with insight API and from a Python script I query through the REST API so the queries ...
muimota's user avatar
  • 192
3 votes
1 answer
448 views

How are transaction IDs generated and how are they then changed by transaction malleability?

How are the transaction IDs generated for a Bitcoin transaction? How can the transaction ID change due to a transaction malleability attack?
tbolt's user avatar
  • 264