From solana web3.js, it looks like it only shows 1 level deep of CPI.
How would I get inner ix 2 in this example:
tx:
ix1:
inner ix1:
inner ix2:
ix2:
...
type ConfirmedTransactionMeta = {
...
/** An array of cross program invoked instructions */
innerInstructions?: CompiledInnerInstruction[] | null;
...
};
type CompiledInnerInstruction = {
index: number;
instructions: CompiledInstruction[];
};
type CompiledInstruction = {
/** Index into the transaction keys array indicating the program account that executes this instruction */
programIdIndex: number;
/** Ordered indices into the transaction keys array indicating which accounts to pass to the program */
accounts: number[];
/** The program input data encoded as base 58 */
data: string;
};