Skip to main content

xian-abci

xian-abci is the CometBFT-facing Xian node runtime. It owns deterministic chain execution, ABCI request handling, state export and snapshot flows, and the node-adjacent services (BDS indexing, metrics, the optional dashboard) that run alongside a Xian validator or full node.

The published PyPI package is xian-tech-abci. Console entrypoints (xian-abci, xian-dashboard, xian-configure-node, and the BDS / state helpers) are installed by the package and used both directly and from the operator-facing xian-cli.

Runtime Shape

flowchart LR
  CometBFT["CometBFT"] --> ABCI["ABCI handlers"]
  ABCI --> Executor["Transaction processor"]
  Executor --> Contracting["xian-contracting runtime"]
  Executor --> State["Chain state"]
  State --> BDS["BDS indexer"]
  State --> Snapshots["Export and snapshot tools"]
  ABCI --> Metrics["Metrics"]
  ABCI --> Dashboard["Optional dashboard"]
  CLI["xian-cli and xian-stack"] --> Entrypoints["xian-abci entrypoints"]

Quick Start

Bootstrap the development environment with uv:

UV_CACHE_DIR=/tmp/uv-cache uv sync --group dev

Inspect the available command surface:

uv run xian-abci --help
uv run xian-dashboard --help
uv run xian-configure-node --help
uv run xian-export-state --help
uv run xian-state-snapshot --help
uv run xian-bds-reindex --help
uv run xian-bds-snapshot --help
uv run xian-bds-spool --help

The native VM (xian-tech-vm-core) is a required dependency: it executes blocks and is the one transaction admission implementation (CheckTx, PrepareProposal, ProcessProposal and FinalizeBlock). Optional extra:

  • zk — enables the native zk verifier required by nodes on chains with the zk runtime feature.

Fresh chains use unmodified upstream CometBFT 0.40.0 with the flood mempool and Ed25519 validators. Other mempool modes are rejected at startup. Bootstrap uses ordinary replay or a verified full-node-store backup; P2P application state sync is disabled. Offline application exports remain available.

For a ready-made local network instead of wiring the node yourself, use xian-stack. This repo focuses on the runtime and backend tooling, not the full localnet UX.

Principles

  • Deterministic chain execution. The ABCI handlers, transaction execution, rewards, validators, and query behavior live here and must be deterministic across nodes.
  • Backend, not UX. Operator-facing lifecycle commands belong in xian-cli. This repo exposes importable helpers and backend-oriented CLIs only.
  • Universal node runtime. No network-specific genesis files, seeds, or snapshots. Committed chain assets live in xian-configs.
  • Contract semantics live elsewhere. Changes to contract execution semantics belong in xian-contracting, not here.
  • No Compose / orchestration. Container lifecycle and local-stack orchestration belong in xian-stack.

Local uv development requires a sibling checkout of ../xian-contracting. Full validation also uses sibling checkouts of ../xian-contracts, ../xian-configs, and ../xian-stack.

Key Directories

  • src/xian/ — repo-owned node runtime: ABCI handlers, services, utilities, and CLI entrypoints.
    • methods/ — ABCI request handlers (CheckTx, DeliverTx, Commit, …).
    • services/ — background services such as the simulator and BDS support.
    • cli/ — backend and developer entrypoints (configure-node, export-state, BDS helpers, …) wrapping importable helpers.
    • tools/ — one-off upgrade data and state-patch payloads. Treated as a transition area; new code should live as importable helpers under src/xian/.
    • dashboard/ — the optional operator dashboard.
  • src/abci/ — lower-level ABCI server and protocol glue.
  • protos/ — exact CometBFT 0.40.0 tendermint.* schemas and their protobuf dependencies.
  • build_proto.py — regenerates checked-in protobuf Python stubs under src/.
  • scripts/ — repo-level validation and manual benchmark entrypoints.
  • tests/ — unit, ABCI-method, integration, governance, tools, and system coverage.
  • docs/ — architecture notes, API surface, safety invariants, snapshots / pruning model, governance, and backlog.

Validation

Preferred full validation entrypoint, used for releases:

./scripts/validate-release.sh

It defaults to Python 3.14 (override with XIAN_ABCI_VALIDATE_PYTHON) and runs:

  • ./scripts/validate-repo.sh, including protobuf regeneration and stale-stub checks, lint, formatting, and the full node test suite (with the transaction admission parity corpus, tests/unit/test_admission_parity.py)

Faster local loops:

UV_CACHE_DIR=/tmp/uv-cache uv run ruff check .
UV_CACHE_DIR=/tmp/uv-cache uv run ruff format --check .
UV_CACHE_DIR=/tmp/uv-cache uv run pytest
UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unit/test_node_setup.py

CI provisions Postgres for the BDS-backed paths. To mirror that locally, expose Postgres at postgres://postgres:1234@localhost:5432/xian.

Metadata

Release files for xian-tech-abci 0.9.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xian-tech-abci 0.9.4
File Size Uploaded Provenance Actions
xian_tech_abci-0.9.4.tar.gz 279.9 kB With provenance Details for xian_tech_abci-0.9.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xian-tech-abci 0.9.4
File Interpreter ABI Platform Actions
xian_tech_abci-0.9.4-py3-none-any.whl Python 3 none any Details for xian_tech_abci-0.9.4-py3-none-any.whl

Total release size: 608.4 kB

Release files / xian_tech_abci-0.9.4.tar.gz

Download URL xian_tech_abci-0.9.4.tar.gz
Size 279.9 kB
Tags Source
SHA-256 checksum
How to use checksums
41ec55b371e95b8979b6e4cdd661e209c36a15ae397b93bfba6e2d96d8052ffe
BLAKE2b-256 checksum
How to use checksums
2936f2bd9af82da34a579e36dd54edfa99ddd70bb9c407bac456fd7316299949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / xian_tech_abci-0.9.4-py3-none-any.whl

Download URL xian_tech_abci-0.9.4-py3-none-any.whl
Size 328.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ad11973f3d2ebe9aefa921655ec1bca61fa4647c42f427e474c6c0df92f15c6
BLAKE2b-256 checksum
How to use checksums
cee9ac58ab1b4ef90ddd9d6ce31c80428ef9d7cc8500819480052caa41aee705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for xian-tech-abci 0.9.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xian_tech_abci-0.9.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page