{
  "schemaVersion": "1.0",
  "item": {
    "slug": "megaeth",
    "name": "MegaETH AI Developer",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/0xGuardbot/megaeth",
    "canonicalUrl": "https://clawhub.ai/0xGuardbot/megaeth",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/megaeth",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=megaeth",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "frontend-patterns.md",
      "gas-model.md",
      "resources.md",
      "rpc-methods.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "megaeth",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T11:26:57.909Z",
      "expiresAt": "2026-05-12T11:26:57.909Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=megaeth",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=megaeth",
        "contentDisposition": "attachment; filename=\"megaeth-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "megaeth"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/megaeth"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/megaeth",
    "agentPageUrl": "https://openagent3.xyz/skills/megaeth/agent",
    "manifestUrl": "https://openagent3.xyz/skills/megaeth/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/megaeth/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "What this Skill is for",
        "body": "Use this Skill when the user asks for:\n\nWallet setup and management on MegaETH\nSending transactions, checking balances, token operations\nToken swaps via Kyber Network aggregator\nMegaETH dApp frontend (React / Next.js with real-time updates)\nRPC configuration and transaction flow optimization\nSmart contract development with MegaEVM considerations\nStorage optimization (avoiding expensive SSTORE costs)\nGas estimation and fee configuration\nTesting and debugging MegaETH transactions\nWebSocket subscriptions and mini-block streaming\nBridging ETH from Ethereum to MegaETH"
      },
      {
        "title": "Chain Configuration",
        "body": "NetworkChain IDRPCExplorerMainnet4326https://mainnet.megaeth.com/rpchttps://mega.etherscan.ioTestnet6343https://carrot.megaeth.com/rpchttps://megaeth-testnet-v2.blockscout.com"
      },
      {
        "title": "1. Transaction submission: eth_sendRawTransactionSync first",
        "body": "Use eth_sendRawTransactionSync (EIP-7966) — returns receipt in <10ms\nEliminates polling for eth_getTransactionReceipt\nDocs: https://docs.megaeth.com/realtime-api"
      },
      {
        "title": "2. RPC: Multicall for eth_call batching (v2.0.14+)",
        "body": "Prefer Multicall (aggregate3) for batching multiple eth_call requests\nAs of v2.0.14, eth_call is 2-10x faster; Multicall amortizes per-RPC overhead\nStill avoid mixing slow methods (eth_getLogs) with fast ones in same request\n\nNote: Earlier guidance recommended JSON-RPC batching over Multicall for caching benefits. With v2.0.14's performance improvements, Multicall is now preferred."
      },
      {
        "title": "3. WebSocket: keepalive required",
        "body": "Send eth_chainId every 30 seconds\n50 connections per VIP endpoint, 10 subscriptions per connection\nUse miniBlocks subscription for real-time data"
      },
      {
        "title": "4. Storage: slot reuse patterns",
        "body": "SSTORE 0→non-zero costs 2M gas × multiplier (expensive)\nUse Solady's RedBlackTreeLib instead of Solidity mappings\nDesign for slot reuse, not constant allocation"
      },
      {
        "title": "5. Gas: skip estimation when possible",
        "body": "Base fee stable at 0.001 gwei, no EIP-1559 adjustment\nIgnore eth_maxPriorityFeePerGas (returns 0)\nHardcode gas limits to save round-trip\nAlways use remote eth_estimateGas (MegaEVM costs differ from standard EVM)"
      },
      {
        "title": "6. Debugging: mega-evme CLI",
        "body": "Replay transactions with full traces\nProfile gas by opcode\nhttps://github.com/megaeth-labs/mega-evm"
      },
      {
        "title": "1. Classify the task layer",
        "body": "Frontend/WebSocket layer\nRPC/transaction layer\nSmart contract layer\nTesting/debugging layer"
      },
      {
        "title": "2. Pick the right patterns",
        "body": "Frontend: single WebSocket → broadcast to users (not per-user connections)\nTransactions: sign locally → eth_sendRawTransactionSync → done\nContracts: check SSTORE patterns, avoid volatile data access limits\nTesting: use mega-evme for replay, Foundry with --skip-simulation"
      },
      {
        "title": "3. Implement with MegaETH-specific correctness",
        "body": "Always be explicit about:\n\nChain ID (4326 mainnet, 6343 testnet)\nGas limit (hardcode when possible)\nBase fee (0.001 gwei, no buffer)\nStorage costs (new slots are expensive)\nVolatile data limits (20M gas after block.timestamp access)"
      },
      {
        "title": "4. Deliverables expectations",
        "body": "When implementing changes, provide:\n\nExact files changed + diffs\nCommands to build/test/deploy\nGas cost notes for storage-heavy operations\nRPC optimization notes if applicable"
      },
      {
        "title": "Progressive disclosure (read when needed)",
        "body": "Wallet operations: wallet-operations.md\nFrontend patterns: frontend-patterns.md\nRPC methods reference: rpc-methods.md\nSmart contract patterns: smart-contracts.md\nStorage optimization: storage-optimization.md\nGas model: gas-model.md\nTesting & debugging: testing.md\nSecurity considerations: security.md\nReference links: resources.md"
      }
    ],
    "body": "MegaETH Development Skill\nWhat this Skill is for\n\nUse this Skill when the user asks for:\n\nWallet setup and management on MegaETH\nSending transactions, checking balances, token operations\nToken swaps via Kyber Network aggregator\nMegaETH dApp frontend (React / Next.js with real-time updates)\nRPC configuration and transaction flow optimization\nSmart contract development with MegaEVM considerations\nStorage optimization (avoiding expensive SSTORE costs)\nGas estimation and fee configuration\nTesting and debugging MegaETH transactions\nWebSocket subscriptions and mini-block streaming\nBridging ETH from Ethereum to MegaETH\nChain Configuration\nNetwork\tChain ID\tRPC\tExplorer\nMainnet\t4326\thttps://mainnet.megaeth.com/rpc\thttps://mega.etherscan.io\nTestnet\t6343\thttps://carrot.megaeth.com/rpc\thttps://megaeth-testnet-v2.blockscout.com\nDefault stack decisions (opinionated)\n1. Transaction submission: eth_sendRawTransactionSync first\nUse eth_sendRawTransactionSync (EIP-7966) — returns receipt in <10ms\nEliminates polling for eth_getTransactionReceipt\nDocs: https://docs.megaeth.com/realtime-api\n2. RPC: Multicall for eth_call batching (v2.0.14+)\nPrefer Multicall (aggregate3) for batching multiple eth_call requests\nAs of v2.0.14, eth_call is 2-10x faster; Multicall amortizes per-RPC overhead\nStill avoid mixing slow methods (eth_getLogs) with fast ones in same request\n\nNote: Earlier guidance recommended JSON-RPC batching over Multicall for caching benefits. With v2.0.14's performance improvements, Multicall is now preferred.\n\n3. WebSocket: keepalive required\nSend eth_chainId every 30 seconds\n50 connections per VIP endpoint, 10 subscriptions per connection\nUse miniBlocks subscription for real-time data\n4. Storage: slot reuse patterns\nSSTORE 0→non-zero costs 2M gas × multiplier (expensive)\nUse Solady's RedBlackTreeLib instead of Solidity mappings\nDesign for slot reuse, not constant allocation\n5. Gas: skip estimation when possible\nBase fee stable at 0.001 gwei, no EIP-1559 adjustment\nIgnore eth_maxPriorityFeePerGas (returns 0)\nHardcode gas limits to save round-trip\nAlways use remote eth_estimateGas (MegaEVM costs differ from standard EVM)\n6. Debugging: mega-evme CLI\nReplay transactions with full traces\nProfile gas by opcode\nhttps://github.com/megaeth-labs/mega-evm\nOperating procedure\n1. Classify the task layer\nFrontend/WebSocket layer\nRPC/transaction layer\nSmart contract layer\nTesting/debugging layer\n2. Pick the right patterns\nFrontend: single WebSocket → broadcast to users (not per-user connections)\nTransactions: sign locally → eth_sendRawTransactionSync → done\nContracts: check SSTORE patterns, avoid volatile data access limits\nTesting: use mega-evme for replay, Foundry with --skip-simulation\n3. Implement with MegaETH-specific correctness\n\nAlways be explicit about:\n\nChain ID (4326 mainnet, 6343 testnet)\nGas limit (hardcode when possible)\nBase fee (0.001 gwei, no buffer)\nStorage costs (new slots are expensive)\nVolatile data limits (20M gas after block.timestamp access)\n4. Deliverables expectations\n\nWhen implementing changes, provide:\n\nExact files changed + diffs\nCommands to build/test/deploy\nGas cost notes for storage-heavy operations\nRPC optimization notes if applicable\nProgressive disclosure (read when needed)\nWallet operations: wallet-operations.md\nFrontend patterns: frontend-patterns.md\nRPC methods reference: rpc-methods.md\nSmart contract patterns: smart-contracts.md\nStorage optimization: storage-optimization.md\nGas model: gas-model.md\nTesting & debugging: testing.md\nSecurity considerations: security.md\nReference links: resources.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/0xGuardbot/megaeth",
    "publisherUrl": "https://clawhub.ai/0xGuardbot/megaeth",
    "owner": "0xGuardbot",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/megaeth",
    "downloadUrl": "https://openagent3.xyz/downloads/megaeth",
    "agentUrl": "https://openagent3.xyz/skills/megaeth/agent",
    "manifestUrl": "https://openagent3.xyz/skills/megaeth/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/megaeth/agent.md"
  }
}