POSTGet Transaction By Transaction ID

Data APIhttps://web3.nodit.io/v1/bitcoin/mainnet/blockchain/getTransactionByTransactionId

Retrieves information about a specific transaction.

Path Parameters
chainstring (enum)required

Parameter to specify the target chain for the query.

networkstring (enum)required

Parameter to specify the network of the target chain. Supported networks may vary depending on the chain.

Request Body
transactionIdstringrequired

Parameter specifying the transaction ID to query. Can be entered as a 64-character hexadecimal string (excluding 0x).

Responses
idstringrequired

Unique identifier of the transaction; a value that uniquely identifies each transaction.

예: 3954b135801a24fec00b28d23c8ebda69ca963f16bf38e00e0e02405964a40e2

indexintegerrequired

Indicates the index of the transaction within the block. Starts at 0; represents the order of transactions included in the block.

예: 0

hashstringrequired

Hash value of the transaction; a unique identifier calculated from the transaction data. Computed including SegWit data.

예: 3954b135801a24fec00b28d23c8ebda69ca963f16bf38e00e0e02405964a40e2

versionintegerrequired

Value indicating the transaction version; defines the transaction format.

예: 2

lockTimeintegerrequired

Lock time of the transaction; indicates the condition (block height or UNIX timestamp) under which the transaction becomes valid. A value of 0 means the transaction is immediately valid.

예: 0

sizeintegerrequired

Actual size of the transaction in bytes; represents the length of the transaction data.

예: 223

vsizeintegerrequired

Virtual size of the transaction in bytes; represents the effective size of the transaction as included in a block when SegWit data is included. Calculated by dividing weight by 4 and rounding up, per BIP-141.

예: 300

weightintegerrequired

Weight of the transaction; represents the network cost of the transaction as calculated per BIP-141. Calculated as (non-witness size * 3) + total size.

예: 565

feeintegerrequired

Transaction fee (in BTC units); the remainder when output value is subtracted from input value.

예: 1840

vinCountintegerrequired

Indicates the number of input (Vin) transactions.

예: 1

voutCountintegerrequired

Indicates the number of output (Vout) transactions.

예: 1

blockHeightintegerrequired

Indicates the height of the block containing the transaction.

예: 844237

blockHashstringrequired

Hash of the block containing the transaction.

예: 00000000000000000002a30c53b8f371d4ebba1434cffa32716e6e84eb33b2af

blockTimestampintegerrequired

Indicates when the block containing the transaction was created; displayed in UNIX timestamp format.

예: 1716177005

indexintegerrequired

Indicates the index of the Vin (input) within the containing transaction.

예: 0

addressstringrequired

Address of the previous Vout (output) referenced by the Vin (input); represents the sender address that transferred the Bitcoin.

예: bc1q0a7h7sa94e8svscf8sxmhyj8fujgy423fzjjfr

valuestringrequired

Output value of the previous Vout (output) referenced by the Vin (input); represents the amount of Bitcoin being transferred (in BTC units).

예: 0.00506140

coinbasestringrequired

Used in coinbase transactions (mining reward transactions); contains arbitrary data defined by the miner. Set to null for regular transactions.

voutTransactionIdstringrequired

ID of the previous transaction (Vout) referenced by the Vin (input). This field is null for coinbase transactions.

예: c2976d591a92cc39f2bb1f367afbc2d6ae6e3c940b640eb245dfbeef75d340db

voutIndexintegerrequired

Index of the previous Vout (output) referenced by the Vin (input). Null for coinbase transactions.

예: 0

scriptSigobjectrequired

Signature script of the Vin (input); used to unlock the lock script of the referenced previous Vout (output).

hexstringrequired

Signature script of the Vin (input) in hexadecimal format. Provided as an empty string for SegWit transactions.

예: 3045022100b228e33e8b62f825...

asmstringrequired

Signature script of the Vin (input) in assembly format. Provided as an empty string for SegWit transactions.

예: OP_HASH160 OP_PUSHBYTES_20 000000...

typestringrequired

Indicates the signature script type of the Vin (input) (e.g., p2pkh, p2sh).

예: witness_v0_keyhash

sequenceintegerrequired

Sequence number of the Vin (input); controls transaction validity or works with locktime. Also used for RBF (Replace-By-Fee) control.

예: 4294967295

witnessstring[]required

Array of script signature data for the Vin (input), included for SegWit transactions.

indexintegerrequired

Indicates the index of the Vout (output) within the containing transaction.

예: 0

addressstringrequired

Represents the recipient address that will receive the Bitcoin from the Vout (output).

예: D5Vz9PwaMdPfFCxXPCbBt84s3ZJQ5wd2Gw

valuestringrequired

Represents the amount of Bitcoin transferred in the Vout (output) (in BTC units).

예: 0.00016400

scriptPubKeyobjectrequired

Script of the Vout (output); defines the conditions (lock script) required to spend the Bitcoin.

hexstringrequired

Script of the Vout (output) in hexadecimal format.

예: 21025ac17459519db3146065c5a1738cd45315c38951e978d792492a6633c9cd6e75ac

asmstringrequired

Script of the Vout (output) in assembly format.

예: 025ac17459519db3146065c5a1738cd45315c38951e978d792492a6633c9cd6e75 OP_CHECKSIG

typestringrequired

Indicates the script type of the Vout (output) (e.g., pubkey, p2sh, p2pkh).

예: pubkey

X-API-KEY
RequestCU80
cURL
curl -X POST "https://web3.nodit.io/v1/bitcoin/mainnet/blockchain/getTransactionByTransactionId" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "transactionId": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
}'
Response
Example · 200
{
  "id": "3954b135801a24fec00b28d23c8ebda69ca963f16bf38e00e0e02405964a40e2",
  "index": 0,
  "hash": "3954b135801a24fec00b28d23c8ebda69ca963f16bf38e00e0e02405964a40e2",
  "version": 2,
  "lockTime": 0,
  "size": 223,
  "vsize": 300,
  "weight": 565,
  "fee": 1840,
  "vinCount": 1,
  "voutCount": 1,
  "blockHeight": 844237,
  "blockHash": "00000000000000000002a30c53b8f371d4ebba1434cffa32716e6e84eb33b2af",
  "blockTimestamp": 1716177005
}