solana_program::instruction

Function get_stack_height

Source
pub fn get_stack_height() -> usize
Expand description

Get the current stack height, transaction-level instructions are height TRANSACTION_LEVEL_STACK_HEIGHT, fist invoked inner instruction is height TRANSACTION_LEVEL_STACK_HEIGHT + 1, etc…