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

Init Token Account error - "Error processing Instruction 0: custom program error: 0x0"

In my program I'm trying to init PDA Token Accounts so that my program can store tokens of specified mints like this: #[derive(Accounts)] pub struct StartAuction<'info> { #[account(init, seeds=[&state.positions_count.to_ne_bytes()], bump, payer…
zdev
  • 75
  • 1
  • 2
  • 9
-1
votes
1 answer

how do I parse the data from programSubscribe websocket Endpoint?

JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'programSubscribe', params: [ address, { encoding: 'jsonParsed', …
josh hoffer
  • 126
  • 1
  • 7
-1
votes
1 answer

Trying adjust displayed info on OpenSea of Solana NFT collection

I created a Solana NFT collection using Candy Machine v2 (CM) and OpenSea automatically found and displayed the collection. Their documentation states that one should be able to adjust the info displayed about the collection on OpenSea when…
peter7000
  • 1
  • 1
-1
votes
1 answer

How to update freeze authority in solana nft

I have a SOLANA NFT that I mint, can I update 'freezeAuthority' using '@solana/spl-token' or '@metaplex-foundation'?
DoHan_Kim
  • 57
  • 1
  • 8
-1
votes
1 answer

Should I top up all my data accounts that used by my Solana program?

All the Solana documentation I've read says that I have to pay rent for all the data accounts I use. So if I'm developing a Solana program and I want to use some data account to store my data, I need to have a positive lamports balance on that data…
Pacha
  • 1
-1
votes
1 answer

How to set Kernel parameters using sysctl for a Hashicorp Nomad job

The docs says I can set the kernel parameters using sysctl for a docker task like so: config { sysctl = { "net.core.somaxconn" = "16384" } } This indeed works. But when I tried, sysctl = { "net.core.somaxconn" = "16384" …
Shinto C V
  • 714
  • 1
  • 9
  • 16
-1
votes
1 answer

How to create an address of solana by using python?

I want to generate the address of solana by using python how could I do that?
-1
votes
1 answer

Candy Machine Mints Happening Automatically During Sugar Upload

I haven't seen this before: I was just doing an NFT upload using the Sugar CLI. Everything went fine but at the end of the upload I saw this: [2/2] Verification Verifying 2000 config line(s): (Ctrl+C to abort) [00:00:35] Config line verification…
bschmitty
  • 1,118
  • 3
  • 16
  • 46
-1
votes
1 answer

Error: Cannot find module code: 'MODULE_NOT_FOUND', (metaplex)

im heaving trouble uploading my NFT to the devnet in solana using metaplex cli im following a tutorial on buildspace: https://buildspace.so/p/ship-solana-nft-collection/ (should be noted! im using WSL) i followed as instructed and when i needed to…
-1
votes
1 answer

How to integrate Phantom wallet in react project?

I actually desire to integrate phantom wallets into my custom hand website. Since I'm new to the web 3, I've just used Metamask and am unsure of what Solana and Phantom Wallets are.
sohaib
  • 574
  • 5
  • 16
-1
votes
1 answer

Anchor Problem Deploying NFT Program to Devnet

Error: Deploying program failed: Error processing Instruction 1: custom program error: 0x1 There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }. What is this error about? How do I fix it? I…
-1
votes
1 answer

getting a "this program may not be used for excuting instructions" error when making a simple spl transfer

i'm trying to send an spl-token transaction but it's not working, it's a transacion on the devnet with a token that i newly created, my code is from spl.token.instructions import transfer, TransferParams from spl.token.client import Client …
-1
votes
1 answer

Solana Metaplex V1 accept SPL token for auction

I'm using the Metaplex Storefront V1 for my auctions and I would like to implement SPL tokens for auctions as far as I know the earlier version of the storefront was able to accept SPL tokens basically with a dropdown menu, but the latest version…
koko91kon
  • 88
  • 1
  • 6
-1
votes
1 answer

Can I get nft metadata from the address in solana rust program?

I've noticed that metaplex got API for platforms like JS, iOS, Android and all of them are documented great, except RUST :) For example all of apis above got something like getNftByMint with output of mine nft data with all metadata inside But…
mutant_america
  • 738
  • 6
  • 18
-1
votes
1 answer

Solana program. failed: Failed to serialize or deserialize account data: Unknown'

I am getting an error: Failed to serialize or deserialize account data: Unknown'. I'm trying to get data like this: let mut bet_account = BidData::try_from_slice(&bet.data.borrow()[..])?;, where BidData contains the field bids:…