Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EPIC] Custom API Support for Explorers #3314

Open
2 tasks
Nana-EC opened this issue Dec 7, 2024 · 0 comments
Open
2 tasks

[EPIC] Custom API Support for Explorers #3314

Nana-EC opened this issue Dec 7, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request Epic

Comments

@Nana-EC
Copy link
Collaborator

Nana-EC commented Dec 7, 2024

Problem

Many web3 products rely on cuistom APIs on the EVM block explorer (e.g. Etherscan, BlockScouts, etc), however, our MNE is split up as a clients and a backend that's HAPI focused.
Therefore there's no EVM focused REST API's to support some of these expected APIs

Etherscan required APIs endpoints:

  1. https://docs.etherscan.io/api-endpoints/blocks#get-block-and-uncle-rewards-by-blockno (module=block, action=getblockreward)
  2. https://docs.etherscan.io/api-endpoints/accounts#get-a-list-of-erc721-token-transfer-events-by-address (module=account, action=tokennfttx)
  3. https://docs.etherscan.io/api-endpoints/accounts#get-a-list-of-erc1155-token-transfer-events-by-address (module=account, action=token1155tx)

Blockscout RPC API endpoints:

  1. https://docs.blockscout.com/devs/apis/rpc/block#get-block-reward-by-block-number (module=block, action=getblockreward)
  2. https://docs.blockscout.com/devs/apis/rpc/account#get-token-transfer-events-by-address (module=account, action=tokentx)
  3. https://docs.blockscout.com/devs/apis/rpc/account#get-list-of-tokens-owned-by-address (module=account, action=tokenlist)

Solution

Add custom REST API support to the relay which will allow the MNE to pass through queries and responses to satisfy community expectations on these APIs

Block Explorer Supporting Custom API Tasks

Preview Give feedback
  1. 1 of 2
    enhancement
    konstantinabl
  2. design
    konstantinabl

Alternatives

No response

@Nana-EC Nana-EC added enhancement New feature or request Epic labels Dec 7, 2024
@Nana-EC Nana-EC moved this from Backlog to Epics In Progress in Smart Contract Sprint Board Dec 7, 2024
@konstantinabl konstantinabl self-assigned this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Epic
Projects
Status: Epics In Progress
Development

No branches or pull requests

2 participants