Skip to main content
GET
Get transaction by txid

Authorizations

X-Api-Key
string
header
required

API key (programmatic access — recommended)

Send your API key in the X-Api-Key header. Keys start with nxs_ and are created in the dashboard (or via POST /api/keys with a session JWT).

Each key is scoped to one chain and one network (for example CARDANO_MAINNET), fixed at creation time. It cannot query a different network on the same chain, and it cannot query a different chain at all. A mismatched network parameter returns 400 Network Mismatch. Create one key per chain and network under the same account.

This is the credential most integrations should use.

Path Parameters

txid
string
required
Pattern: ^[a-fA-F0-9]{64}$

Query Parameters

network
enum<string>

Accepts either the value listed here (CARDANO_MAINNET) or its kebab-case alias (cardano-mainnet); matching is case-insensitive. Omit it and the network is taken from the API key. A value that disagrees with the key's own network returns 400 Network Mismatch.

Available options:
CARDANO_MAINNET,
CARDANO_PREPROD,
CARDANO_PREVIEW,
APEX_PRIME_MAINNET,
APEX_VECTOR_MAINNET,
APEX_VECTOR_TESTNET,
MIDNIGHT_MAINNET,
MIDNIGHT_PREPROD,
MIDNIGHT_STAGENET,
BITCOIN_MAINNET,
BITCOIN_TESTNET4
includeHex
boolean
default:false

Response

200 - */*

OK

Bitcoin transaction

txid
string
default:""

Transaction id (txid)

hash
string
default:""

Witness transaction id

version
integer<int32>
default:""

Transaction version

locktime
integer<int64>
default:""

Locktime

size
integer<int64>
default:""

Size in bytes

vsize
integer<int64>
default:""

Virtual size (vsize) in vbytes

weight
integer<int64>
default:""

Weight (BIP141)

blockhash
string
default:""

Block hash containing this tx

blockheight
integer<int64>
default:""

Block height

blocktime
integer<int64>
default:""

Block time (epoch seconds)

confirmations
integer<int64>
default:""

Number of confirmations

fee
number
default:""

Transaction fee in BTC (Core-native denomination, NOT satoshis). Present for confirmed transactions; may be absent for mempool transactions (bitcoind omits it without block undo data).

vin
any[]

Inputs, bitcoind getrawtransaction verbosity-2 shape passed through unmodified (txinwitness untouched). prevout (with scriptPubKey.address / .type) is present for confirmed transactions only; mempool transactions lack undo data and return inputs without prevout.

vout
any[]

Outputs, bitcoind verbosity-2 shape passed through unmodified. value is BTC-denominated (Core-native).

hex
string
default:""

Raw serialized tx hex; present only when requested with includeHex=true