python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Unable to sign transaction to PDA in Solana using anchor
I'm working on learning Solana full stack using Anchor. I've run into a problem with signing a transaction sending Sol to a PDA owned by a program I'm making. I'm unable to call the rpc for the functi...
zmg00000
Votes: 0
Answers: 1
What does "invalid account discriminator" mean in Anchor?
I'm trying to fetch an account from a public key:
await program.account.myAccountType.fetch(somePubkey);
But then Anchor throws an error saying:
Invalid account discriminator
What is an account disc...

Evan Conrad
Votes: 0
Answers: 4
How do I avoid my anchor program throwing an "Access violation in stack frame"?
My Anchor program has an instruction struct that looks like this:
#[derive(Accounts)]
pub struct MyInstruction<'info> {
pub my_account: Account<'info, MyAccount>,
// ...
}
#[account]...

Evan Conrad
Votes: 0
Answers: 1
Error loading workspace IDL for Solana Anchor Testing
For some reason, my mocha test is unable to find my IDL. I am getting the error below:
name@Mabels-MacBook-Pro solana-anchor-reactjs-payment % anchor test
BPF SDK: /Users/name/.local/share/solana/inst...

Mabel Oza
Votes: 0
Answers: 3