Skip to content

Fetch query also needs 'jsonrpc :"2.0"' #847

Description

@PheasantBoy

Hi! this library is so useful for us :) Thanks!

I've got the error about requesting to rpc endpoints when using web3-provider-adapter.
Screen Shot 2023-10-28 at 19 43 09

It seems to need 'jsonrpc :"2.0"' param in fetch requests too in some recent networks.
(ex rpc: https://goerli.base.org)
https://ethereum.org/en/developers/docs/apis/json-rpc/

Without this params, i've got 32600 error.

https://github.com/odanado/cloud-cryptographic-wallet/blob/master/packages/web3-provider-adapter/src/query.ts
I add the param, it works.
Screen Shot 2023-10-28 at 19 43 50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions