Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

eth_supportedEntryPoints is not supported in a batched request #323

Open
mmv08 opened this issue Oct 10, 2023 · 0 comments
Open

eth_supportedEntryPoints is not supported in a batched request #323

mmv08 opened this issue Oct 10, 2023 · 0 comments

Comments

@mmv08
Copy link

mmv08 commented Oct 10, 2023

If you include an eth_supportedEntryPoints request in a batch, it returns an error saying the method is unsupported.

Example request:

curl --location 'https://api.stackup.sh/v1/node/key' \
--header 'Content-Type: application/json' \
--data '[
    {
        "method": "eth_chainId",
        "params": [],
        "id": 1,
        "jsonrpc": "2.0"
    },
    {
        "method": "eth_supportedEntryPoints",
        "params": [],
        "id": 2,
        "jsonrpc": "2.0"
    }
]'

Response:

[
    {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0x13881"
    },
    {
        "jsonrpc": "2.0",
        "id": 2,
        "error": {
            "code": -32601,
            "message": "the method eth_supportedEntryPoints does not exist/is not available"
        }
    }
]

I discovered this when working on a project that uses ethers v6, which batches requests by default. I had to disable batching to use the bundler.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant