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
const{ FetchNFTClient }=require("@audius/fetch-nft");constAPI_KEY="SOME KEY";// Open Sea ConfigconstopenSeaConfig={// is this the correct end point? It was taken from OpenSea docs, yet it does not resolve.apiEndpoint: "https://api.opensea.io/api/v2/chain/ethereum/account/",apiKey: API_KEY,assetLimit: 100,eventLimit: 300,};// Initialize fetch client with configsconstfetchClient=newFetchNFTClient({ openSeaConfig });/* // Fetching all collectibles for the given wallets const solAssets = fetchClient .getCollectibles({ solWallets: ["GrWNH9qfwrvoCEoTm65hmnSh4z3CD96SfhtfQY6ZKUfY"], }) .then((res) => console.log(JSON.stringify(res, null, 2)));*/// Fetching Ethereum collectibles for the given walletsfetchClient.getEthereumCollectibles(["0x5a8443f456f490dceead0922b0cc89afd598cec9"]).then((res)=>console.log(res)).then(()=>console.log("--------------"));
After running the script
node fetchNft.ts
nothing is returned:
{}
--------------
Supporting Media
See above
Expected behavior
It is expected to get the JSON data from the Ethereum based asset, just like the Solana based asset.
Your environment
OS: MacOS 13.4 - Ventura
Node version: V20.5.0
Npm version: 9.8.1
Browser name and version: Chrome 118.0.5993.70
Describe the bug
It is not clear which API end point to choose from. Upon using:
https://api.opensea.io/api/v2/chain/ethereum/account/
from https://docs.opensea.io/reference/list_nfts_by_accountTo Reproduce
After running the script
nothing is returned:
Supporting Media
See above
Expected behavior
It is expected to get the JSON data from the Ethereum based asset, just like the Solana based asset.
Your environment
OS: MacOS 13.4 - Ventura
Node version: V20.5.0
Npm version: 9.8.1
Browser name and version: Chrome 118.0.5993.70
Additional context:
When using the OpenSea API from the following website, the correct NFTs are returned:
https://docs.opensea.io/reference/list_nfts_by_account
The text was updated successfully, but these errors were encountered: