# hiero-ledger/hiero-sdk-python architecture

> Architecture diagram of the GitHub repository hiero-ledger/hiero-sdk-python, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hiero-ledger/hiero-sdk-python
- Repository: https://github.com/hiero-ledger/hiero-sdk-python

## Overview

Hiero SDK for Python lets applications configure a network client, authenticate with an operator, then execute queries and transactions against Hedera and retrieve results. Its domain APIs cover accounts, tokens, contracts, consensus, files, schedules, and network nodes; the TCK server is a separate compatibility-testing interface present in the tree. The shared execution layer handles query/transaction dispatch and gRPC service channels. Relationships beyond the README workflow are limited to those shown by the supplied excerpts or SOURCE INDEX; unsampled domain internals are represented without speculative call chains.

Main entry points: [`src/hiero_sdk_python/transaction/transaction.py`](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/transaction/transaction.py) (Transactions), [`src/hiero_sdk_python/query/query.py`](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/query/query.py) (Query Framework), [`src/hiero_sdk_python/client/client.py`](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/client/client.py) (Client Configuration), [`src/hiero_sdk_python/account`](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/account) (Account Operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client and Transport"]
  node_client["Client Configuration<br/>[client.py]"]
  node_network["Network<br/>[network.py]"]
  node_channels["gRPC Channels<br/>[channels.py]"]
end

subgraph group_execution["Execution Core"]
  node_executable["Execution and Retry<br/>[executable.py]"]
  node_query["Query Framework<br/>[query.py]"]
  node_transaction["Transactions<br/>[transaction.py]"]
end

subgraph group_accounts["Accounts and Assets"]
  node_account_api["Account Operations"]
  node_token_api["Token Operations"]
  node_crypto["Keys and Signing"]
  node_hbar["HBAR Values<br/>[hbar.py]"]
end

subgraph group_services["Network Services"]
  node_contract["Smart Contracts"]
  node_consensus["Consensus Topics"]
  node_file["File Service"]
  node_schedule["Scheduled Transactions"]
  node_nodes["Node Management"]
end

subgraph group_compat["Compatibility Interface"]
  node_tck_server["TCK Server<br/>[server.py]"]
  node_tck_handlers["Domain Handlers"]
end

node_application(("SDK Application"))
node_hedera{{"Hedera Network"}}
node_mirror{{"Mirror Node"}}

node_application -->|"configures"| node_client
node_application -->|"executes"| node_query
node_client -->|"uses network"| node_network
node_client -->|"connects"| node_hedera
node_network -.->|"provides channels"| node_channels
node_channels -->|"dispatches gRPC"| node_hedera
node_query -.->|"uses execution"| node_executable
node_transaction -.->|"uses execution"| node_executable
node_query -->|"requests data"| node_hedera
node_transaction -->|"submits operations"| node_hedera
node_account_api -.->|"offers queries"| node_query
node_account_api -.->|"offers mutations"| node_transaction
node_token_api -.->|"offers token actions"| node_transaction
node_contract -.->|"offers contract calls"| node_query
node_contract -.->|"offers contract actions"| node_transaction
node_consensus -.->|"offers topic actions"| node_transaction
node_file -.->|"offers file queries"| node_query
node_file -.->|"offers file actions"| node_transaction
node_schedule -.->|"offers scheduling"| node_transaction
node_nodes -.->|"offers node actions"| node_transaction
node_crypto -.->|"signs as operator"| node_client
node_query -.->|"queries balances"| node_mirror
node_tck_server -.->|"routes requests"| node_tck_handlers

click node_client "https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/client/client.py"
click node_network "https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/client/network.py"
click node_channels "https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/channels.py"
click node_executable "https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/executable.py"
click node_query "https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/query/query.py"
click node_transaction "https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/transaction/transaction.py"
click node_account_api "https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/account"
click node_token_api "https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/tokens"
click node_crypto "https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/crypto"
click node_hbar "https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/hbar.py"
click node_contract "https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/contract"
click node_consensus "https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/consensus"
click node_file "https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/file"
click node_schedule "https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/schedule"
click node_nodes "https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/nodes"
click node_tck_server "https://github.com/hiero-ledger/hiero-sdk-python/blob/main/tck/server.py"
click node_tck_handlers "https://github.com/hiero-ledger/hiero-sdk-python/tree/main/tck/handlers"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_client,node_network,node_channels toneBlue
class node_executable,node_query,node_transaction toneAmber
class node_account_api,node_token_api,node_crypto,node_hbar toneMint
class node_contract,node_consensus,node_file,node_schedule,node_nodes toneRose
class node_tck_server,node_tck_handlers,node_application,node_hedera,node_mirror toneIndigo
```

## Components

### Client and Transport

- [Client Configuration](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/client/client.py): `src/hiero_sdk_python/client/client.py`
- [Network](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/client/network.py): `src/hiero_sdk_python/client/network.py`
- [gRPC Channels](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/channels.py): `src/hiero_sdk_python/channels.py`

### Execution Core

- [Execution and Retry](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/executable.py): `src/hiero_sdk_python/executable.py`
- [Query Framework](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/query/query.py): `src/hiero_sdk_python/query/query.py`
- [Transactions](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/transaction/transaction.py): `src/hiero_sdk_python/transaction/transaction.py`

### Accounts and Assets

- [Account Operations](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/account): `src/hiero_sdk_python/account`
- [Token Operations](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/tokens): `src/hiero_sdk_python/tokens`
- [Keys and Signing](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/crypto): `src/hiero_sdk_python/crypto`
- [HBAR Values](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/src/hiero_sdk_python/hbar.py): `src/hiero_sdk_python/hbar.py`

### Network Services

- [Smart Contracts](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/contract): `src/hiero_sdk_python/contract`
- [Consensus Topics](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/consensus): `src/hiero_sdk_python/consensus`
- [File Service](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/file): `src/hiero_sdk_python/file`
- [Scheduled Transactions](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/schedule): `src/hiero_sdk_python/schedule`
- [Node Management](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/src/hiero_sdk_python/nodes): `src/hiero_sdk_python/nodes`

### Compatibility Interface

- [TCK Server](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/tck/server.py): `tck/server.py`
- [Domain Handlers](https://github.com/hiero-ledger/hiero-sdk-python/tree/main/tck/handlers): `tck/handlers`

### Other components

- **SDK Application**
- **Hedera Network**
- **Mirror Node**

## Connections

- SDK Application → Client Configuration: configures (evidence: `README.md`)
- SDK Application → Query Framework: executes (evidence: `README.md`)
- Client Configuration → Network: uses network (evidence: `src/hiero_sdk_python/client/client.py`)
- Client Configuration → Hedera Network: connects (evidence: `README.md`)
- Network → gRPC Channels: provides channels
- gRPC Channels → Hedera Network: dispatches gRPC (evidence: `src/hiero_sdk_python/channels.py`)
- Query Framework → Execution and Retry: uses execution (evidence: `src/hiero_sdk_python/query/query.py`)
- Transactions → Execution and Retry: uses execution
- Query Framework → Hedera Network: requests data (evidence: `README.md`)
- Transactions → Hedera Network: submits operations (evidence: `README.md`)
- Account Operations → Query Framework: offers queries (evidence: `src/hiero_sdk_python/account/account_records_query.py`)
- Account Operations → Transactions: offers mutations
- Token Operations → Transactions: offers token actions
- Smart Contracts → Query Framework: offers contract calls (evidence: `src/hiero_sdk_python/contract/contract_call_query.py`)
- Smart Contracts → Transactions: offers contract actions
- Consensus Topics → Transactions: offers topic actions
- File Service → Query Framework: offers file queries (evidence: `src/hiero_sdk_python/file/file_info_query.py`)
- File Service → Transactions: offers file actions
- Scheduled Transactions → Transactions: offers scheduling
- Node Management → Transactions: offers node actions
- Keys and Signing → Client Configuration: signs as operator (evidence: `src/hiero_sdk_python/client/client.py`)
- Query Framework → Mirror Node: queries balances
- TCK Server → Domain Handlers: routes requests (evidence: `tck/server.py`)
