Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

emulator: Add support for eth_getBlockReceipts emulation on unsupported chains #6069

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

Open
SohZHong wants to merge 4 commits into graphprotocol:master
base: master
Choose a base branch
Loading
from SohZHong:hong/emulator-support

Conversation

Copy link

@SohZHong SohZHong commented Jul 10, 2025

This PR introduces an emulator service that enables eth_getBlockReceipts support for EVM-compatible chains that do not natively implement it (e.g. Oasis Sapphire).

Changes:

  • Added emulator/index.js (Express server that emulates eth_getBlockReceipts)
  • Added emulator/Dockerfile for Docker compatibility
  • Modified docker-compose.yml to support optional emulator service
  • Updated .gitignore to exclude node_modules
  • Updated README.md with instructions on enabling the emulator

This is useful for subgraph indexing on networks like Oasis, where the standard receipts RPC method is not available.

fordN reacted with eyes emoji
Copy link
Collaborator

lutter commented Aug 20, 2025
edited
Loading

Does this really need to live in graph-node? Since it's already a standalone express server, couldn't that just be something that people run themselves?

Also, have you contacted the Oasis Sapphire people? Seeing how simple the workaround is, why can't they implement that in their client? If a chain claims to be EVM compatible, its clients should provide a complete JSON-RPC API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /