Skip to main content

New answers tagged

0 votes

How to create a metadata account with python?

2024 update to @KingKevin answer Change createMetadataAccountArgsV3 to CreateMetadataAccountV3InstructionArgs
Alejandro Acho's user avatar
1 vote

Issue with .env file

If you've added key like this SECRET_KEY="[(179, 94, 10, 171, 165, 165, 59)]" just remove parentheses and leave only square brackets.
slavugan's user avatar
  • 111
1 vote

Unable to add instruction to a transaction

I don't think this is possible without Jito. Solana has a max transaction size of 1232 bytes (https://docs.solanalabs.com/proposals/versioned-transactions#problem). Therefore if your instructions are ...
Winston Zhao's user avatar
0 votes

Unable to add instruction to a transaction

You can add an instruction using the add() method from Transaction e.g const transferInstruction = SystemProgram.transfer({ fromPubkey: sender.publicKey, toPubkey: receiver.publicKey, lamports: ...
Jimii's user avatar
  • 3,270
2 votes
Accepted

Solana sdk instruction is not matching my program's instruction

I guess you are missing the 8byte instruction discriminator: Anchor matches these against the available functions. If it does not find any it will end up here: // fallback instruction handler as ...
Jonas H.'s user avatar
  • 5,777

Top 50 recent answers are included