project-8-token-lottery: Error InvalidSecpSignature when run anchor test
I am very grateful for your knowledge to be shared. Through the knowledge you share I learn many new and very interesting things.while practicing project-8-token-lottery. I get an error when running...
View ArticleHow do I fix type mismatch and type annotation errors when running avm...
I'm encountering two specific Rust errors while running avm install 0.29.0. These errors seem to involve type inference issues and a mismatched return type in my code. Below is the relevant code and...
View ArticleSolana Wallet address automatically generated
I'm building a betting platform on Solana, with a platform token. When a user registers on our platform and enters their email address, they can log in and navigate to the wallet section. There, they...
View ArticleSolana Program - Rust Borsh serialization issue
Solana Program - Rust Borsh serialization issueHere is the solana program [ethereum terms this is called a smart contract]:use solana_program::{  account_info::AccountInfo,  entrypoint,...
View ArticleTrying to transfer SPL token but fails Help Please
I used the following Rust code (now updated) to try to transfer spl tokens between wallets using ATAs of the respective wallets for the given token.The from.key is the authority for the transfer. let...
View Articleassertion `left == right` failed: Bank snapshot genesis creation time does...
I am setting up solana-test-validator using the ledgerhttp://160.202.128.9:8899/snapshot-294878673-a6AxTznrH1mgMp6UhcP8Y7x4LXswTk7Grob8TFaRtSm.tar.zstusing command solana-test-validator --ledger...
View ArticleUsing declare_id with Environment Variables
I’m wondering if it's possible to use:declare_id!(ENV::PROGRAM_ID);This would allow me to work with several developers without needing to share:wallet = "~/.config/solana/id.json"
View ArticleHow can I set up an RPC node for the Solana testnet
There are only articles to start with a local validator. I don't want to start any local validator; I want to run an RPC node for the real testnet. How can I do it? I can't find any documentation...
View ArticleFailure in transferring SPL tokens from one account to another inside Solana...
Here's my Solana Program. It defines the logic for staking SPL tokens.use anchor_lang::prelude::*;use anchor_spl::{ token::{TokenAccount, Mint,Token, Transfer, transfer, Approve},...
View ArticleWhat is a consistent way to fund(airdrop) to new accounts on devnet in your...
I have the following typescript anchor test code that requests airdrops and works well in localnet.//Airdrop SOL to intialize accountsit("Airdrop", async () => { await Promise.all([admin, studentA,...
View ArticleError Code: AccountDidNotSerialize. Error Number: 3004. Error Message: Failed...
I am trying to update value of string. I can update if its type is u8, u32, u64, or i64 but cannot update if it's a string type. Any guesses what am I doing wrong?Code snippet:Program Function pub fn...
View ArticleSol Was Withdrawn to A Meme Contract Address In Error (and not a Wallet)
I mistakenly sent sols to a Meme Contract address instead of a wallet address. How can I retrieve my sols back? My understanding is that smart contracts are not repositories so they cannot accept...
View ArticleAnchor IDL different (incorrect?) from Solana Playground IDL generated
I was following this guide to learn anchor: https://www.quicknode.com/guides/solana-development/anchor/transfer-tokensWhen deploying the program via Solana Playground (as instructed), everything runs...
View ArticleBatch Transfer SPL Token that has Token transfer extension enabled
Is it even possible to batch transfer an SPL token that has a Token transfer(token fee) extension enabled?I would Like to create a program which takes the destination wallet from a JSON file and...
View ArticleTransaction failure without any reason
Guys its very irritating, my transaction is failing for like 3 days.3 days ago I wanted to send some sol to other wallet, I had $0.1 of sol in it and wanted to send a little ammount, but the fees was...
View ArticlePrice hidden in Phantom wallet
We launched a coin ($Oliver) on Raydium about 1 month ago and so far no problems with phantom, but now phantom no longer shows a value for the coin in the wallet - this is the case for many in the coin...
View ArticleWhat is relationship between an Entry and a Block in Solana
I have always thought of Blocks in Solana (and in any blockchain really) as containing a list of transactions.But in Solana, it seems there is also the concept of an Entry, which from what I am reading...
View ArticleSending SOL to Coinbase error
I am having issues sending my Solana to my Coinbase wallet from Phantom. I am getting an error message. Please explain to me how to proceed.
View ArticleHow can I sign a Solana transaction on the frontend with data coming from the...
async function getTransaction(){ $.ajax({ url: 'http://localhost:8080/gettransaction', type: 'GET', dataType: 'json', success: async function(data) { console.log(data); // Log the data for debugging //...
View Article