تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

xian-sdk-skill

بواسطة endogen

AI & LLMs
821التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

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

الوصف

ما الذي تفعله هذه المهارة

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.

متى تستخدمها

  • 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

مثال على سير العمل

الإدخال

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

الوكيل
  1. 1

    Create a wallet from an existing private key using Wallet(private_key)

  2. 2

    Initialize Xian client with node URL and wallet

  3. 3

    Define contract code with balances Hash, seed constructor, and transfer function

  4. 4

    Call xian.submit_contract('my_token', code) to deploy

  5. 5

    Call xian.send_tx('my_token', 'transfer', {'to': recipient, 'amount': 100}) to transfer tokens

الإخراج

Contract deployed and transfer confirmed with tx_hash returned in result dict

المتطلبات

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

التثبيت

clawhub install endogen/xian-sdk-skill

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط