set_etherscan_key
Sets the Etherscan API key required by Etherscan-based tools; if a query fails due to a missing key, ask the user for their key and submit it to restore access.
Instructions
Set Etherscan API key. When Etherscan tools fail due to missing key, simply ask the user: 'What is your Etherscan API key?' then call this tool with their response.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>"
},
"name": "set_etherscan_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The user's Etherscan API key |