<!-- source: https://secondlayer.tools/docs/api-reference#transaction-object -->

## The Transaction object

A confirmed transaction: stored columns plus what decodes from the raw bytes. Payload objects appear only for the matching `tx_type`. Decoded fields are `null` when the raw bytes do not decode (burnchain ops).

| Field | Type | Description |
| --- | --- | --- |
| `cursor` | string | `<block_height>:<tx_index>`. Pass as `cursor`. |
| `tx_id` | string | Transaction id, `0x`-prefixed hex. |
| `block_height` | integer | Stacks block the row landed in. |
| `block_time` | string · date-time · nullable | That block's timestamp, ISO 8601 UTC. |
| `burn_block_height` | integer · nullable | The Bitcoin block its Stacks block anchors to. |
| `tx_index` | integer | The transaction's position in its block. |
| `status` | string | Execution status, e.g. `success` or `abort_by_response`. |
| `tx_type` | string | `token_transfer`, `contract_call`, `smart_contract`, `coinbase`, `tenure_change` or `poison_microblock`, decoded from the raw bytes. Falls back to the stored type when they do not decode. |
| `sender` | string | Sender principal. |
| `fee` | string · nullable | Fee in microSTX as a decimal string. `null` when the raw bytes do not decode. |
| `nonce` | string · nullable | Sender nonce as a decimal string. |
| `sponsored` | boolean · nullable | Whether a sponsor paid the fee. |
| `anchor_mode` | enum · nullable | Anchor mode from the raw bytes. Values: `on_chain_only`, `off_chain_only`, `any`. |
| `post_condition_mode` | enum · nullable | Post-condition mode from the raw bytes. Values: `allow`, `deny`. |
| `post_conditions` | array of PostCondition | Decoded post-conditions. Empty when there are none. |
| `token_transfer` | object | `token_transfer` only. |
| `coinbase` | object | `coinbase` only. |
| `tenure_change` | object | `tenure_change` only. |
| `contract_call` | object | `contract_call` only. |
| `smart_contract` | object | `smart_contract` only. |

```json
{
  "cursor": "9048502:1",
  "tx_id": "0x198d642edb1104a1757a8c353ad61231d0422ecb6ba83aa1ce45d05df44157e0",
  "block_height": 9048502,
  "block_time": "2026-09-23T13:14:42.000Z",
  "burn_block_height": 968276,
  "tx_index": 1,
  "tx_type": "contract_call",
  "sender": "SP15T1W26JTNS26VG17HM468KW7TQD3124KTYA9EJ",
  "status": "success",
  "fee": "3000",
  "nonce": "265",
  "sponsored": false,
  "anchor_mode": "any",
  "post_condition_mode": "deny",
  "post_conditions": [
    {
      "type": "ft",
      "principal": "SP15T1W26JTNS26VG17HM468KW7TQD3124KTYA9EJ",
      "asset_identifier": "SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token::sbtc-token",
      "condition_code": 1,
      "condition_code_name": "sent_eq",
      "amount": "300"
    }
  ],
  "contract_call": {
    "contract_id": "SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token",
    "function_name": "transfer",
    "function_args": [
      "300",
      "SP15T1W26JTNS26VG17HM468KW7TQD3124KTYA9EJ",
      "SPD3SCZDZ52X4ZX1878XWBFBJ29YRX0MFW9Z9W4V",
      null
    ],
    "function_args_hex": [
      "010000000000000000000000000000012c",
      "05164ba0f04696ab911b7009e3421913e1f5768c2224",
      "05161a3cb3edf945d27fa141d1de2deb9093ec74147f",
      "09"
    ],
    "result": true,
    "result_hex": "0x0703"
  }
}
```
