Replies: 1 comment
-
We also ran into this problem at Aragon, solution for now was to directly use window.ethereum but it would be nice to use our existing RPC infra |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When trying to use the Alchemy RPC, we tried creating the wallet client like this:
Initially we just tested with zkSync network, but later added the eth fallback as well, but didn't help.
The issue might also be with how Alchemy designed the API - here is one example where we can see that
eth_accounts
method exists on eth mainnet, but not on zksync.This means that if we use the Alchemy RPC for zkSync, and we try to call some methods like
it will fail, as the
![image](https://private-user-images.githubusercontent.com/144679078/350892020-cc9115c6-263d-4712-b8d8-c2dec4b1c4cd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NzYzNDAsIm5iZiI6MTczOTU3NjA0MCwicGF0aCI6Ii8xNDQ2NzkwNzgvMzUwODkyMDIwLWNjOTExNWM2LTI2M2QtNDcxMi1iOGQ4LWMyZGVjNGIxYzRjZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQyMzM0MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YTQwY2I3MDRkYTQyMjM3YzlhNzJlMjIzNmY3NjIyZjVjMDRjMDM3OWI4NmM4MDMwYmFhNDVkODlkYmJkNjdkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.x1D9ZIDsBzF77ncZD3_-3hh0KGcEAMFEZAQASgMO5SE)
![image](https://private-user-images.githubusercontent.com/144679078/350892066-a5f130a3-5de2-4a04-b161-116d7d2b1559.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NzYzNDAsIm5iZiI6MTczOTU3NjA0MCwicGF0aCI6Ii8xNDQ2NzkwNzgvMzUwODkyMDY2LWE1ZjEzMGEzLTVkZTItNGEwNC1iMTYxLTExNmQ3ZDJiMTU1OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQyMzM0MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZWYxZjMzY2I3NTIyZWI3MTRiZjNkMzM2YzY5NTRhMjViYzFkY2Y5YjVjZjVkMDQ2YzYyOTE0NTk2ZmZlMjY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.tvZLtcZuBDC0KI0eXSIksS12yPaIF0iNgbmozYsbH-A)
getAddresses
method is calling an unsupported RPC method under the hood.Is there something we're not understanding correctly, or if we're doing something wrong?
Our main use case is that we need to call the
writeContract
method on the zkSync network, but the same issue happens.When I try to use writeContract, it tries to call the "
eth_signTypedData_v4
" RPC method and sends the request to the alchemy endpoint, which doesn't have this method, thus the request fails (returns 400).Beta Was this translation helpful? Give feedback.
All reactions