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

Support APIs that matches Ethereum block explorers APIs #1542

Open
AliNik4n opened this issue Dec 4, 2024 · 1 comment
Open

Support APIs that matches Ethereum block explorers APIs #1542

AliNik4n opened this issue Dec 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@AliNik4n
Copy link

AliNik4n commented Dec 4, 2024

Problem

A Partner is asking for mirror node explorer to have an API that matches other Ethereum block explorers APIs as part of their requirements for integration.

Solution

We can use either Etherscan compatible APIs or Blockscout compatible API calls.
Details for Etherscan required APIs endpoints (preferred):

  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)

Details of 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)
    Not related to your effort, we prefer Etherscan APIs as they are "stable" and better suited for getting information on past NFT transfers for an address.

Alternatives

No response

@AliNik4n AliNik4n added the enhancement New feature or request label Dec 4, 2024
@ericleponner
Copy link
Collaborator

Isn't it a feature request for mirror node ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants