कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

xian-sdk-skill

endogen द्वारा

AI & LLMs
821clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
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

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक