This source did not publish a separate summary. Review SKILL.md before using the skill.
SKILL.md
chainai — Ethereum Transactions Skill
⚠️ DISCLAIMER — USE AT YOUR OWN RISK
This tool interacts with real blockchain networks and real funds. The author(s) of this tool are not responsible for any loss of funds, damages, or unintended consequences arising from its use. By using this skill, you accept full responsibility for all operations performed.
🔒 MANDATORY SECURITY REQUIREMENTS FOR ALL AGENTS
Agents MUST take every possible action to safeguard CHAINAI_PRIVATE_KEY and all other private keys from exposure. Specifically:
NEVER log, print, echo, or display private keys in any user-facing output, logs, chat messages, or debug traces.
NEVER store private keys in plain text files, version control, or any persistent storage that is not explicitly encrypted and access-controlled.
NEVER transmit private keys over unencrypted channels or include them in URLs, query parameters, or request bodies to third-party services.
NEVER include private keys in error messages, stack traces, or diagnostic output.
ALWAYS prefer the CHAINAI_PRIVATE_KEY environment variable over the -k flag to minimize key exposure in shell history and process listings.
ALWAYS treat private keys as the highest-sensitivity secret. A leaked private key grants full, irrevocable control over all funds in the associated wallet.
� ADDRESS FORMATTING RULES
Always use ERC-55 checksum addresses when passing addresses to any command (wallet addresses, token contract addresses, recipient addresses, etc.).
If you do not know the correct checksum, use all lowercase addresses (e.g. instead of guessing the mixed-case checksum).
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Never guess a token contract address. If you are unsure of the correct token contract address, always ask the user to provide it. Do not fabricate or assume token addresses.
�🚀 BEFORE YOU BEGIN
Verify your private key is set: Run npx [email protected] who-am-i to confirm CHAINAI_PRIVATE_KEY is properly configured and resolves to the expected address before proceeding with any other command.
No private key? Use npx [email protected] gen-wallet to generate a new wallet. Save the returned private key securely (e.g. as an environment variable) — it will not be shown again.
Fund your account: You must deposit the necessary funds (native tokens for gas + any tokens you intend to send or swap) to the wallet address before using send, swap, or any transaction-submitting command. Commands will fail if the account has insufficient balance.
Overview
chainai is a non-interactive CLI tool for Ethereum and EVM-compatible blockchain operations. It handles signing, sending, broadcasting transactions, token swaps (1inch Fusion), balance queries, and wallet generation.
⚠️ CRITICAL SECURITY WARNING: Signs a raw hash (secp256k1) without any prefix. The resulting signature can authorize any on-chain action. Use sign-message instead unless raw hash signing is explicitly required. Before using, verify the hash is legitimate and no safer alternative exists.