Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way (in v5) to send raw rpc method/params ? #600

Closed
wighawag opened this issue Sep 5, 2019 · 1 comment
Closed

Is there a way (in v5) to send raw rpc method/params ? #600

wighawag opened this issue Sep 5, 2019 · 1 comment

Comments

@wighawag
Copy link

wighawag commented Sep 5, 2019

Here (https://docs.ethers.io/ethers.js/v5-beta/api-advanced.html#id5) it mentions some way to pass method but it use non standard method name

My use case is for now to send net_version as the world is yet to catch up with eth_chainId
For example, ganache always return the same value for eth_chainId and I need to differentiate between various chain.

It would also be useful to send raw rpc method like for example some debug method present in ganache.

Is there any easy way to do it ?

@wighawag
Copy link
Author

wighawag commented Sep 5, 2019

Oh, found out : provider.send

@wighawag wighawag closed this as completed Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant