LaunchKit · 2026
Back to Skills

xian-sdk-skill

AI & LLMsv0.1.0

Build applications on the Xian blockchain using the xian-py Python SDK.

0
821 downloads
by @endogen

Setup & Installation

openclaw skills install @endogen/xian-sdk-skill

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install xian-sdk-skill

What This Skill Does

xian-py is a Python SDK for building applications on the Xian blockchain. It handles wallet creation, token transfers, smart contract deployment, and state queries. Supports both synchronous and async patterns for high-throughput use cases.

Provides both sync and async interfaces plus stamp estimation, so you can prototype quickly and optimize for production without switching libraries.

When to use it

  • Transfer tokens between Xian wallets programmatically
  • Deploy and interact with smart contracts on Xian
  • Query contract state and token balances
  • Build a DEX swap interface using async batch calls
  • Encrypt messages between two wallet addresses

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: deploy a simple token contract and transfer 100 tokens to another address

AGENT
  1. 1Create a wallet from an existing private key using Wallet(private_key)
  2. 2Initialize Xian client with node URL and wallet
  3. 3Define contract code with balances Hash, seed constructor, and transfer function
  4. 4Call xian.submit_contract('my_token', code) to deploy
  5. 5Call xian.send_tx('my_token', 'transfer', {'to': recipient, 'amount': 100}) to transfer tokens
OUTPUT

Contract deployed and transfer confirmed with tx_hash returned in result dict

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Xian node URL (self-hosted or public endpoint)Private key or mnemonic for a funded Xian wallet