You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
I just tried to get token data from "@traderjoe-xyz/sdk"
When I tried using Fetcher.fetchTokenData(ChainId.AVALANCHE, Token1); it shows the following error:
"Unsupported getDefaultProvider network"
Were you able to help me how I can fix this issue?
I read source code of "joe-sdk" and I can see it's backed by @ethersproject
and the problem I found is it does not support Avalanche.
Any help/advice is appreciated!
The text was updated successfully, but these errors were encountered:
You need to change from getDefaultProvider to jsonRpcProvider because getDefaultProvider doesn't cover avalanche. Btw i think that this packcage as wrecked because they are returning contracts.
Thanks for your reply, @burgossrodrigo
Definitely agree with your idea.
And yes, the package is wrecked!
That's why I built the library myself and using the custom traderjoe-xyz/sdk for my project.
Thanks again!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I just tried to get token data from "@traderjoe-xyz/sdk"
When I tried using
Fetcher.fetchTokenData(ChainId.AVALANCHE, Token1);
it shows the following error:"Unsupported getDefaultProvider network"
Were you able to help me how I can fix this issue?
I read source code of "joe-sdk" and I can see it's backed by @ethersproject
and the problem I found is it does not support Avalanche.
Any help/advice is appreciated!
The text was updated successfully, but these errors were encountered: