Richard Moore
Richard Moore
I do think this makes sense to add. It’s a feature I wanted, but didn’t realize there was an RPC for it. :)
Why was this closed? Is it not a widely adopted RPC call?
Are you using the correct TypeScript version (using npm install to install the locked version) and with the correct TypeScript settings? That part of the code hasn’t changed and at...
This looks like you are trying to use an incompatible TS version, ignoring the Ethers tsconfig. I recommend specifying [skipLibCheck](https://www.typescriptlang.org/tsconfig#skipLibCheck), since packages in node_modules can’t be expected to adhere to...
The other opened issue is referencing v5 code. Not v6. You mean need to blow away your node_modules and package-lock, because there are definitely unrelated packages being pulled in. If...
According to the package.json [version 5.0.4](https://github.com/ethers-io/ethers.js/blob/main/package.json#L29). Also note that TypeScript does **not** follow [semver](https://semver.org/) so the following fact same version must be used. This is also why skipLibCheck is *highly...
You will need the `@types/node` dependency included and possibly add `node` to the `libs` in the `tsconfig.json`.
If the Polygon Gas Station is down, there isn’t really a reliable way to get the gas price other than running your own gas station of finding another public gas...
(if you upgrade to the latest version, the error will contain more info on the error from the server)
@MatevzKlancar You will have to ask the Polygon team about that. I’m hoping someday this logic is built into the actual nodes though, so we don’t need to rely on...