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.
63 stars 28 forks source link

Mint v2 Javascript fetch repeated mint address #52

Closed Kyonax closed 2 years ago

Kyonax commented 2 years ago

I was using The Blockchain API to fetch the Tokens minted from a Candy Machine, however, I tried to get the info from a Candy Machine V2, this throws an Error, that was solved with the new command -> https://docs.theblockchainapi.com/#operation/solanaGetAllNFTsFromCandyMachine But this return a repeated "result", I save it into a Json (Note I copy and paste all the code from the example, and this doesn't work CandyMachine_Airdrop_Data.zip )

Kyonax commented 2 years ago

I just want to fetch all the Tokens minted from the Candy, thank you!

joshwolff1 commented 2 years ago

Hi,

Thank you for the issue. I need more info to be able to help you.

That's a very strange result, and it is certainly not expected. Thank you for reporting it.

First I need to be able to reproduce that result. In order to do that, please provide the candy machine ID you were using and the network you were using.

Kyonax commented 2 years ago

I'm Using Solana network: Candy Machine -> 6es28ywC9gGrf2BFXyEKWyGEbG4P6dZMVTLBqx1xxKTe Results -> CandyMachine_Airdrop_Data.zip

Kyonax commented 2 years ago

Hi! I was wondering if the problem was solved? the API results still repeated

joshwolff1 commented 2 years ago

I will respond here and close the issue once it is resolved

joshwolff1 commented 2 years ago

This should be fixed!

Thank you very much for posting this issue and bringing this to my attention

Feel free to try again

Here's some example output:

{'nft_metadata': {'data': {'creators': ['EDLdDyQnUM1fCR7n6CZ1X8PkcuBY3XwRMxAbgASJFRzu', '6zjwY1tbb3Lc2k6TcbAMWRHx6sQEVPt5Js7Aue6NkQH5', 'D6HxbQa7juwKoMDTUHJtJWW6WLG9gzKfRA8iQmd2oZ1x'], 'name': 'Transmutation Elixir', 'seller_fee_basis_points': 400.0, 'share': [0.0, 50.0, 50.0], 'symbol': 'RV', 'uri': 'https://arweave.net/8tkI-EaFSBO4friasgRtAnPTcsWlaNH5QkbVfO6Z7lc', 'verified': [1.0, 0.0, 0.0]}, 'is_mutable': True, 'mint': 'Bhot89MLJeWhVr5pzejTC6n73USDBLF8fvF4qugvtyeJ', 'primary_sale_happened': True, 'update_authority': '8DrSkhiB4c7QDfBiaUUkQ1VCdTWpZqPDU3JTPsrGL5gG'}, 'pub_key_hash': 'H1MdKjP1dgzfzQCLhuvNUwfQBJmyccZBZGT5fUcJ89jK'}, {'nft_metadata': {'data': {'creators': ['EDLdDyQnUM1fCR7n6CZ1X8PkcuBY3XwRMxAbgASJFRzu', '6zjwY1tbb3Lc2k6TcbAMWRHx6sQEVPt5Js7Aue6NkQH5', 'D6HxbQa7juwKoMDTUHJtJWW6WLG9gzKfRA8iQmd2oZ1x'], 'name': 'Transmutation Elixir', 'seller_fee_basis_points': 400.0, 'share': [0.0, 50.0, 50.0], 'symbol': 'RV', 'uri': 'https://arweave.net/tPj2WBwChMNnPupT1WzKf7OCYlS70gy3UCDvp3C_tgA', 'verified': [1.0, 0.0, 0.0]}, 'is_mutable': True, 'mint': 'FzFhxLEpgVRVYmirLJviVtELUpGr4LY2vmWYWxHFiSgJ', 'primary_sale_happened': True, 'update_authority': '8DrSkhiB4c7QDfBiaUUkQ1VCdTWpZqPDU3JTPsrGL5gG'}, 'pub_key_hash': 'pmDBbHyp9zdnXNzPk4x8z6KokexPxaMfG9oPXgXGmEn'}