odanado / cloud-cryptographic-wallet

cloud-cryptographic-wallet is a set of packages to connect crypto libraries with key management systems of various cloud services. This set of packages allows you to perform signatures and issue transactions without the need to manage private keys.
MIT License
91 stars 19 forks source link

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

Open PheasantBoy opened 10 months ago

PheasantBoy commented 10 months ago

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