Closed kali100x closed 2 years ago
same here.. what seems to be the issue?? is it because of nextjs?
@allenchuang @kali100x this seems to be as a result of the opensea api protection from cloud flare, it could be that the assets api is no longer accessible without an api key from opensea as seen from here.
gotcha- solved it with API key
you could add OPEN_SEA_API
in the env config and then just read that key wherever you call OpenSeaport like so:
const seaport = new OpenSeaPort(provider, {
networkName: Network.Main,
apiKey: process.env.OPEN_SEA_API,
});
@allenchuang great to hear that solved it. I'll update the repo and readme to include this, as well as update the repo for any other issues.
I did everything to install but all time give internal server error. Please help. Thanks.