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 --> VM["Rust xian-vm-core: execution, fees and rewards"]
  Executor --> State["Chain state"]
  ABCI -->|receipts and state patches| BDS["Asynchronous BDS indexer"]
  State --> Snapshots["Export and snapshot tools"]
  ABCI --> Metrics["Metrics"]
  Dashboard["Optional dashboard"] --> RPC["CometBFT RPC and application queries"]
  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 — installs the off-chain Python proving toolkit. The VM already links the native verifier; enabling the chain's zk feature is a genesis or governed state decision, not a package-extra switch.

Fresh chains use unmodified upstream CometBFT 0.40.0 with the flood mempool and Ed25519 validators. Other mempool modes are rejected at startup. Keep rechecks enabled so the mempool removes transactions invalidated by a committed nonce, balance, or fee policy change. For each sender, a committed nonce makes every lower nonce unusable. 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, proposal checks, FinalizeBlock, Commit, Query).
    • 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 PostgreSQL 18.7 for the BDS-backed paths. To mirror that locally, expose Postgres at postgres://postgres:1234@localhost:5432/xian. CI also runs admission and block replay against a fresh, non-editable install from uv.lock, alongside the editable development build.

Metadata

Release files for xian-tech-abci 0.10.0

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.10.0
File Size Uploaded Provenance Actions
xian_tech_abci-0.10.0.tar.gz 281.3 kB With provenance Details for xian_tech_abci-0.10.0.tar.gz

Built distribution (wheel)

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

Total release size: 611.5 kB

Release files / xian_tech_abci-0.10.0.tar.gz

Download URL xian_tech_abci-0.10.0.tar.gz
Size 281.3 kB
Tags Source
SHA-256 checksum
How to use checksums
218241c53df81aa7e0a5fa7c39c1462d812e9723c6c701aec8382dc2caf9e45f
BLAKE2b-256 checksum
How to use checksums
f2b6dec8ea0e2bd6a49c7e1906165a97fe81cab72a3716783b814fb0c167da52
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 27, 2026.

Transparency log

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

Download URL xian_tech_abci-0.10.0-py3-none-any.whl
Size 330.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4163bef3d2c8b72451f6077028b705976e84f65f013e5eaefa3c8f421c5f61cf
BLAKE2b-256 checksum
How to use checksums
c9b07f3a3ac1fe8cc8662d90ac9a2c7a41347878c9e96b4d8ab5201cc2220159
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 27, 2026.

Transparency log

Security for xian-tech-abci 0.10.0

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.10.0.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 27, 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