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
0
votes
1 answer

Where can I look up the NFT metadata?

If you go to https://explorer.solana.com/address/BD2i6K4EZ3upo4RNvT8xgzGApte5mpRCLDaMv5S8Vh6Y/metadata you can see SOME of the NFT metadata but not all. Where can I look up the attributes (trait_type: trait_value)?
Sr. Schneider
  • 647
  • 10
  • 20
0
votes
1 answer

Issues running "yarn build" while creating Solana NFTs

I've been having issues running "yarn build" for a few days now. I tried the suggestions I could find online without much luck. This is for an NFT project on Solana so hoping another dev on here may have ran into and has the fix. Things I've…
0
votes
1 answer

Solana create_candy_machine result in custom program error: 0x8f

After uploaded my asset, I'm trying to create candy machine with ts-node src/candy-machine-cli.ts create_candy_machine --env devnet --keypair "~\.config\solana\devnet.json" -s xxx -p 1 But I ran into Transaction simulation failed: Error processing…
Circle Hsiao
  • 1,497
  • 4
  • 22
  • 37
0
votes
3 answers

Solana candy machine upload assets Error: memory allocation failed, out of memory

I was trying to upload testing content by ts-node src/candy-machine-cli.ts upload assets --env devnet --keypair "~\.config\solana\devnet.json" -n 10 And ran into error below Transaction simulation failed: Error processing Instruction 1:…
Circle Hsiao
  • 1,497
  • 4
  • 22
  • 37
0
votes
1 answer

How to place an order on a Serum testnet market using Solana?

I'm trying to place an order on a Serum testnet market (SOL/USDT) in my case. I know I'm probably doing a couple of things wrong but I can't spot them. Here's my code: let connection = new web3.Connection(web3.clusterApiUrl("devnet")), wallet =…
ggiurca
  • 118
  • 1
  • 12
0
votes
3 answers

Customized candy machine: ProgramError: 102: The program could not deserialize the given instruction

I've forked the metaplex code, and am trying to implement a candy machine with presale capabilities. You can see this pull request for reference: https://github.com/FluffyPorcupine/metaplex/pull/1/files. I've modified both the rust lib.rs and…
Michael Rentmeister
  • 167
  • 1
  • 6
  • 24
0
votes
3 answers

Solana Candy machine TypeError: Cannot read properties of undefined (reading '_bn')

I'm following this article as a practice. ts-node packages/cli/src/candy-machine-cli.ts verify --env devnet --keypair "C:\Windows\System32\~\.config\solana\devnet.json" While trying to verify candy machine, I ran into TypeError: Cannot read…
Circle Hsiao
  • 1,497
  • 4
  • 22
  • 37
0
votes
2 answers

What is the scope of Metaplex's Candy Machine

It seems like Metaplex's candy-machine ships with some built-in assumptions about the way tokens will be minted and sold. Such as: All NFTs in the collection will have the same price. Buyers cannot pick WHICH asset in the collection they want to…
emersonthis
  • 32,822
  • 59
  • 210
  • 375
0
votes
1 answer

TypeError: this is undefined in rect js while passing BigNumber in solana RPC Request

i am getting this is undefined at BN while making RPC request to a function in solana smart contract ''' let token1Amount = BN(token1_amount); let token2Amount = BN(token2_amount) const add_liquidity = await router_program.rpc.addLiquidity( …
0
votes
2 answers

React WalletSignatureError

I'm trying to use solana wallet adapter in my react app following the setup in https://github.com/solana-labs/wallet-adapter but says: Attempted import error: 'WalletSignatureError' is not exported from '@solana/wallet-adapter-base' Could you…
jfcabreras
  • 141
  • 1
  • 1
  • 9
0
votes
1 answer

can't start solana validator node

hello i'm currently trying to start a validator node on a server , following the documentation i made the system file as shown [Unit] Description=Solana…
BF.Safouen
  • 59
  • 1
  • 5
0
votes
2 answers

Cannot deploy program to devnet with Anchor

On trying to deploy a program to devnet using anchor deploy, it takes a long while and throws the below error: Data writes to account failed: There was a problem deploying: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "" }. I…
Detech
  • 1
  • 3
0
votes
2 answers

SystemProgram::CreateAccount data size limited to 10240 in inner instructions

I'm using the Anchor framework with Solana. I have this account policy (not sure what to call it), for creating a PDA. #[derive(Accounts)] #[instruction(bump: u8)] pub struct CreateGameState<'info> { #[account(init, payer=user, …
Foobar
  • 7,458
  • 16
  • 81
  • 161
0
votes
1 answer

What to pass in for system program account when using Anchor?

I'm using the Anchor framework with Solana. I have the following set of accounts in Rust: but I'm trying to figure out how to pass these accounts in Javascript. I have the following test code: const admin = anchor.web3.Keypair.generate(); …
Foobar
  • 7,458
  • 16
  • 81
  • 161
0
votes
2 answers

I cant check the solana version in VS Code

Im trying something out with the Solana CLI and I cant seem to get VS Code to recognise the solana command as valid on my system it just throws this error whenever I try to check the version: file, or operable program. Check the spelling of the…
user16496922