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

eth_supportedEntryPoints is not supported in a batched request #323

@mmv08

Description

@mmv08

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions