SolanaJSONRPCError: failed to get confirmed block: Block not available for slot
I am new to Sol web3 dev. I am trying to get pending transactions of a wallet. When I try to get the block, it fails with error "SolanaJSONRPCError: failed to get confirmed block: Block not available...
View ArticleHow to create data account in web3.js and read&write from custom program?
I want to store data in data account owned by my custom program.Data structure is very simple - just Vec<PublicKey>I can use pda but I'm worried its space should be set when being...
View ArticlesendTransaction sometime not landing on the blockchain
I'm currently using the solana/web3.js and raydium-sdk library to perform swap with tokens. Everything seems to be working fine, however, I after sending my transaction with the sendTransaction...
View ArticleMonitoring the latest Price
I need help getting the latest price of a token.I am working on a sniper bot where users buy and sell the token at a specific price. I need to constantly monitor the current price, and if it matches...
View ArticleI can't fetch full transactions for Solana token from quicknode api. Some...
I am trying fetch all the signatures of a solana token with details. I am using monthly subscription. But Its failed to give full transactions. Some signatures are missing.Same happening with...
View ArticleUSDC price on NFT
I am trying to figure out how you set a price value in USD on Solana. My project needs to be fixed to USDC pricing, not Sol. I get it has something to do with an SPL token but the guard value is only...
View ArticleError: expected environment variable `ANCHOR_WALLET` is not set
I had an error, seems like I'm missing something. Hope someone can help const connection = new Connection(clusterApiUrl("devnet"), "confirmed"); const program = new anchor.Program<Sleep>(IDL);
View ArticleError in GET /fetch-transactions: TypeError: s.Wallet is not a constructor
I'm currently trying to fetch-transactions in a serverless function using vercel and getting this error: Error in GET /fetch-transactions: TypeError: s.Wallet is not a constructorIs there a special way...
View ArticleAre there any risks with the PDA account generate with the hash function?
I currently have a PDA account with the following structure:#[derive(AnchorSerialize, AnchorDeserialize)]pub struct NewFoo { pub foo_id: String,}#[derive(Accounts)]#[instruction(new_foo: NewFoo)]pub...
View Articleblack3 dependency is stopping my cargo build not sure what this errors reason...
failed to select a version for `blake3` which could resolve this conflictjasonwilliams@Jasons-MacBook-Pro solana-arbitrage-bot % cargo tree -e features | grep blake3 Updating git repository...
View ArticleWhat does it mean for a Solana program to not be associated with a...
From the Solana docs on Program Accounts, when a new program is deployed, a Program Account and an associated Program Executable Data Account is created and the Program Account stores the address of an...
View ArticleSeeking confirmation or advice on best way to retrieve all transactions...
I need to retrieve all signatures on a given block for a given account. I'm using the RC branch right now, and think it will be likely that v2 will be the release branch by the time I'm ready to...
View Articleunexpected `cfg` condition value: `solana`
so im trying to build using anchor on wsl, but everytime it will always gave a warning like thiswarning: unexpected `cfg` condition value: `solana` --> programs/vote-sc/src/lib.rs:5:1 |5 |...
View ArticleTransferring money from phantom wallet to Coinbase not working?
I transferred money into my phantom wallet and put it in various meme coins. Once I took my profits I sent the money to my solona address on my Coinbase account, on phantom wallet it says the...
View ArticleI just opened my account. deposited solana and it I suddenly dont see it...
I really need help on this does anyone have any contact I needed to at least get live chat but its AI and its very useless. email needs time...
View ArticleWalletMultiButton stucked on connecting
I have the following problem.I have launched a vite project on my local network, so I can acces it from different computers.The endPoint of the ConnectionProvider is get by using...
View ArticleFailing to deserialize a tx from rpc, Error deserializing transaction:...
Hey guys I'm just trying to deserialize a tx from an rpc.const subscriptionMessage = JSON.stringify({ jsonrpc: "2.0", id: 1, method: "blockSubscribe", params: [ { mentionsAccountOrProgram:...
View ArticlePhantom wallet, assets gone
I had eth sent to a phantom wallet and swapped it for agix and had sent the remaining eth to another wallet. Now my agix is gone and phantom wallet says I have no assets when it shows that I swapped it .
View ArticleCannot Create an Associated Token Account
I'm not the first to ask a question about this problem, but none of the questions asked were answered. The problem is that I'm trying to create an associated token account to mint an NFT, but the...
View ArticleSolana Network not on wallet and I cant buy Solana nor receive it
I don't know If I am retarded but I swear my wallet is brocken. I was going to show images but it won't allow me to. Basically solana network is not on my wallet. When I click recieve the only networks...
View Article