Instructions and Transactions
Solduino SDK supports both high-level helpers and low-level instruction composition.
Building Blocks
Instructionfor program id, account metas, and data encoding.Messagefor accounts, recent blockhash, and compiled instructions.Transactionfor signatures + message + instruction composition.
Typical Flow
- Build one or more instructions.
- Add to transaction.
- Set recent blockhash.
- Sign with required keypairs.
- Serialize and submit using RPC.
Example
Transaction tx;
tx.addTransferInstruction(fromPubkey, toPubkey, 1'000'000);
tx.setRecentBlockhash(blockhash);
tx.sign(privateKey, fromPubkey);For advanced usage, see Custom Program Interactions.
Last updated on