Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
54 views

How to fetch all information about spl token with token address in anchor or in javascript

i want to fetch token information of spl token directly from the solana blockchain . Give some solution to fetch metadata , tokenomics data and security data of spl token . i want to fetch directly ...
muthu kumar's user avatar
1 vote
2 answers
422 views

Getting error while minting token to an account "Transaction simulation failed: Error processing Instruction 0: invalid account data for instruction"

My mint test cases are failing and I am clueless where it is going wrong pub fn mint(ctx: Context<MintToken>, params: MintTokenParams) -> Result<()> { // Check user balance ...
blackhorse's user avatar
0 votes
1 answer
109 views

How to create the seeds for invoking spl cpi instruction?

I need a program owned token account to hold WSOL. I am creating it like thus #[derive(Accounts)] pub struct InitializeProgramTokenAccount<'...
guccimane's user avatar
3 votes
1 answer
1k views

TypeError: Cannot read properties of undefined (reading 'createInitMintInstruction')

I am getting this error. TypeError: Cannot read properties of undefined (reading 'createInitMintInstruction') I dont know where and how it went wrong. Appreciate the help. await program.rpc.mintNft({ ...
Syahmi Shaarani's user avatar
0 votes
1 answer
219 views

Error: Signature verification failed with PDA when transferring SPL token

I have been figuring this one out for a few days. Appreciate the help. I want to be able to send the tokens from the PDA ATA to the user who is removing his vault.\ This is the error I am getting: ...
Syahmi Shaarani's user avatar
6 votes
2 answers
603 views

Looking for implementation example of anchor_spl::token::initialize_account

I want to use the initialize_account function from anchor_spl::token. The function is given below: pub fn initialize_account<'a, 'b, 'c, 'info>( ctx: CpiContext<'a, 'b, 'c, 'info, ...
fahad's user avatar
  • 399
2 votes
1 answer
377 views

Solana can't mint to a different token account

Folks, I'm starting with Solana and it's been rough to learn. Despite the poor error messages and the learning curve of Rust, I'm making my way through it. I'm trying to develop a new token that will ...
Dinaiscoding's user avatar