BL0CK-X / blockchain-api

This repository is used to host examples for how to use the Blockchain API (docs.blockchainapi.com). Open an issue to report bugs and request features.
64 stars 28 forks source link

Get NFTs from Candy Machine - Error Constructor #59

Closed Kyonax closed 2 years ago

Kyonax commented 2 years ago

I was using a script based on the blockchain-API, where I get all the NFTs Minted and unMinted from a Candy Machine, I fetched a couple of times the correct result... but right now I got this error

TypeError: theblockchainapi.GetMintedNFTsRequest is not a constructor <- Is the Code discontinued? I can't find the example where I got this code from

image

joshwolff1 commented 2 years ago

Hey, so that function was discontinued as of a few months ago. I'll have to fix that in the wrapper though

Can you check this out:

https://github.com/BL0CK-X/blockchain-api/blob/main/examples/solana-candy-machine/get-candy-machine-all-nfts/js_example.js

Kyonax commented 2 years ago

Well right now the code drops me out a new issue, using the update code, line by line -> image

Kyonax commented 2 years ago

And using the Python version drops me this ->

image

joshwolff1 commented 2 years ago

Solana accidentally forced some old versions of RPCs to fork and this invalidated some of our code. This is the reason for the 504 error. Thank you for your patience & reporting this. Will try to push a fix as soon as I can

joshwolff1 commented 2 years ago

Hi! This should be fixed now. Just tested. Please retry! Thank you for your patience.

I am closing this for now, but if you have any other issues please let me know and reopen the issue.