{
  "schemaVersion": "1.0",
  "item": {
    "slug": "etherscan-api",
    "name": "Etherscan",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/davidtaikocha/etherscan-api",
    "canonicalUrl": "https://clawhub.ai/davidtaikocha/etherscan-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/etherscan-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=etherscan-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "agents/openai.yaml",
      "references/rate-limits.md",
      "references/endpoint-cheatsheet.md",
      "references/explorer-url-patterns.md",
      "references/network-map.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. 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. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "etherscan-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T23:23:17.191Z",
      "expiresAt": "2026-05-09T23:23:17.191Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=etherscan-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=etherscan-api",
        "contentDisposition": "attachment; filename=\"etherscan-api-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "etherscan-api"
      },
      "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/etherscan-api"
    },
    "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/etherscan-api",
    "agentPageUrl": "https://openagent3.xyz/skills/etherscan-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/etherscan-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/etherscan-api/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "Use this skill to fetch onchain data from Etherscan-compatible explorers using the unified V2 API.\n\nCore model:\n\nOne base URL: https://api.etherscan.io/v2/api\nOne API key\nSwitch chains via chainid\n\nExplorer URLs relevant to this workspace:\n\nEthereum mainnet: https://etherscan.io/\nEthereum hoodi: https://hoodi.etherscan.io/\nTaiko mainnet: https://taikoscan.io/\nTaiko hoodi: https://hoodi.taikoscan.io/\n\nRead first:\n\nreferences/network-map.md\nreferences/endpoint-cheatsheet.md\nreferences/rate-limits.md\nreferences/explorer-url-patterns.md"
      },
      {
        "title": "Required Inputs",
        "body": "Collect these before querying:\n\nETHERSCAN_API_KEY\nTarget chainid\nAddress / tx hash / block range\nEndpoint intent (activity, logs, source, ABI, status)"
      },
      {
        "title": "Deterministic Workflow",
        "body": "Pick chainid from references/network-map.md.\nChoose endpoint by intent from references/endpoint-cheatsheet.md.\nBuild request on https://api.etherscan.io/v2/api with required params.\nParse status, message, result.\nIf contract endpoint returns proxy metadata (Proxy == \"1\"), follow Implementation.\nFor large history, paginate (page, offset) and/or narrow block ranges."
      },
      {
        "title": "Method Selection",
        "body": "GoalModule / ActionAddress normal tx historyaccount / txlistAddress internal tx historyaccount / txlistinternalERC20 transfer historyaccount / tokentxEvent logslogs / getLogsContract ABIcontract / getabiContract source + proxy fieldscontract / getsourcecodeContract deployer + creation txcontract / getcontractcreationTx execution statustransaction / getstatusTx receipt statustransaction / gettxreceiptstatus"
      },
      {
        "title": "Quick Commands",
        "body": "Set key once:\n\nexport ETHERSCAN_API_KEY=\"<your_key>\"\n\nGet ABI (Taiko mainnet example):\n\ncurl -s \"https://api.etherscan.io/v2/api?chainid=167000&module=contract&action=getabi&address=<contract>&apikey=$ETHERSCAN_API_KEY\"\n\nGet source + proxy metadata (Taiko hoodi example):\n\ncurl -s \"https://api.etherscan.io/v2/api?chainid=167013&module=contract&action=getsourcecode&address=<contract>&apikey=$ETHERSCAN_API_KEY\"\n\nGet address activity in block window:\n\ncurl -s \"https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=<address>&startblock=<from>&endblock=<to>&page=1&offset=100&sort=desc&apikey=$ETHERSCAN_API_KEY\"\n\nGet logs for a contract in block window:\n\ncurl -s \"https://api.etherscan.io/v2/api?chainid=560048&module=logs&action=getLogs&address=<contract>&fromBlock=<from>&toBlock=<to>&page=1&offset=1000&apikey=$ETHERSCAN_API_KEY\""
      },
      {
        "title": "Proxy-Aware Contract Handling",
        "body": "When getsourcecode returns:\n\nProxy: \"1\"\nnon-empty Implementation\n\nthen:\n\nKeep runtime call target as proxy address.\nFetch ABI/source from implementation address.\nDecode selectors against implementation ABI.\nRe-check implementation before privileged write analysis."
      },
      {
        "title": "Safety Rails",
        "body": "Never skip these checks:\n\nAlways set correct chainid; wrong chain silently yields wrong context.\nRespect plan limits and add client-side throttling/retries.\nTreat status: \"0\" as non-success even with HTTP 200.\nFor analytics windows, lock startblock/endblock explicitly.\nFor logs, remember offset max is 1000 per query and paginate.\nKeep retries idempotent and resume scans from stored cursors/block checkpoints."
      },
      {
        "title": "Expected Output",
        "body": "Return:\n\nexact URL/query used (without exposing secret key)\nchain (chainid + explorer)\nendpoint (module/action)\nparsed status/result summary\nproxy follow-up decisions (Proxy, Implementation) when contract-related"
      }
    ],
    "body": "Etherscan API V2\nOverview\n\nUse this skill to fetch onchain data from Etherscan-compatible explorers using the unified V2 API.\n\nCore model:\n\nOne base URL: https://api.etherscan.io/v2/api\nOne API key\nSwitch chains via chainid\n\nExplorer URLs relevant to this workspace:\n\nEthereum mainnet: https://etherscan.io/\nEthereum hoodi: https://hoodi.etherscan.io/\nTaiko mainnet: https://taikoscan.io/\nTaiko hoodi: https://hoodi.taikoscan.io/\n\nRead first:\n\nreferences/network-map.md\nreferences/endpoint-cheatsheet.md\nreferences/rate-limits.md\nreferences/explorer-url-patterns.md\nRequired Inputs\n\nCollect these before querying:\n\nETHERSCAN_API_KEY\nTarget chainid\nAddress / tx hash / block range\nEndpoint intent (activity, logs, source, ABI, status)\nDeterministic Workflow\nPick chainid from references/network-map.md.\nChoose endpoint by intent from references/endpoint-cheatsheet.md.\nBuild request on https://api.etherscan.io/v2/api with required params.\nParse status, message, result.\nIf contract endpoint returns proxy metadata (Proxy == \"1\"), follow Implementation.\nFor large history, paginate (page, offset) and/or narrow block ranges.\nMethod Selection\nGoal\tModule / Action\nAddress normal tx history\taccount / txlist\nAddress internal tx history\taccount / txlistinternal\nERC20 transfer history\taccount / tokentx\nEvent logs\tlogs / getLogs\nContract ABI\tcontract / getabi\nContract source + proxy fields\tcontract / getsourcecode\nContract deployer + creation tx\tcontract / getcontractcreation\nTx execution status\ttransaction / getstatus\nTx receipt status\ttransaction / gettxreceiptstatus\nQuick Commands\n\nSet key once:\n\nexport ETHERSCAN_API_KEY=\"<your_key>\"\n\n\nGet ABI (Taiko mainnet example):\n\ncurl -s \"https://api.etherscan.io/v2/api?chainid=167000&module=contract&action=getabi&address=<contract>&apikey=$ETHERSCAN_API_KEY\"\n\n\nGet source + proxy metadata (Taiko hoodi example):\n\ncurl -s \"https://api.etherscan.io/v2/api?chainid=167013&module=contract&action=getsourcecode&address=<contract>&apikey=$ETHERSCAN_API_KEY\"\n\n\nGet address activity in block window:\n\ncurl -s \"https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=<address>&startblock=<from>&endblock=<to>&page=1&offset=100&sort=desc&apikey=$ETHERSCAN_API_KEY\"\n\n\nGet logs for a contract in block window:\n\ncurl -s \"https://api.etherscan.io/v2/api?chainid=560048&module=logs&action=getLogs&address=<contract>&fromBlock=<from>&toBlock=<to>&page=1&offset=1000&apikey=$ETHERSCAN_API_KEY\"\n\nProxy-Aware Contract Handling\n\nWhen getsourcecode returns:\n\nProxy: \"1\"\nnon-empty Implementation\n\nthen:\n\nKeep runtime call target as proxy address.\nFetch ABI/source from implementation address.\nDecode selectors against implementation ABI.\nRe-check implementation before privileged write analysis.\nSafety Rails\n\nNever skip these checks:\n\nAlways set correct chainid; wrong chain silently yields wrong context.\nRespect plan limits and add client-side throttling/retries.\nTreat status: \"0\" as non-success even with HTTP 200.\nFor analytics windows, lock startblock/endblock explicitly.\nFor logs, remember offset max is 1000 per query and paginate.\nKeep retries idempotent and resume scans from stored cursors/block checkpoints.\nExpected Output\n\nReturn:\n\nexact URL/query used (without exposing secret key)\nchain (chainid + explorer)\nendpoint (module/action)\nparsed status/result summary\nproxy follow-up decisions (Proxy, Implementation) when contract-related"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/davidtaikocha/etherscan-api",
    "publisherUrl": "https://clawhub.ai/davidtaikocha/etherscan-api",
    "owner": "davidtaikocha",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/etherscan-api",
    "downloadUrl": "https://openagent3.xyz/downloads/etherscan-api",
    "agentUrl": "https://openagent3.xyz/skills/etherscan-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/etherscan-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/etherscan-api/agent.md"
  }
}