Hedera · Schema

Transaction

Distributed LedgerBlockchainDLTHashgraphTransactionsTokensNFTsSmart ContractsEnterprise

Properties

Name Type Description
batch_key object
bytes stringnull
charged_tx_fee integer
consensus_timestamp object
entity_id object
high_volume boolean Whether the transaction used high-volume entity creation throttles and pricing per HIP-1313
high_volume_pricing_multiplier integernull The multiplier applied to the transaction fee when high-volume pricing was in effect per HIP-1313, scaled by 1000 (e.g. 1000 = 1x, 4000 = 4x). A value of 0 means high-volume pricing was not applied. N
max_custom_fees array
max_fee string
memo_base64 stringnull
name object
nft_transfers array
node object
nonce integer
parent_consensus_timestamp object
result string
scheduled boolean
staking_reward_transfers object
token_transfers array
transaction_hash string
transaction_id string
transfers array
valid_duration_seconds string
valid_start_timestamp object
View JSON Schema on GitHub

JSON Schema

Transaction.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hedera/refs/heads/main/json-schema/Transaction.json",
  "title": "Transaction",
  "type": "object",
  "properties": {
    "batch_key": {
      "$ref": "#/components/schemas/Key"
    },
    "bytes": {
      "type": [
        "string",
        "null"
      ],
      "format": "byte"
    },
    "charged_tx_fee": {
      "format": "int64",
      "type": "integer"
    },
    "consensus_timestamp": {
      "$ref": "#/components/schemas/Timestamp"
    },
    "entity_id": {
      "$ref": "#/components/schemas/EntityId"
    },
    "high_volume": {
      "description": "Whether the transaction used high-volume entity creation throttles and pricing per HIP-1313",
      "type": "boolean"
    },
    "high_volume_pricing_multiplier": {
      "description": "The multiplier applied to the transaction fee when high-volume pricing was in effect per HIP-1313, scaled by 1000 (e.g. 1000 = 1x, 4000 = 4x). A value of 0 means high-volume pricing was not applied. Null for pre-HIP-1313 transactions.",
      "format": "int64",
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ]
    },
    "max_custom_fees": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CustomFeeLimit"
      }
    },
    "max_fee": {
      "type": "string"
    },
    "memo_base64": {
      "format": "byte",
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "$ref": "#/components/schemas/TransactionTypes"
    },
    "nft_transfers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "is_approval": {
            "type": "boolean"
          },
          "receiver_account_id": {
            "$ref": "#/components/schemas/EntityId"
          },
          "sender_account_id": {
            "$ref": "#/components/schemas/EntityId"
          },
          "serial_number": {
            "example": 1,
            "format": "int64",
            "type": "integer"
          },
          "token_id": {
            "$ref": "#/components/schemas/EntityId"
          }
        },
        "required": [
          "is_approval",
          "receiver_account_id",
          "sender_account_id",
          "token_id",
          "serial_number"
        ]
      }
    },
    "node": {
      "$ref": "#/components/schemas/EntityId"
    },
    "nonce": {
      "type": "integer",
      "minimum": 0
    },
    "parent_consensus_timestamp": {
      "$ref": "#/components/schemas/TimestampNullable"
    },
    "result": {
      "type": "string"
    },
    "scheduled": {
      "type": "boolean"
    },
    "staking_reward_transfers": {
      "$ref": "#/components/schemas/StakingRewardTransfers"
    },
    "token_transfers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "token_id": {
            "$ref": "#/components/schemas/EntityId"
          },
          "account": {
            "$ref": "#/components/schemas/EntityId"
          },
          "amount": {
            "format": "int64",
            "type": "integer"
          },
          "is_approval": {
            "type": "boolean"
          }
        },
        "required": [
          "token_id",
          "account",
          "amount"
        ]
      }
    },
    "transaction_hash": {
      "type": "string",
      "format": "byte"
    },
    "transaction_id": {
      "type": "string"
    },
    "transfers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/EntityId"
          },
          "amount": {
            "format": "int64",
            "type": "integer"
          },
          "is_approval": {
            "type": "boolean"
          }
        },
        "required": [
          "account",
          "amount"
        ]
      }
    },
    "valid_duration_seconds": {
      "type": "string"
    },
    "valid_start_timestamp": {
      "$ref": "#/components/schemas/Timestamp"
    }
  },
  "example": {
    "batch_key": {
      "_type": "ED25519",
      "key": "7934a257a6144fabc8fbdeeaa5810662adb89e7b6978ace46a74fdb2d12bd4b2"
    },
    "bytes": null,
    "charged_tx_fee": 7,
    "consensus_timestamp": "1234567890.000000007",
    "entity_id": "0.0.2281979",
    "high_volume": false,
    "high_volume_pricing_multiplier": 1,
    "max_custom_fees": [
      {
        "account_id": "0.0.8",
        "amount": 1000,
        "denominating_token_id": "0.0.2000"
      },
      {
        "account_id": "0.0.8",
        "amount": 1500,
        "denominating_token_id": null
      }
    ],
    "max_fee": 33,
    "memo_base64": null,
    "name": "CRYPTOTRANSFER",
    "nft_transfers": [
      {
        "is_approval": true,
        "receiver_account_id": "0.0.121",
        "sender_account_id": "0.0.122",
        "serial_number": 1,
        "token_id": "0.0.123"
      },
      {
        "is_approval": true,
        "receiver_account_id": "0.0.321",
        "sender_account_id": "0.0.422",
        "serial_number": 2,
        "token_id": "0.0.123"
      }
    ],
    "node": "0.0.3",
    "nonce": 0,
    "parent_consensus_timestamp": "1234567890.000000007",
    "result": "SUCCESS",
    "scheduled": false,
    "staking_reward_transfers": [
      {
        "account": 3,
        "amount": 150
      },
      {
        "account": 9,
        "amount": 200
      }
    ],
    "transaction_hash": "vigzKe2J7fv4ktHBbNTSzQmKq7Lzdq1/lJMmHT+a2KgvdhAuadlvS4eKeqKjIRmW",
    "transaction_id": "0.0.8-1234567890-000000006",
    "token_transfers": [
      {
        "token_id": "0.0.90000",
        "account": "0.0.9",
        "amount": 1200,
        "is_approval": false
      },
      {
        "token_id": "0.0.90000",
        "account": "0.0.8",
        "amount": -1200,
        "is_approval": false
      }
    ],
    "transfers": [
      {
        "account": "0.0.3",
        "amount": 2,
        "is_approval": false
      },
      {
        "account": "0.0.8",
        "amount": -3,
        "is_approval": false
      },
      {
        "account": "0.0.98",
        "amount": 1,
        "is_approval": false
      },
      {
        "account": "0.0.800",
        "amount": 150,
        "is_approval": false
      },
      {
        "account": "0.0.800",
        "amount": 200,
        "is_approval": false
      }
    ],
    "valid_duration_seconds": 11,
    "valid_start_timestamp": "1234567890.000000006"
  }
}