bl0ck-x / blockchain-api Goto Github PK
View Code? Open in Web Editor NEWThis 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.
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.
React to this if this feature is important to you
Candy machine ID: 9C92nqyGkhG5kD4uYk5E3Hh1GBeW5gq5KBggnjNFJXf9
Network: mainnet-beta
Exception: TypeError: Cannot read properties of null (reading 'toNumber')
For mostly minted collections
E.g., HcCV6yKm4Li2A84TRjnaWfXGPnB8cSAH5adAd9NNRKkL
Submitted by FF
The "Get CM's minted NFTs" endpoint is not returning expected results. In the following example, I'm expecting one NFT in the response, but I'm getting none.
I'm using the Get CM's NFTs endpoint...
https://docs.theblockchainapi.com/#operation/solanaGetAllNFTsFromCandyMachine
When I make this request...
GET https://api.theblockchainapi.com/v1/solana/nft/candy_machine/mainnet-beta/74kMsECSVcPjdeDz3GbQEgi13EMpxBpKW23nUnGc6kX8/nfts
I get this response:
{
"all_nfts": [],
"minted_nfts": [],
"unminted_nfts": []
}
But this candy machine has minted an NFT. This is confirmed my the other endpoint that fetches the ID of the candy machine that minted an NFT:
POST https://api.theblockchainapi.com/v1/solana/nft/candy_machine_id
Params:
network = mainnet-beta
public_key = ...
mint_address = 2aiCv3tRkXwBcLBha7FCExrnwcTcQ4j8LWtAM98Q5KkE
Response:
{
"candy_machine_contract_version": "v1",
"candy_machine_id": "74kMsECSVcPjdeDz3GbQEgi13EMpxBpKW23nUnGc6kX8"
}
Note that the returned candy_machine_id
value matches the argument passed to the previous endpoint. How can this be? This second endpoint tells us the NFT came from Candy Machine A. But the previous endpoint tells us that Candy Machine A has no NFTs.
Am I missing something?
I'm trying to get a list of hashes for NFTs owned by a wallet...
Docs:
https://docs.theblockchainapi.com/#operation/solanaGetNFTsBelongingToWallet
Example request:
https://api.theblockchainapi.com/v1/solana/wallet/mainnet-beta/BnPp5kmwwzrf2RSi7P8TCPNpb6JWNMNAsjoPtgoeC694/nfts
This wallet currently has 60 NFTs in it. That's what I see when I check in Phantom. But the response has a list of 68 hashes.
I think what might be happening is that the response includes token accounts with balances of 0
. I think this happens if I mint an NFT and then send it to someone else. I did a quick count in Solscan and I see 9 empty token accounts for that address... which almost matches the API response. Is this the expected behavior?
Is your feature request related to a problem? Please describe.
Need to upload files to arweave/IPFS and then the corresponding payload
Describe the solution you'd like
py example uploading files and (to arweave/ipfs) say an image file and then the JSON payload.
example that uploads the images file, then adds it to the JSON payload, then Mint an NFT with that payload
Make it clearer in docs
Test
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
)
Need to fix for how NFT is determined
Exception: Candy machine program with config address ... not found. Are you using the correct network (e.g., devnet, mainnet-beta)? Are you sure that's the correct candy machine ID?
Enable authentication to endpoints with a private key instead of a seed phrase
Hi,
If you use https://api.blockchainapi.com/v1/solana/wallet/{network}/{public_key}/nfts on a wallet with more than 100 NFTs, it will only return a maximum of 100 'nfts_metadata' records. So the metadata records seem truncated/capped. It does return the correct number of 'nfts_owned' records.
it says pip intall theblockchainapi
guess you mean install there
have a wonderful day guys
c# methods to access api. Ideally a drag and drop solution, prefabs and some ui example demo screens
I've been testing out the minting of NFTs of my company logo on the devnet. I'm not getting an error on the script, but the image isn't showing up. So I'm not sure if the image didn't upload or if it did upload and there's an issue on the chain explorer. Ideas? At first I thought maybe it was the query parameter that I had included in the image URL, but that wasn't the case.
https://explorer.solana.com/address/67ytUSwKNZ3YbYq7K6JwQzPaDZZGw5RHBcG3Q5VssSxV/metadata?cluster=devnet
https://explorer.solana.com/address/8SRrbLNmXJJWZHVCbCLFiYw9ghoub3qoEH7f6EAjzyx?cluster=devnet
Todo:
When I deploy the NFT on the mainnet. There is another Walletadress for the mint authority. How can I solve that, so there is mine? Or in the best case, there is no mint and update authority?
Optional ability to add a custom rpc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.