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

ux: Add GET behavior to the Ethereum JSON-RPC endpoint so that it returns information instead of a 404 #1991

Open
Unique-Divine opened this issue Aug 8, 2024 · 1 comment

Comments

@Unique-Divine
Copy link
Member

Unique-Divine commented Aug 8, 2024

Problem

When someone visits an endpoint for Nibiru's Ethereum JSON-RPC, it returns a 404 if visited directly or curl-ed.

Instead, the default view should return some text, so that it's more clear that the page visited is a valid RPC URL.

@Unique-Divine
Copy link
Member Author

Notes from 2024-11-06

  • Want link to info on various RPCs
  • Info on which chain you're interacting with

You are on testnet-1 evm rpc endpoint.
Chain ID is 69990
You can query it by

 curl https://evm-rpc.testnet-1.nibiru.fi \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ⚡ Building 🧱
Development

No branches or pull requests

1 participant