Skip to main content

Get transaction

Retrieves transaction details for a given transaction ID

import type { Transaction } from '@stacks/stacks-blockchain-api-types';

Path Parameters
tx_id string REQUIRED

Hash of transaction

Example: 0x0a411719e3bfde95f9e227a2d7f8fac3d6c646b1e6cc186db0e2838a2c6cd9c0
Query Parameters
event_offset integer

The number of events to skip

event_limit integer

The numbers of events to return

unanchored boolean

Include transaction data from unanchored (i.e. unconfirmed) microblocks

Example: true
Responses
200

Transaction

Schema OPTIONAL
object

Describes all transaction types on Stacks 2.0 blockchain

404

Cannot find transaction for given ID