Returns the execution info for the current execution.Documentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
Returns the execution info for the current execution.Documentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
pub fn get_execution_info() -> Box
use starknet::get_execution_info;
let execution_info = get_execution_info().unbox();
// Access various execution context information
let caller = execution_info.caller_address;
let contract = execution_info.contract_address;
let selector = execution_info.entry_point_selector;
Was this page helpful?