xian-sdk
Build applications on the Xian blockchain using the xian-py Python SDK. Use when developing apps that interact with Xian — wallets, transactions, smart contracts, state queries, token transfers. Covers sync and async patterns.
Why use this skill?
Learn how to build blockchain applications on the Xian network with the xian-py SDK. Manage wallets, query state, and execute smart contracts with this guide.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/endogen/xian-sdk-skillWhat This Skill Does
The xian-sdk skill provides an interface to interact with the Xian blockchain network using Python. It abstracts the complexities of transaction signing, state querying, and contract interactions into simple, accessible methods. Developers can use this skill to automate wallet management, perform balance lookups, handle asset transfers, and interact with smart contracts on the Xian network. It supports both basic private key management and hierarchical deterministic (HD) wallet structures, ensuring that users can handle security-critical operations seamlessly within their OpenClaw agents.
Installation
To integrate this skill into your OpenClaw environment, use the following installation command:
clawhub install openclaw/skills/skills/endogen/xian-sdk-skill
For standard development, ensure you have the xian-py library available. If your application requires cross-chain compatibility or Ethereum-style wallet support, use: pip install "xian-py[eth]"
Use Cases
- Automated Payments: Building agents that automatically transfer tokens based on trigger conditions.
- Smart Contract Audits: Scripting queries to inspect contract state and variable values on-chain.
- Wallet Management: Creating and managing secure HD wallets for multi-account applications.
- DApp Backend: Acting as the bridge between a web interface and the Xian blockchain for transaction submission.
- Verification Services: Using cryptographic signing to authenticate user identity or off-chain messages.
Example Prompts
- "Check the current XIAN balance for address 0x123... and report it to me."
- "Deploy a new smart contract to the Xian testnet using the code provided in the 'token_template.py' file."
- "Send 500 tokens from my main wallet to the recipient address '0xabc...' and confirm the transaction hash."
Tips & Limitations
- Security: Never hardcode private keys in your scripts. Use environment variables or local secure storage.
- Sync/Async: The SDK supports synchronous operations by default; for high-throughput applications, ensure your agent handles network latency appropriately.
- Stamps: Always allow the SDK to perform stamp estimations, as manual gas settings can lead to transaction failures if values are too low.
- Network: Ensure the node URL is correct (e.g., http://node:26657) and reachable from your agent's environment.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-endogen-xian-sdk-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api
Related Skills
xian-node
Set up and manage Xian blockchain nodes. Use when deploying a Xian node to join mainnet/testnet, creating a new Xian network, or managing running nodes. Covers Docker-based setup via xian-stack, CometBFT configuration, and node monitoring.
ralph-loop
Generate copy-paste bash scripts for Ralph Wiggum/AI agent loops (Codex, Claude Code, OpenCode, Goose). Use when asked for a "Ralph loop", "Ralph Wiggum loop", or an AI loop to plan/build code via PROMPT.md + AGENTS.md, SPECS, and IMPLEMENTATION_PLAN.md, including PLANNING vs BUILDING modes, backpressure, sandboxing, and completion conditions.