Skip to content

Add eth_blockNumber API endpoint support#30

Draft
Copilot wants to merge 4 commits intomasterfrom
copilot/fetch-eth-block-number
Draft

Add eth_blockNumber API endpoint support#30
Copilot wants to merge 4 commits intomasterfrom
copilot/fetch-eth-block-number

Conversation

Copy link

Copilot AI commented Feb 14, 2026

Adds support for Etherscan API v2 eth_blockNumber endpoint to query current Ethereum block height.

Changes

Workflow (.github/workflows/etherscan-apiv2.yml)

  • Add eth_blockNumber endpoint option to workflow inputs
  • Implement case handler routing to module=proxy&action=eth_blockNumber
  • Route through v2 API endpoint with chainid=1 parameter

Documentation (ENS_CONFIGURATION.md, QUICKSTART_KUSHMANMB_ETH.md)

  • Add curl examples for eth_blockNumber queries
  • Correct HTML entity encoding (&&) in shell examples

Example

# Get current Ethereum block number
curl "https://api.etherscan.io/v2/api?chainid=1&module=proxy&action=eth_blockNumber&apikey=<YOUR_KEY>"

Or via GitHub Actions:

  1. Select "Etherscan API Integration" workflow
  2. Choose eth_blockNumber endpoint
  3. Run workflow

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 14, 2026 18:02
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Co-authored-by: Kushmanmb <193178375+Kushmanmb@users.noreply.github.com>
Copilot AI changed the title [WIP] Add API call to fetch Ethereum block number Add eth_blockNumber API endpoint support Feb 14, 2026
Signed-off-by: Yaketh <193178375+Kushmanmb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants