Function build_transaction_from_instructions
Source pub fn build_transaction_from_instructions(
instructions: &[SolanaInstructionSpec],
payer: &Pubkey,
recent_blockhash: Hash,
) -> Result<Transaction, TransactionError>
Expand description
Builds a Solana transaction from instruction specifications.
§Arguments
instructions - Array of instruction specifications
payer - Public key of the fee payer (must be the first signer)
recent_blockhash - Recent blockhash from the network
§Returns
A fully formed transaction ready to be signed