Xspoonai official contract deployer

From jiayaoqijia/cryptoskill · View interactive version

Xspoonai official contract deployer is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. Compile and deploy Solidity smart contracts to EVM chains.

How to use this skill

Skill file

Smart Contract Deployer

A skill to compile and deploy Solidity smart contracts. It supports compiling source code or files and deploying to any EVM-compatible blockchain.

Quick Start

# Deploy a simple contract
result = await agent.run_tool(
    "deploy_contract",
    source_code="contract Hello { string public message = 'Hello'; }",
    contract_name="Hello",
    rpc_url="http://localhost:8545",
    private_key="0x..."
)
print(result)

Scripts

| Script | Purpose |

|--------|---------|

| deploy.py | Compiles and deploys Solidity contracts |

Environment Variables

| Variable | Required | Description |

|----------|----------|-------------|

| WEB3_RPC_URL | No | Default RPC URL (can be passed as arg) |

| PRIVATE_KEY | No | Default Private Key (can be passed as arg) |

Best Practices

  1. Use specific compiler versions (e.g., 0.8.19).
  2. Always verify the RPC URL and Chain ID before deploying to mainnet.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.