Coder Social home page Coder Social logo

bl0ck-x / blockchain-api Goto Github PK

View Code? Open in Web Editor NEW
63.0 7.0 29.0 5.89 MB

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.

Python 100.00%
python blockchain api javascript blockchainapi

blockchain-api's People

Contributors

joshwolff1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

blockchain-api's Issues

Error on candy machine data

Candy machine ID: 9C92nqyGkhG5kD4uYk5E3Hh1GBeW5gq5KBggnjNFJXf9
Network: mainnet-beta

Exception: TypeError: Cannot read properties of null (reading 'toNumber')

Docs

  • suggest a user create a new wallet instead of providing their wallet's secret recovery phrase
  • explain the risk and why it's necessary etc

Get CM's minted NFTs not working

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?

Unexpected results from: Get address's NFTs

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?

Python example uploading files and (to arweave/ipfs)

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

Improper error message

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?

Typo in the readme.md

it says pip intall theblockchainapi
guess you mean install there

have a wonderful day guys

C# examples

c# methods to access api. Ideally a drag and drop solution, prefabs and some ui example demo screens

Error Loading Image

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

Mint Authority

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.