Skip to main content

Questions tagged [instruction]

The tag has no usage guidance.

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

Error : TypeError: Cannot read properties of undefined (reading 'equals')

Hello im trying to decode a possible MintToInstruction if there is one present in the transaction im looking at. This is my code: const { decodeMintToInstruction, decodeMintToCheckedInstruction, ...
Golden's user avatar
  • 29
1 vote
1 answer
31 views

sign an instruction on the frontend, another on the backend for the same transaction

i have a few questions: whats the best way to handle this do i create the txn on the backend, then let the frontend sign and send it? if so how? how can i partially sign the transaction on the backend,...
soulninja dev's user avatar
1 vote
1 answer
19 views

How to pass Vec arg and strings args to instruction?

Using anchor pub fn instruction(ctx: Context<InstructionContext>, arg1: String, arg2: Vec<String>) -> Result<()> { How should I "encode" the args to pass them from the ...
FluffyMuffin47's user avatar
1 vote
1 answer
25 views

How to send a solana instruction with big data?

I want to send a raw data much bigger maybe with a 2048 length. Also I want to pass data as instruction data. While I build the transaction and execute, it told me the size is too big. How can I do ...
xingyue's user avatar
  • 13
0 votes
0 answers
128 views

Trying to claim rewards on bonkrewards.com - Program Error: "Instruction #1 Failed"

When I try to claim rewards on bonkrewards.com I get this result: Program Error: "Instruction #1 Failed" Program log: #1 Unknown program instruction > Program log: Instruction: ClaimAll ...
CryptoParsel's user avatar
1 vote
1 answer
1k views

Decoding Transactions

I am learning how to decode solana transactions, how do i decode it like sol scan to get the instructions/swaps for tokens such as raydium? I see a programIdIndex and data, the data is base58 decoded ...
wonton's user avatar
  • 21
0 votes
1 answer
59 views

How to store signatures in a pda and invoke an instruction with signatures

I want to create a program influenced by multisig structure. There will be multiple types of instructions that require two parties to sign each transaction. Here's what I have in my mind: There will ...
brknarsy's user avatar
1 vote
1 answer
45 views

having trouble to encode a u64 as data for CPI

I have a u64 which is an amount of lamports. I need to send it to another program with a CPI. So i'm trying to encode it in the data, but can't figure out how to do it. Here is what i tried: let mut ...
Effe2's user avatar
  • 1,178
1 vote
3 answers
513 views

Solana Deserialization

Anymore has some resources or something on how to implement borsh deserialization for Solana instruction data? I'm having the issue that I don't know the length so I get an error when trying to call ...
DZWG's user avatar
  • 91
2 votes
2 answers
1k views

How to store data directly on the Solana blockchain?

I am a beginner in Solana Development and I recently learned that data in Solana blockchain can be stored inside accounts. Instead of this is it possible to store the data directly in a block instead ...
Rounak Naik's user avatar
4 votes
1 answer
223 views

solana-test-validator error Illegal instruction: 4 after install solana 1.14.10

I am trying to update solana to 1.14.10, but after install it, solana-test-validator is not working. Here is error. Notice! No wallet available. solana airdrop localnet SOL after creating one Ledger ...
zheng yun's user avatar
1 vote
0 answers
655 views

Deserialize metaplex token metadata instruction data

I would like to dezerialise instruction data to the metaplex token metadata program in node js. For example the instruction data of creating a metadata account v2 or when creating a master edition v3. ...
Tomvkgames's user avatar
3 votes
2 answers
1k views

How to Increase compute limit above 200k compute

I am making a CPI to a heavy instruction in another program and running into insufficient compute limit issues. How do I increase the compute limit for my instruction. I once saw up to 1.4M compute ...
chinepun.sol's user avatar
4 votes
1 answer
196 views

How can I do one cross-program-invocation with multiple instructions?

in a nutshell I'm wondering how to send one CPI call with a vector of Instructions. Here's an example: I noticed there's a function in the solana_program Rust crate called: solana_program::...
Joe C's user avatar
  • 1,086