qfc-openclaw-skill
QFC blockchain interaction — wallet, faucet, chain queries, staking, epoch & finality, AI inference
What this skill does
# QFC OpenClaw Skill > AI agent skill for full QFC blockchain interaction ## Capabilities ### Wallet Management - **Create Wallet**: Generate a new HD wallet with mnemonic, address, and private key - **Import Wallet**: Restore wallet from private key - **Get Balance**: Query QFC balance for any address - **Send QFC**: Transfer QFC tokens to another address - **Sign Message**: Sign an arbitrary message with the wallet's private key ### Wallet Persistence - **Save Wallet**: Encrypt and persist a wallet to disk (`~/.openclaw/qfc-wallets/`) using industry-standard keystore format (scrypt KDF, compatible with MetaMask/Geth) - **Load Wallet**: Decrypt and restore a previously saved wallet by address + password - **List Saved Wallets**: Show all persisted wallets (address, name, network) without needing a password - **Remove Wallet**: Delete a saved wallet's keystore file and metadata - **Export Keystore JSON**: Get the encrypted keystore JSON for a saved wallet (for import into MetaMask or other tools) ### Faucet (Testnet Only) - **Request Test QFC**: Get test tokens on testnet (chain_id=9000) ### Chain Queries - **Get Block Number**: Latest block height - **Get Block**: Block details by number or 'latest' - **Get Transaction**: Transaction info by hash - **Get Receipt**: Transaction receipt with logs ### Network Status - **Node Info**: Version, chain ID, peer count, validator status - **Network State**: Current network condition (normal/congested) - **Chain ID / Block Number / Gas Price**: Basic network parameters ### Staking & Validators - **List Validators**: All validators with stake, score, and compute mode - **Get Stake**: Staked QFC amount for an address - **Contribution Score**: Validator score (0-10000) - **Score Breakdown**: Detailed 7-dimension scoring with metrics ### Epoch & Finality - **Current Epoch**: Epoch number, start time, duration - **Finalized Block**: Latest finalized block number ### Smart Contracts (v2.1) - **Call Contract**: Read contract state (no gas needed) — pass address, ABI, method, and args - **Send Transaction**: Write to a contract (requires wallet signer, costs gas) - **Deploy Contract**: Deploy a new contract from ABI + bytecode - **Check Contract**: Verify if an address has contract code deployed - **Get Code**: Retrieve raw bytecode at an address - **Verify Contract**: Submit source code to QFC explorer for verification (compiler version, EVM version, optimizer settings) ### ERC-20 Tokens (v2.1) - **Deploy Token**: Create a new ERC-20 token on QFC — specify name, symbol, and initial supply. All tokens are minted to the deployer. No compiler needed (pre-compiled bytecode). Set `mintable: true` for a token with mint/burn/owner support. Auto-verifies source code on QFC explorer after deployment. - **Mint Tokens**: Mint new tokens to any address (mintable tokens only, caller must be owner) - **Burn Tokens**: Burn tokens from your balance (reduces total supply, mintable tokens only) - **Token Info**: Get name, symbol, decimals, and total supply of any ERC-20 token - **Token Balance**: Check token balance for any address - **Transfer Tokens**: Send ERC-20 tokens to another address (auto-handles decimals) - **Approve Spender**: Approve a contract/address to spend tokens (supports "max" for unlimited) - **Check Allowance**: Query how much a spender is approved to use - **Token Portfolio** (v2.3): View all token holdings for a wallet — native QFC balance plus every ERC-20 token with non-zero balance - **Transfer History** (v2.3): View token transfer history from the explorer — filter by token and/or address - **Batch Transfer Tokens** (v2.4): Send tokens to multiple addresses in one operation (sequential transfers) - **Batch Send QFC** (v2.4): Send native QFC to multiple addresses - **Deploy Airdrop Contract** (v2.5): Deploy a reusable Airdrop contract — batch transfer any ERC-20 in a single transaction (saves gas vs sequential). Auto-verifies source on explorer. - **Smart Airdrop** (v2.5): Airdrop tokens via the Airdrop contract — auto-approves, supports variable or fixed amounts per recipient ### NFT / ERC-721 (v2.4) - **Deploy NFT Collection**: Create a new ERC-721 NFT contract with name and symbol - **Mint NFT**: Mint a new NFT with metadata URI to any address (owner only) - **View NFT**: Query token URI, owner, and balance for any NFT - **Transfer NFT**: Transfer an NFT to another address ### Token Swap / DEX (v2.5) - **Deploy Pool**: Create a constant-product AMM pool (x*y=k) for any ERC-20 token pair. 0.3% swap fee. LP tokens track liquidity shares. Auto-verifies source on explorer. - **Pool Info**: View pool reserves, token details, current price, and total LP supply - **Add Liquidity**: Deposit both tokens into a pool to earn LP tokens (auto-approves) - **Remove Liquidity**: Burn LP tokens to withdraw proportional share of both tokens - **Swap Tokens**: Swap one token for another with slippage protection (default 1%) - **Get Quote**: Preview expected output amount, price impact, and fee before swapping - **LP Balance**: Check LP token balance for any address - **Deploy WQFC** (v3.0): Deploy the Wrapped QFC (ERC-20 wrapper for native QFC) - **Wrap/Unwrap QFC** (v3.0): Convert native QFC ↔ WQFC for use in DEX pools - **Swap QFC for Token** (v3.0): Auto-wrap native QFC and swap in one call - **Swap Token for QFC** (v3.0): Swap token to WQFC and auto-unwrap to native QFC ### Token Launchpad (v3.0) - **Launch Token**: One-command token launch — deploy token + deploy WQFC pool + add initial liquidity. Returns token address, pool address, and LP details. ### NFT Marketplace (v3.0) - **Deploy Marketplace**: Deploy an on-chain NFT marketplace contract with configurable platform fee (default 2%, max 10%). Fee is deducted from sale price and sent to feeRecipient. - **List NFT**: List an NFT for sale with a price in QFC (auto-approves marketplace) - **Buy NFT**: Purchase a listed NFT by sending QFC (platform fee auto-deducted, excess auto-refunded) - **Cancel Listing**: Cancel an active listing (seller only) - **View Listings**: Get all active listings or filter by NFT collection - **Get Listing**: View details of a specific listing - **Get Fee Info**: Query current platform fee (basis points) and fee recipient - **Set Fee**: Update platform fee and/or recipient (marketplace owner only) ### Multi-Call (v3.0) - **Deploy Multicall3**: Deploy a batch-call contract for aggregating view calls - **Batch Calls**: Execute multiple contract reads in a single RPC request - **Batch Token Balances**: Query balanceOf for many tokens at once - **Batch Pool Reserves**: Query reserves for multiple AMM pools at once ### Event Subscriptions (v3.0) - **Watch Transfers**: Poll for new ERC-20 Transfer events on a token - **Watch Swaps**: Poll for new Swap events on an AMM pool - **Watch NFT Sales**: Poll for new Sold events on the marketplace - **Watch Blocks**: Poll for new blocks with transaction counts ### Discord Bot Integration (v2.5) - **Command Processor**: Framework-agnostic Discord bot command handler — no discord.js dependency - **Supported Commands**: `!help`, `!faucet`, `!balance`, `!portfolio`, `!tx`, `!block`, `!price`, `!info` - **Parse + Execute**: Parse raw messages into commands, execute them, and return Discord-formatted responses - **Custom Prefix**: Configurable command prefix (default `!`) - **Example Script**: See `scripts/discord-bot-example.mjs` for discord.js integration pattern ### Agent Registry (v3.2) - **Register Agent**: Register an AI agent on-chain with permissions, daily spending limit, max-per-tx limit, and initial QFC deposit - **Fund Agent**: Top up an agent's on-chain deposit with additional QFC - **Revoke Agent**: Deactivate a registered agent on the registry - **Get Agent**: Query agent info by ID (owner, address, permissions, deposit, daily spend, active status) - **List Agents**: List all agent IDs owned by an address - **Issue Session Key**: Authorize a session key address for an agent
Related in Web3
xaut-trade
IncludedBuy or sell XAUT (Tether Gold) on Ethereum. Supports market orders (Uniswap V3) and limit orders (UniswapX). Wallet modes: Foundry keystore or WDK. Delegates non-XAUT intents to registered skills (e.g. Polymarket prediction markets, Hyperliquid trading). Triggers: buy XAUT, XAUT trade, swap USDT for XAUT, sell XAUT, swap XAUT for USDT, limit order, limit buy XAUT, limit sell XAUT, check limit order, cancel limit order, XAUT when, create wallet, setup wallet, polymarket, prediction market, bet on, odds on, hyperliquid, perp, perpetual, long, short, open long, open short, close position, leverage.
gate-dex-trade
IncludedExecutes on-chain token swaps via Gate DEX. Use when user wants to swap, buy, sell, exchange, or convert tokens, or bridge cross-chain. Covers full swap flow: price quotes, transaction build, signing, and submission. Do NOT use for read-only data lookups or wallet account management.
hunch
IncludedDiscover, bet on, track, and settle Hunch prediction markets in natural language. Trigger when a user wants to bet, take a position, or get odds on a crypto outcome — token market-cap milestones and flips, launchpad races (Bankr vs pump.fun volume / #1-days / launches over a cap), token head-to-head outperformance, mcap strike-ladders, and up/down price rounds. Also trigger on "what can I bet on about $TOKEN", "odds on …", "take YES/NO on …", "show my Hunch bets", "did my market resolve". Settles in USDC on Base via x402 (≤ $10 / bet); every bet returns an on-chain proof.
opensea
IncludedQuery NFT data, trade on the Seaport marketplace, and swap ERC20 tokens across Ethereum, Base, Arbitrum, Optimism, Polygon, and more.
polymarket
IncludedTrade on Polymarket prediction markets (CLOB V2) from a Privy EOA wallet. Search markets, place/cancel orders, manage positions. No private key handling. Use when the user wants to bet on event outcomes (e.g. "buy YES at 0.65 on the ceasefire market", "what are my open positions", "close my Trump bet").
analyzing-market-sentiment
IncludedThis skill provides comprehensive cryptocurrency market sentiment analysis by combining multiple data sources Analyze cryptocurrency market sentiment using Fear & Greed Index, news analysis, and market momentum. Use when gauging overall market mood, checking if markets are fearful or greedy, or analyzing sentiment for specific coins. Trigger with phrases like "analyze crypto sentiment", "check market mood", "is the market fearful", "sentiment for Bitcoin", or "Fear and Greed index".