bcnmy / userop-debugger-backend

MIT License
7 stars 2 forks source link

Create end point to get all supported entry point address for a given networkId #23

Closed tomarsachin2271 closed 10 months ago

tomarsachin2271 commented 10 months ago

Add support for eth_supportedEntryPoints json rpc call, that returns list of of EntryPoint addresses it supports.

EndPoint

http://localhost:8000/api/v1/{network_id}

Sample Request

{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "eth_supportedEntryPoints",
    "params": []
}

Sample Response

{
    "jsonrpc": "2.0",
    "id": 2,
    "result": [
            {
              "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
              "label": "EntryPoint V6"
            }
         ]
}