# Send Etherscan to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "downloadUrl": "/downloads/etherscan-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=etherscan-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "agents/openai.yaml",
      "references/rate-limits.md",
      "references/endpoint-cheatsheet.md",
      "references/explorer-url-patterns.md",
      "references/network-map.md"
    ],
    "downloadMode": "redirect",
    "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Overview

Use this skill to fetch onchain data from Etherscan-compatible explorers using the unified V2 API.

Core model:

One base URL: https://api.etherscan.io/v2/api
One API key
Switch chains via chainid

Explorer URLs relevant to this workspace:

Ethereum mainnet: https://etherscan.io/
Ethereum hoodi: https://hoodi.etherscan.io/
Taiko mainnet: https://taikoscan.io/
Taiko hoodi: https://hoodi.taikoscan.io/

Read first:

references/network-map.md
references/endpoint-cheatsheet.md
references/rate-limits.md
references/explorer-url-patterns.md

### Required Inputs

Collect these before querying:

ETHERSCAN_API_KEY
Target chainid
Address / tx hash / block range
Endpoint intent (activity, logs, source, ABI, status)

### Deterministic Workflow

Pick chainid from references/network-map.md.
Choose endpoint by intent from references/endpoint-cheatsheet.md.
Build request on https://api.etherscan.io/v2/api with required params.
Parse status, message, result.
If contract endpoint returns proxy metadata (Proxy == "1"), follow Implementation.
For large history, paginate (page, offset) and/or narrow block ranges.

### Method Selection

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

### Quick Commands

Set key once:

export ETHERSCAN_API_KEY="<your_key>"

Get ABI (Taiko mainnet example):

curl -s "https://api.etherscan.io/v2/api?chainid=167000&module=contract&action=getabi&address=<contract>&apikey=$ETHERSCAN_API_KEY"

Get source + proxy metadata (Taiko hoodi example):

curl -s "https://api.etherscan.io/v2/api?chainid=167013&module=contract&action=getsourcecode&address=<contract>&apikey=$ETHERSCAN_API_KEY"

Get address activity in block window:

curl -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"

Get logs for a contract in block window:

curl -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"

### Proxy-Aware Contract Handling

When getsourcecode returns:

Proxy: "1"
non-empty Implementation

then:

Keep runtime call target as proxy address.
Fetch ABI/source from implementation address.
Decode selectors against implementation ABI.
Re-check implementation before privileged write analysis.

### Safety Rails

Never skip these checks:

Always set correct chainid; wrong chain silently yields wrong context.
Respect plan limits and add client-side throttling/retries.
Treat status: "0" as non-success even with HTTP 200.
For analytics windows, lock startblock/endblock explicitly.
For logs, remember offset max is 1000 per query and paginate.
Keep retries idempotent and resume scans from stored cursors/block checkpoints.

### Expected Output

Return:

exact URL/query used (without exposing secret key)
chain (chainid + explorer)
endpoint (module/action)
parsed status/result summary
proxy follow-up decisions (Proxy, Implementation) when contract-related
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: davidtaikocha
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-02T23:23:17.191Z
- Expires at: 2026-05-09T23:23:17.191Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/etherscan-api)
- [Send to Agent page](https://openagent3.xyz/skills/etherscan-api/agent)
- [JSON manifest](https://openagent3.xyz/skills/etherscan-api/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/etherscan-api/agent.md)
- [Download page](https://openagent3.xyz/downloads/etherscan-api)