본문으로 건너뛰기
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 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크