{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bitnob/json-schema/bitnob-transaction-response-schema.json",
  "title": "TransactionResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/bitnob-swagger-openapi.yml#/components/schemas/TransactionResponse",
  "properties": {
    "amount": {
      "description": "Transferred amount as a human-readable decimal in the asset's display unit",
      "type": "string"
    },
    "amount_raw": {
      "description": "Transferred amount as an integer in the asset's smallest base unit",
      "type": "string"
    },
    "asset": {
      "description": "Symbol of the transferred asset",
      "type": "string"
    },
    "asset_decimals": {
      "description": "Number of decimals used to convert the asset's base units to its display unit",
      "type": "integer"
    },
    "block_hash": {
      "description": "Hash of the block the transaction was included in",
      "type": "string"
    },
    "block_number": {
      "description": "Number of the block the transaction was included in",
      "type": "integer"
    },
    "broadcast_at": {
      "description": "ISO-8601 timestamp when the transaction was broadcast to the network",
      "format": "date-time",
      "type": "string"
    },
    "chain": {
      "description": "Blockchain the transaction was made on",
      "type": "string"
    },
    "completed_at": {
      "description": "ISO-8601 timestamp when the transaction reached a completed state",
      "format": "date-time",
      "type": "string"
    },
    "confirmations": {
      "description": "Number of block confirmations for the transaction",
      "type": "integer"
    },
    "created_at": {
      "description": "ISO-8601 timestamp when the transaction was created",
      "format": "date-time",
      "type": "string"
    },
    "direction": {
      "description": "Transaction direction relative to the wallet (e.g. inbound, outbound)",
      "type": "string"
    },
    "error_message": {
      "description": "Human-readable error message when the transaction failed",
      "type": "string"
    },
    "execute_at": {
      "description": "When a policy-delayed transaction (status=delayed) is scheduled to execute. Present only while the transaction is time-locked.",
      "format": "date-time",
      "type": "string"
    },
    "fee_amount": {
      "description": "Estimated network fee as a human-readable decimal in the fee asset's display unit",
      "type": "string"
    },
    "fee_amount_raw": {
      "description": "Estimated network fee as an integer in the fee asset's smallest base unit",
      "type": "string"
    },
    "fee_asset": {
      "description": "Symbol of the asset fees are denominated in (usually the chain's native coin)",
      "type": "string"
    },
    "fee_decimals": {
      "description": "Number of decimals used to convert the fee asset's base units to its display unit",
      "type": "integer"
    },
    "from_address": {
      "description": "Sender address",
      "type": "string"
    },
    "gas_station_id": {
      "description": "Identifier of the gas station used to fund the transaction's fees",
      "type": "string"
    },
    "id": {
      "description": "Unique identifier of the transaction",
      "type": "string"
    },
    "network": {
      "description": "Network the transaction was made on (e.g. mainnet)",
      "type": "string"
    },
    "note": {
      "description": "Optional partner-supplied note attached to the transaction",
      "type": "string"
    },
    "object": {
      "description": "Object type, always \"transaction\"",
      "type": "string"
    },
    "realized_fee_amount": {
      "description": "Actual network fee paid as a human-readable decimal in the fee asset's display unit",
      "type": "string"
    },
    "realized_fee_amount_raw": {
      "description": "Actual network fee paid as an integer in the fee asset's smallest base unit",
      "type": "string"
    },
    "realized_fee_asset": {
      "description": "Symbol of the asset the realized fee is denominated in",
      "type": "string"
    },
    "realized_fee_decimals": {
      "description": "Number of decimals used to convert the realized fee asset's base units to its display unit",
      "type": "integer"
    },
    "signed_at": {
      "description": "ISO-8601 timestamp when the transaction was signed",
      "format": "date-time",
      "type": "string"
    },
    "sponsored": {
      "description": "Whether the transaction's network fee was sponsored",
      "type": "boolean"
    },
    "status": {
      "description": "Lifecycle state. Non-terminal: pending_signature, pending_authorization, delayed, signed, awaiting_sponsorship, broadcasting, confirming, pending_screening. Terminal: completed, failed, cancelled, rejected. Poll this endpoint until a terminal state; an empty tx_hash means it has not been broadcast yet.",
      "enum": [
        "pending_signature",
        "pending_authorization",
        "delayed",
        "signed",
        "awaiting_sponsorship",
        "broadcasting",
        "confirming",
        "completed",
        "failed",
        "cancelled",
        "rejected",
        "pending_screening"
      ],
      "type": "string"
    },
    "to_address": {
      "description": "Recipient address",
      "type": "string"
    },
    "tx_hash": {
      "description": "On-chain transaction hash; empty until the transaction is broadcast",
      "type": "string"
    },
    "tx_type": {
      "description": "Type of transaction",
      "type": "string"
    },
    "wallet_id": {
      "description": "Identifier of the wallet the transaction belongs to",
      "type": "string"
    }
  },
  "type": "object"
}