Xian SDK for Python for Openclaw

A comprehensive Python SDK for building decentralized applications, managing cryptographic wallets, and interacting with smart contracts on the Xian blockchain.

endogen
v0.1.0
Feb 8, 2026
0
2.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install xian-sdk-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install xian-sdk-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Xian SDK for Python?

The Xian SDK skill provides developers with a robust toolkit to integrate blockchain functionality into Python-based applications. By utilizing the xian-py library, users can perform complex operations such as wallet management, state queries, and transaction signing with minimal friction. This Openclaw Skills integration is designed for developers who need to build non-custodial wallets, DeFi services, or custom smart contract interactions on the Xian network.

Supporting both synchronous and asynchronous execution patterns, the SDK ensures that high-performance applications can handle concurrent blockchain requests efficiently. It also includes comprehensive support for HD wallets (BIP39/BIP32), allowing for standard mnemonic-based recovery and cross-chain compatible derivation paths, including Ethereum-style wallets.

Xian SDK for Python Use Cases

  • Creating and managing blockchain wallets using private keys or 24-word mnemonics.
  • Executing token transfers and interacting with smart contract functions on the Xian network.
  • Deploying and validating custom smart contracts against industry standards like XSC001.
  • Building high-concurrency data aggregators for real-time blockchain state monitoring.
  • Implementing secure, two-way encrypted messaging between decentralized identities.

How Xian SDK for Python Works

  1. Initialize a connection to a Xian network node by providing the node RPC URL to the Xian or XianAsync client.
  2. Instantiate a wallet using an existing private key or generate a new Hierarchical Deterministic (HD) wallet with a BIP39 mnemonic.
  3. Query the blockchain state, such as contract variables or token balances, using simple getter methods.
  4. Construct transaction payloads for contract interactions, including necessary arguments and stamp (gas) limits.
  5. Sign and broadcast transactions to the network, handling the asynchronous lifecycle of block inclusion and confirmation.

Xian SDK for Python Setup

To get started with this Openclaw Skills resource, install the library via pip:

pip install xian-py

For projects requiring Ethereum-compatible wallet derivation, install the additional extras:

pip install "xian-py[eth]"

Basic initialization in Python:

from xian_py import Xian, Wallet

wallet = Wallet()
xian = Xian('http://node:26657', wallet=wallet)

Xian SDK for Python Data Schema & Taxonomy

The skill facilitates data exchange through structured JSON objects and cryptographic strings. Key data structures include:

Component Type Description
Wallet Object Contains public_key (address) and private_key.
Transaction Map Includes fields like contract, function, kwargs, and sender.
Query Result Dictionary Returns the current state of a contract variable or account balance.
HD Wallet BIP39 24-word mnemonic seed and derivation path arrays.
Encrypted Message String Base64 encoded payload for secure E2EE communication.

Xian SDK for Python Advanced Features

  • Asynchronous client support using XianAsync for high-performance concurrent processing.
  • Built-in contract validation engine to verify smart contracts against Xian standards before deployment.
  • Transaction simulation (Read-Only) to test contract logic and estimate stamp usage without spending tokens.
  • Two-way E2EE (End-to-End Encryption) utilities for secure decentralized messaging.
  • Batch operation support to handle multiple blockchain queries simultaneously using asyncio.gather.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*