Following Ultimate NFT Programming tutorial and encountering an issue whereby getAllTokenIds
is unable to return the list of NFTs on rinkeby.
You can see the contract on rinkeby here.
You can see the collection opensea testnet here
async function initializeApp() {
let currentUser = Moralis.User.current();
if (!currentUser) {
currentUser = Moralis.authenticate();
}
const options = { address: "0x3f01635039d6f43ca37fb79f05cd1d267f0be25a", chain: "rinkeby" };
let NFTs = await Moralis.Web3API.token.getAllTokenIds(options);
console.log(NFTs);
fetchNFTMetadata(NFTs.result);
}
initializeApp();
CURL
curl -X 'GET' \
'https://deep-index.moralis.io/api/v2/nft/0x3f01635039d6f43ca37fb79f05cd1d267f0be25a?chain=rinkeby&format=decimal' \
-H 'accept: application/json' \
-H 'X-API-Key: NQPn6xgVzzOGO4R4bcTpzB7gj7fMaed23SCt1tV0rXGiPfUjtYblO0sHyQxV4CeH'
Request URL
https://deep-index.moralis.io/api/v2/nft/0x3f01635039d6f43ca37fb79f05cd1d267f0be25a?chain=rinkeby&format=decimal
Response
{
"total": 0,
"page": 0,
"page_size": 500,
"result": [],
"status": "SYNCED"
}