mantlenetworkio / mantle

Mantle | Mass adoption of decentralized & token-governed technologies. With Mantle Network, Mantle Treasury, and token holder-governed products initiatives.
https://www.mantle.xyz
MIT License
226 stars 101 forks source link

[l2geth]: RPC doesn't support query block with unsafe, safe and finalized #1384

Open abelliumnt opened 11 months ago

abelliumnt commented 11 months ago

Describe the bug Mantle rpc doesn't support query block with unsafe, safe and finalized.

To Reproduce Steps to reproduce the behavior:

  1. Open Postman
  2. URL: https://rpc.mantle.xyz
  3. Post Body
    {
    "jsonrpc": "2.0",
    "method": "eth_getBlockByNumber",
    "params": ["safe", false],
    "id": 0
    }
  4. Click Send button
  5. Check response:
    {
    "jsonrpc": "2.0",
    "error": {
        "code": -32602,
        "message": "invalid argument 0: hex string without 0x prefix"
    },
    "id": 0
    }

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

image