Get Transactions By Transaction IDs
POST
Retrieves information for multiple transactions. Up to 1,000 transactions can be queried.
🚧 Getting a 429 error? Check your subscription plan!
A 429 error may occur when the throughput limit of your subscribed plan is exceeded.
For example, the Starter plan has a limit of 300 CU per second, so calling an API that consumes 350 CU while on the Starter plan may result in a 429 error.
Check the CU consumption of the API you are using on the Compute Unit Costs page, and consider upgrading to a higher plan if you need more throughput!
Path Parameters
chainstringrequired
Parameter specifying the target chain to query.networkstringrequired
Parameter specifying the network of the target chain.Request BodyBitcoin
transactionIdsarrayrequired
Enter the transaction IDs to query as an array.Responses
idstringrequired
Unique identifier of the transaction; a value that uniquely identifies each transaction.indexintegerrequired
Indicates the index of the transaction within the block. Starts at 0; represents the order of transactions included in the block.hashstringrequired
Hash value of the transaction; a unique identifier calculated from the transaction data. Computed including SegWit data.versionintegerrequired
Value indicating the transaction version; defines the transaction format.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.sizeintegerrequired
Actual size of the transaction in bytes; represents the length of the transaction data.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.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.feeintegerrequired
Transaction fee (in BTC units); the remainder when output value is subtracted from input value.vinCountintegerrequired
Indicates the number of input (Vin) transactions.voutCountintegerrequired
Indicates the number of output (Vout) transactions.blockHeightintegerrequired
Indicates the height of the block containing the transaction.blockHashstringrequired
Hash of the block containing the transaction.blockTimestampintegerrequired
Indicates when the block containing the transaction was created; displayed in UNIX timestamp format.indexintegerrequired
Indicates the index of the Vin (input) within the containing transaction.addressstringrequired
Address of the previous Vout (output) referenced by the Vin (input); represents the sender address that transferred the Bitcoin.valuestringrequired
Output value of the previous Vout (output) referenced by the Vin (input); represents the amount of Bitcoin being transferred (in BTC units).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.voutIndexintegerrequired
Index of the previous Vout (output) referenced by the Vin (input). Null for coinbase transactions.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.asmstringrequired
Signature script of the Vin (input) in assembly format. Provided as an empty string for SegWit transactions.typestringrequired
Indicates the signature script type of the Vin (input) (e.g., p2pkh, p2sh).sequenceintegerrequired
Sequence number of the Vin (input); controls transaction validity or works with locktime. Also used for RBF (Replace-By-Fee) control.witnessarrayrequired
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.addressstringrequired
Represents the recipient address that will receive the Bitcoin from the Vout (output).valuestringrequired
Represents the amount of Bitcoin transferred in the Vout (output) (in BTC units).Script of the Vout (output); defines the conditions (lock script) required to spend the Bitcoin.
hexstringrequired
Script of the Vout (output) in hexadecimal format.asmstringrequired
Script of the Vout (output) in assembly format.typestringrequired
Indicates the script type of the Vout (output) (e.g., pubkey, p2sh, p2pkh).codestringrequired
Code identifying the cause of the failed request.messagestringrequired
Detailed message including the name and value of the invalid parameter.{"code": "MISSING_REQUIRED_PARAMETER","message": "Missing required parameter: { PARAMETER_NAME }"}
cURL
curl -X POST 'https://web3.nodit.io/v1/bitcoin/mainnet/blockchain/getTransactionsByTransactionIds' \-H 'Content-Type: application/json' \-H 'X-API-KEY: nodit-demo' \-d '{}'