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>
Available options:
CARDANO_MAINNET,
CARDANO_PREPROD,
CARDANO_PREVIEW,
APEX_PRIME_MAINNET,
APEX_VECTOR_MAINNET,
APEX_VECTOR_TESTNET,
MIDNIGHT_MAINNET,
MIDNIGHT_PREPROD,
MIDNIGHT_PREVIEW,
BITCOIN_MAINNET,
BITCOIN_TESTNET4

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

vin
any
default:""

Transaction inputs (array)

vout
any
default:""

Transaction outputs (array)

hex
string
default:""

Raw hex (only present when explicitly requested)