Questions tagged [solana]

Use for questions about programming on the Solana Blockchain Platform or using its Anchor Framework. Use with the appropriate language tag.

From the website:

Solana is a decentralized blockchain built to enable scalable, user-friendly apps for the world.

Developer documentation can be found here, including information about Solana's Anchor Framework.

1213 questions
-1
votes
1 answer

Error processing Instruction 0: Cross-program invocation with unauthorized signer or writable account

I simply tried transferring token from account A (vault_account) to account B (receiver_account) using both traditional method and anchor method. In both of the methods i used receiver_account as signer. But the anchor method is throwing Error:…
-1
votes
1 answer

Yarn doesn't install dependency in candy-machine-ui

Wanted to start candymachine-ui yarn doesn't install it's last dependency called @material-ui/icons enter image description here
-1
votes
1 answer

Solana Metaplex Creator Split issue

I'm using the Metaplex Storefront for testing purposes. I've added 2 whitelisted wallets for my auction page via the admin page(one of the whitelisted wallet is that I used to initialize the page). I've made a test auction with this…
koko91kon
  • 88
  • 1
  • 6
-1
votes
2 answers

Solana: On chain, how do you find out how many tokens are in someones token account?

I have what must be an incredibly simple question, but after a lot of internet searching all i've been able to find is how to do this offchain (ie with getTokenAccountBalance), but how do you do this on chain? Is it stored in the data for the…
LindleyLentati
  • 161
  • 3
  • 12
-1
votes
1 answer

After minting my collection appears with name "Collection NFT"

I'm using candy-machine v2 to mint my NFT collection. I set up everything correctly and tested a basic minting. Everything seems fine, all metadata is correct. However the collection appears with the name "Collection NFT" in my Phantom wallet. I…
brknarsy
  • 89
  • 10
-1
votes
2 answers

Is there a way to read NFT metadata in the anchor program(rust)?

I tried using mint account info (which obviously wouldn't work) and I also tried to deserialise the mint.to_account_info().data into the metadata struct from the mpl_token_metadata::state::Metadata. This gave errors. I need the sellerFeeBasisPoints…
-1
votes
1 answer

Referral program in Metaplex storefront

What is the best way to create "Referral program" in Metaplex storefront? A referral program works by inviting customers to become brand ambassadors. They join the referral marketing program and get a unique code or link to share with their network.…
-1
votes
2 answers

How can I set the limit of NFTs that can be minted per wallet?

I need to update the limit of how many NFTs can be minted on 1 wallet
-1
votes
1 answer

ENOENT: no such file or directory, scandir 'smart

PS C:\Users\ahmad\Desktop\nft\metaplex-master> ts-node C:\Users\ahmad\Desktop\nft\metaplex-master\js\packages\cli\src\candy-machine-v2-cli.ts upload -e devnet -k C:\Users\ahmad\Desktop\nft\metaplex-master\devnet.json -cp…
-1
votes
1 answer

How to call solana anchor smart contracts from microsoft .net code?

is it possible to call solana anchor smart contracts from microsoft .net code? I see that anchor generates a IDL but it is javascript based, is this even possible?
DeeHawk
  • 305
  • 4
  • 13
-1
votes
1 answer

Setting up multiple whitelist using Candy Machine v2

I am working to deploy my first minting site and wondering how I can go about setting up multiple whitelists. For example, I want to have 3 different whitelist each with a different price, where the first set of minters are on WL1 and can mint from…
bschmitty
  • 1,118
  • 3
  • 16
  • 46
-1
votes
1 answer

How to get Fee Payer of a transaction? from TransactionResponse object

I am trying to make a small public script to fetch the initial minter of a token or a list of tokens. The easiest way is to fetch the transaction that matches with the correct program id and get the fee payer because, in 99.99% of the cases, the fee…
Oguzhan
  • 145
  • 1
  • 9
-1
votes
1 answer

How to create a new candy machine after testing to test again within project?

So I've been playing around and testing Candy machine on devnet, have the mint site set up and everything seems to be working ok. I want to test again as i have no more assets to mint so need to set up a new candy machine in the project. I've…
Liz
  • 5
  • 1
-1
votes
1 answer

Getting an Error `custom program error: 0x26` on Minting an NFT?

This is the Program Logs that I am getting when i try to create an NFT
Pratik.js
  • 250
  • 1
  • 9
-1
votes
1 answer

How can I write a Solana program that executes on a timer

For example, a program that sends a token or nft to a specific address once a month.
Celestino
  • 11
  • 2