let nfts=indexerCall(wallet.address) // indexer call to get nfts by walletnfts.push.apply(nfts,awaitgetNFTs(chainId,wallet.address,tokenAddress));asyncfunctiongetNFTs(chainId, address,tokenAddress){ const nfts = await fetch(`https://indexer.streamnft.tech/assetManager/${chainId}?user=${walletAddress}&collection=${collectionAddress}`)
.then(response => {if (!response.ok) {thrownewError(`HTTP error! Status: ${response.status}`); }returnresponse.json(); }).catch(error => {// Handle network errors or API response errors hereconsole.error('Error:',error.message); });return nfts;}
conststreamNFT=require('streamnft-evm');let nfts=indexerCall(wallet.address) // indexer call to get nfts by walletnfts.push.apply(nfts,awaitstreamNFT.getNFTs(chainId,wallet.address));
let nfts=indexerCall(wallet.address) // indexer call to get nfts by walletnfts.push.apply(nfts,awaitgetNFTs(chainId,wallet.address));asyncfunctiongetNFTs(chainId, address){constnfts=awaitfetch(`https://indexer.streamnft.tech/assetManager/${chainId}?user=${walletAddress}`).then(response => {if (!response.ok) {thrownewError(`HTTP error! Status: ${response.status}`); }returnresponse.json(); }).catch(error => {// Handle network errors or API response errors hereconsole.error('Error:',error.message); });return nfts;}
conststreamNFT=require('streamnft-evm');let nfts=indexerCall(wallet.address) // indexer call to get nfts by walletnfts.push.apply(nfts,awaitstreamNFT.getNFTs(chainId,wallet.address));