getNFTsForCollection should return 404 or other error code when no more NFTs to be found
Thanks for the great API for NFTs! One thing I'm finding challenging is the lack of a proper HTTP error code when no more NFTs are to be found for a contract. If you're looping through pages, the API will return success codes for NFTs that do not exist.
It would be more helpful to return a proper status code when you've gone over the limit of NFTs on a contract.
Posted by Faces about 1 year ago
Newly minted NFTs don't have any info returned by the NFT API
I have noticed that when minting an NFT, it takes about an hour until the NFT API returns information such as the title, image, and attributes. I am able to know that I have the NFT but I comes without the info. I am currently working on the Goerli Testnet
Posted by Hunt Crypto about 1 year ago
getNFTs() API method (withMetadata=true) does not return NFT attributes for ERC-1155 tokens.
We've an NFT collection in ERC-1155 standard which has some attributes(traits) such as gender, age etc. But when we use the getNFTs() API method with `withMetadata=true` it doesn't return those attribute(traits).
It works fine with ERC-721 standard NFTs but it has a problem with ERC-1155 NFTs.
Posted by Mavisakal about 1 year ago
What is the best practice for updating NFT metadata with Alchemy?
I am trying to update the metadata from all of the NFTs in my collection, I have tried to use the reingestContract method, but the status seems stuck on "In progress." Is there something else I should be doing?
Posted by Chris West about 1 year ago
See minted NFT
Hello,
I've still issue understanding if when I have a minted NFT on my account I should see it calling alchemy getNFt or not... I'm not able to understand if I mint them wrongly or what. anyone can provide me with a working minting class? This is drawing me mad. I've followed tutorials and so on. still stuck on this.
Posted by Paolo about 1 year ago
Why I don't see any NFT minted on test network
Hello,
Anyone can help me spot my issue with NFT Minting? I've tried today the API to check what NFT are on my wallet and I got zero.
Here's my call
https://eth-goerli.g.alchemy.com/nft/v2/uimlhq_VmEMRxKwTMe1IDHtD3YtEZiy5/getNFTs?owner=0x294262758f44Df35e856AEb7a2dA9b3830232A12
The minting process completed successfully...what can I check?
Posted by Paolo about 1 year ago
getOwnersForCollection returns invalid data
found a strange behaviour comparing some stats for several collections
for example azuki colleciton has 10000 items, but the api returns when you count 10001
for Genuine Undead its even more weird they have exactly 10000 nfts but api returns 10018 and much more unique holders than there should be.
im sure that everything on my side is correct, tested and checked several times. Simply just add together all array lengths
Posted by Viljams about 1 year ago
getNftMetadata for Javascript does not have option to refresh cache
I am on version 2.1.1, and the api for getNftMetadata does not have an option to refresh cache for the token? refreshContract does not refresh the nft metadata as well.
Posted by Valerie Tan about 1 year ago
Is there a refetch/refresh option for getNftsForContract ?
I'm creating a dashboard where users can mint nfts, see their nfts, how much nft has been minted...
Everything works fine, but when I mint an nft (my stack is next.js/wagmi hooks for web3), the data provided by getNftsForContract (or by getNftsForOwner) doesn't refresh.
I've made a solution using react useState, with
```js
const [fetchContractData, setFetchContractData] = useState(true);
(...)
useEffect(() => {
if (fetchContractData) {
alchemy.nft.getNftsForContract(GLIMMERS_GOERLI_ADDRESS).then((res) => {
(...)
});
}
setFetchContractData(false);
}, [address, fetchContractData]);
(...)
// useContractEvent is a wagmi hook, who can launches callback on a specified event
useContractEvent({
...configGlimmers,
eventName: "Transfer",
listener: (event) => {
setFetchContractData(true);
(...)
},
});
```
Is there a less cumbersome way to do this ? Maybe an option inside getNftsForContract I don't know...
Posted by Fabien Morrow about 1 year ago