Function convert_instruction_specs_to_instructions

Source
pub fn convert_instruction_specs_to_instructions(
    instructions: &[SolanaInstructionSpec],
) -> Result<Vec<Instruction>, TransactionError>
Expand description

Converts instruction specifications to Solana SDK instructions.

Validates and converts each instruction specification by:

  • Parsing program IDs and account pubkeys from base58 strings
  • Decoding base64 instruction data

§Arguments

  • instructions - Array of instruction specifications from the request

§Returns

Vector of Solana SDK Instruction objects ready to be included in a transaction