---
title: "Full transaction"
method: GET
path: "/blockchain-v2/{asset}/transactions/{txid}"
tags: ["Full blockchain entities v2"]
---

# Full transaction

`GET /blockchain-v2/{asset}/transactions/{txid}`

## Request

- Base URL: `https://api.coinmetrics.io/v4`
- URL: `https://api.coinmetrics.io/v4/blockchain-v2/{asset}/transactions/{txid}`
- Auth: API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/docs/blockchain-v2/:asset/transactions/:txid/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a full blockchain transaction with all balance updates.<br/> Results are limited to the last 30 days for Community users.

## Path parameters

- `asset` string, required
- `txid` string, required

## Query parameters

- `include_sub_accounts` boolean
- `pretty` boolean

## Response `200`

Blockchain full transaction.

- BlockchainFullSingleTransactionResponseV2: Blockchain full transaction response.
  - `txid` string, required: Identifier (txid) of the transaction.
  - `consensus_time` string, required: The time in ISO 8601 date-time format. Always with nanoseconds precision.
  - `miner_time` string: The time in ISO 8601 date-time format. Always with nanoseconds precision.
  - `tx_position` string, required: Transaction position.
  - `min_chain_sequence_number` string: Chain sequence number.
  - `max_chain_sequence_number` string: Chain sequence number.
  - `n_balance_updates` string, required: Number of balance updates.
  - `amount` string, required: Sum of all debits in the transaction.
  - `stale` string: This field is set to true if the corresponding block is stale. Otherwise omitted.
  - `block_hash` string, required: Hash of the block.
  - `height` string, required: Height of the block.
  - `version` string: Version of the transaction.
  - `physical_size` string: Physical size of the transaction, bytes.
  - `consensus_size` string: Consensus size of the transaction.
  - `fee` string: Fee of the transaction.
  - `balance_updates` BlockchainTransactionBalanceUpdateV2[]
    - `chain_sequence_number` string, required: Chain sequence number.
    - `account` string, required: Account id.
    - `account_creation_height` string, required: Height of the block.
    - `change` string, required: Balance change.
    - `previous_balance` string, required: Balance of the account.
    - `new_balance` string, required: Balance of the account.
    - `transaction_sequence_number` string, required: It is used to order balance updates inside a single transaction to distinguish between serial and parallel balance updates.
    - `n_debits` string, required: Number of debits.
    - `n_credits` string, required: Number of credits.
    - `previous_debit_height` string: Height of the block.
    - `previous_credit_height` string: Height of the block.
    - `previous_chain_sequence_number` string: It is used to order balance updates inside a single transaction to distinguish between serial and parallel balance updates.
    - `sub_account` BlockchainBalanceUpdateSubAccount
      - `sub_account` string: Sub-account id.
      - `previous_balance` string: Balance of the account.
      - `new_balance` string: Balance of the account.
      - `n_debits` string: Number of debits.
      - `n_credits` string: Number of credits.
      - `previous_credit_height` string: Height of the block.
      - `previous_debit_height` string: Height of the block.
      - `previous_chain_sequence_number` string: It is used to order balance updates inside a single transaction to distinguish between serial and parallel balance updates.
      - `total_received` string: Total amount received.
      - `total_sent` string: Total amount sent.
      - `creation_height` string: Height of the block.
    - `stale` string: This field is set to true if the corresponding block is stale. Otherwise omitted.

## Other responses

- `401`: Requested resource requires authorization.
- `403`: Requested resource is not available with supplied credentials.

---

[API](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4.md) - [All operations](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/revisions/774268c0a4fe?raw)
