Skip to main content

Xian Wallet CLI

xian-wallet is a terminal wallet for Xian. It combines named accounts, encrypted recovery backups, portfolio and activity views, and transaction approval for people and agents. The CLI, Textual interface, and signer service use the same Xian SDK transaction format.

Install

Use Python 3.14 and uv on macOS or Linux.

uv tool install xian-tech-wallet-cli
xian-wallet --help

For shielded notes, install with uv tool install 'xian-tech-wallet-cli[shielded]'. If uv reports that its executable directory is outside PATH, run uv tool update-shell and open a fresh terminal.

Control the state directory with --home or XIAN_WALLET_HOME. It defaults to $XDG_STATE_HOME/xian-wallet or ~/.local/state/xian-wallet.

Accounts and networks

xian-wallet account create primary
xian-wallet account backup primary --out primary.backup.json
xian-wallet receive primary --qr
xian-wallet ui

The Accounts tab shows a demo balance, public address, and receive QR code

Use account restore NAME --mnemonic-file FILE --index INDEX for the same mnemonic-derived address as the browser and mobile wallets. Use account import-key NAME --key-file FILE for a previously generated raw Ed25519 key, account derive SOURCE NAME --index INDEX for another account from the same recovery phrase, and account watch NAME ADDRESS for a public address. account restore-backup FILE verifies an encrypted CLI backup before restoring it. account export-recovery NAME --out FILE writes the mnemonic to an owner-only file for offline storage.

The vault unlocks only for each sensitive operation and prompts for its password locally. Trusted signer processes can use --password-file for an explicitly provisioned owner-only file. Use a separate OS identity or host for a signer that serves agents.

The default RPC is http://127.0.0.1:26657. For a saved network, obtain the chain ID and first-block hash from a trusted source. Add it with network add NAME URL --chain-id ID --first-block-hash HASH, then select it with network use NAME or the global --network NAME option. Named profiles allow explicit HTTPS RPCs. The node must be synced and serve block 1. Once you add a profile, the wallet requires at least one saved profile. To replace the active profile, add the replacement if needed, select it with network use NAME, then remove the old profile with network remove NAME.

Review and send

xian-wallet contact add recipient "$RECIPIENT_ADDRESS"
xian-wallet prepare --from primary --to recipient --amount 1.25 --out proposal.json
xian-wallet approve proposal.json --account primary --out approval.json --textual
xian-wallet submit proposal.json --approval approval.json

Transfer review showing a demo amount, sender, recipient, network, chi limit, and signing controls

Use --token CONTRACT for a fungible token. token watch NAME CONTRACT adds a token to portfolio ACCOUNT. activity reads the local approval and receipt journal. incoming ACCOUNT --token CONTRACT scans a page of BDS-indexed transfers. Use the returned next_offset to keep scanning if a page lacks matches.

Use call CONTRACT FUNCTION --args ARGS.json for read-only simulation. Use prepare-call to prepare a typed write. Generic fractional values use {"__fixed__":"1.25"}. The simulator and signing flow share the exact payload. dex, nft, message, x402, shielded, and walletconnect provide the product-specific workflows in the wallet guide.

Agent approvals

The agent prepares a proposal and submits it to the trusted signer with agent request. The owner reviews it using the Textual inbox or a configured Telegram bot. The agent then uses agent fetch to obtain the signed approval and submits it with submit. Use grant to opt into autonomous, revocable transfers within an account, network, asset, recipient, amount, chi budget, and expiry. The agent needs the signer socket or an SSH socket forward and the relevant bearer credential. Signer setup and examples

Put --json before the command for one xian-wallet-cli/v1 result on stdout. Amounts are decimal strings. Normal usage errors go to stderr.

Exit Meaning
0 Command succeeded, or transfer committed successfully
1 Admission rejection, failed execution, or failed verification
2 Command, input, approval, file, or RPC error
3 Final outcome is pending or unknown

After interruption, use receipt TX_HASH or retry the same proposal and approval. The wallet only signs competing same-nonce proposals through an explicit owner replacement. Keep the original hash available until one of the competing transactions is finalized.

Validation

From a source checkout, use uv run xian-wallet --help to run the CLI.

uv run --extra shielded ruff check
uv run --extra shielded ruff format --check
uv run --extra shielded pytest
node --test tests/walletconnect.test.mjs

Metadata

Release files for xian-tech-wallet-cli 0.2.3

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-wallet-cli 0.2.3
File Size Uploaded Provenance Actions
xian_tech_wallet_cli-0.2.3.tar.gz 71.2 kB With provenance Details for xian_tech_wallet_cli-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xian-tech-wallet-cli 0.2.3
File Interpreter ABI Platform Actions
xian_tech_wallet_cli-0.2.3-py3-none-any.whl Python 3 none any Details for xian_tech_wallet_cli-0.2.3-py3-none-any.whl

Total release size: 136.7 kB

Release files / xian_tech_wallet_cli-0.2.3.tar.gz

Download URL xian_tech_wallet_cli-0.2.3.tar.gz
Size 71.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9ea65d2a9b84a12cdb1529b0ea07e7b76ca1bdf6c9a262cd2bf82dd2f362ef4c
BLAKE2b-256 checksum
How to use checksums
a58f875993d41c7da76b66322ca4dcb38a21648a580fff092224aa1bcc86cca9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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_wallet_cli-0.2.3-py3-none-any.whl

Download URL xian_tech_wallet_cli-0.2.3-py3-none-any.whl
Size 65.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af0c78b09db49390cf502b16e95acbe8623b33e63a9e7ea33656f7c7a7463bac
BLAKE2b-256 checksum
How to use checksums
9e58ba064f199a36bd3c52ebd4e0ce90a1dfd6fb09927ed2214d026a7bf2be8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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-wallet-cli 0.2.3

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_wallet_cli-0.2.3.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