What is a transaction ID (TXID)?
A transaction hash is the string a blockchain network uses to identify a transaction; it is also commonly called a transaction ID (TXID). Wallets, trading platforms and block explorers all use it to look up the status and details of that transaction.
It is usually calculated from the transaction data using a cryptographic hash and looks like a long string of letters and numbers; some networks do not calculate a separate value and use the transaction's signature directly as its identifier.
Which transaction a transaction hash identifies
A transaction hash corresponds to one specific, signed transaction on a particular network. If the same person sends the same amount to the same address again, that is a new transaction with a different identifier.
It identifies a transaction, not an account. A blockchain address shows where assets come from and where they go, and one address can send many transactions; a transaction hash points to just one of them.
Identifiers with the same format may belong to different networks. For example, an Ethereum transaction hash is "0x" followed by 64 hexadecimal characters, and other Ethereum-compatible networks may use the same format. From the string alone you cannot tell which network it belongs to, and searching on the wrong network will not find the transaction.
How a transaction hash is generated
There are three common approaches: Bitcoin and Ethereum both calculate a hash of the transaction data, but with different algorithms, while Solana uses the transaction's first signature directly as the transaction ID. The algorithm, length and display format of the identifier all have to be understood according to the rules of the network it belongs to.
Bitcoin: hashing transaction data in a set format twice
Bitcoin arranges the transaction data into bytes in a set format and then runs the SHA-256 hash algorithm on it twice in a row; the resulting 32-byte value is the TXID.
After Bitcoin's Segregated Witness (SegWit) upgrade, transactions in the new format place data used to prove the transaction is valid, such as signatures, in separate "witness data." The way the TXID is calculated did not change, but it excludes this data, so for transactions that use the SegWit format for every input they spend, changes to signatures no longer affect the TXID. This was done to solve "transaction malleability": previously, a third party could alter a signature before the transaction was confirmed, and the transaction would remain valid while its TXID changed to a different value.
Ethereum: hashing the signed transaction
An Ethereum transaction hash is calculated from the complete signed transaction data using the Keccak-256 hash algorithm. Transactions in the earlier format are first encoded into bytes using Ethereum's RLP encoding rules before the hash is calculated; for newer transaction types introduced later, the hash is calculated over data consisting of "the type number plus the transaction contents."
Once signing is complete, the transaction hash is already determined. When a wallet submits the transaction to a node, the node returns this hash, even though the transaction is not yet in any block.
Solana: the first signature is the transaction ID
A Solana transaction contains one or more signatures, and the first signature belongs to the account paying the fee. This signature also serves as the transaction ID and is often simply called the "transaction signature." Because signatures are created before submission, the transaction ID can be obtained from the transaction data before it is submitted.
What a transaction hash can be used for
A transaction hash has three most common uses:
- Checking transaction status. Entering a transaction hash in a node or block explorer shows whether the transaction has been included; for what other information you can see, see that entry.
- Verifying deposits or transfers. OKX deposit details can show the transaction ID (TxID) of an onchain deposit; recipients also often ask senders for the transaction hash so they can find the payment onchain. Internal transfers between OKX accounts are not submitted to the blockchain, so they may have no onchain transaction ID.
- Checking execution results. On Ethereum, after a transaction enters a block, nodes generate a transaction receipt that records the execution result, which can be retrieved with the transaction hash; a status field of 1 in the receipt means execution succeeded, and 0 means it failed.
Four things a transaction hash cannot prove: that it is onchain, that it succeeded, that it will be included, that it was credited
A transaction hash is only an identifier for a transaction. Being able to look up a transaction with it shows that this signed transaction exists on the network, but it cannot by itself prove any of the following four things:
- That the transaction is onchain. On Bitcoin, Ethereum and Solana, the transaction hash is determined before the transaction enters a block. On Solana, a node's remote procedure call (RPC) service returns the signature as soon as it receives the transaction, which does not mean the transaction has been processed or confirmed.
- That the transaction executed successfully. On Ethereum, a transaction can still fail during execution after it has been included, and the fee is still charged; only the receipt status described above tells you the result.
- That the transaction will definitely be included. While a transaction is still pending, the sender can send a replacement transaction. On Ethereum, every transaction from an account carries a transaction sequence number (nonce) that increases in the order transactions are sent, and each number can be used only once, so a new transaction sent from the same account with the same number can replace the original transaction that is still pending. On Bitcoin, the sender can send a transaction that spends the same funds with a higher fee, and whether the replacement is accepted is decided by each node's transaction pool, where pending transactions are held, according to its own rules. Only one of the original transaction and the replacement can be included; once the replacement is included, the original transaction becomes invalid, and looking up the original hash will not show a successful result. A Solana transaction contains the hash of a recent block, which acts as an expiry: this block hash expires after about 150 slots, the time units used to schedule block production, and transactions not yet processed by then are rejected.
- Who owns the assets, or that a platform has credited them. A transaction hash only lets you find the addresses involved; it does not tell you who is behind them. When a trading platform credits a deposit is determined by the platform's rules; see block confirmation.
So, to judge whether a transfer is complete, look at the transaction hash together with the network, the confirmation status, the execution result and the recipient's crediting rules.
FAQ
What is the difference between a transaction hash and a block hash?
They identify different things. A transaction hash points to a transaction, while a block hash points to a block. A block can contain many transactions, so one block hash may correspond to many transaction hashes.
Is it safe to share a transaction hash with others?
A transaction hash cannot be used to move assets by itself; moving assets requires a signature from the private key. On a public blockchain, transaction records can be looked up by anyone, and someone who has the transaction hash can see the addresses, amount and time of the transaction. Consider privacy before sharing it.
Why do two places show different transaction hashes?
There are two situations to check first. The first is Bitcoin's byte order: Bitcoin software and many block explorers display the TXID with its byte order reversed, while references to it in raw transaction data still use the order produced directly by the hash calculation. A value taken from developer tools or raw data may appear in the opposite order from the string shown in a block explorer, but it refers to the same transaction. The second is that the original transaction may have been superseded by a replacement transaction; these are different transactions with different hashes. When this happens, first confirm the network, the display format and whether the transaction was replaced.
Related terms
Learn more about cryptographic hashes, block explorers, block confirmation, finality, blockchain addresses, and blocks, or return to the cryptocurrency glossary.
References
- Bitcoin Developer Reference: Transactions
- Bitcoin Developer Glossary
- BIP 141: Segregated Witness
- BIP 125: Opt-in Full Replace-by-Fee Signaling
- Ethereum.org: Transactions
- Ethereum.org: JSON-RPC API
- Ethereum Execution Specs: Prague transactions
- Solana: sendTransaction
- Solana: Transaction structure
- OKX: How do I check my deposit progress?
Digital Assets subject to volatility and not insured. Not financial/investment advice. Not all products and services offered in all regions. Exclusions and T&Cs apply.
© 2026 OKX. This article may be reproduced or distributed in its entirety, or excerpts of 100 words or less of this article may be used, provided such use is non-commercial. Any reproduction or distribution of the entire article must also prominently state: “This article is © 2026 OKX and is used with permission.” Permitted excerpts must cite to the name of the article and include attribution, for example “Article Name, [author name if applicable], © 2026 OKX.” Some content may be generated or assisted by artificial intelligence (AI) tools. No derivative works or other uses of this article are permitted.









