Blockchain Development
knowledge skill
Writes and compiles smart contracts in Solidity for Ethereum-compatible chains, producing bytecode and ABI artifacts. Deploys contracts to a specified RPC endpoint and verifies source on Etherscan.
Worked examples
- {"input": {"solidity_code": "pragma solidity ^0.8.0; contract A { uint public x; }", "rpc_url": "https://mainnet.infura.io/v3/...", "private_key": "0xabc123...", "chain_id": 1}, "output": {"contract_address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", "transaction_hash": "0x8c7f...", "bytecode": "608060405234801561001057600080fd5b50...", "abi": "[{\"inputs\":[],\"name\":\"x\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]"}}
- {"input": {"solidity_code": "pragma solidity ^0.8.0; contract B { function set(uint y) public { x = y; } uint public x; }", "rpc_url": "https://goerli.infura.io/v3/...", "private_key": "0xdef456...", "chain_id": 5}, "output": {"contract_address": "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0", "transaction_hash": "0x1a2b...", "bytecode": "608060405234801561001057600080fd5b50...", "abi": "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"y\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}, ...]"}}
Input
- solidity_code: string
- rpc_url: string
- private_key: string
- chain_id: integer
Output
- contract_address: string
- transaction_hash: string
- bytecode: string
- abi: string
Details
- Skill type: knowledge skill
- Safety level: safe_public_research
- Version: 1.0.0