Returns the address of the contract being executed.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 address of the contract being executed.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_contract_address() -> ContractAddress
use starknet::get_contract_address;
let contract_address = get_contract_address();
Was this page helpful?