Show / Hide Table of Contents

System Namespace

The System namespace is the API provided by the Smart Contract Execution Engine (NeoVM), which provides a way to access the execution environment of the smart contract.

System.ExecutionEngine.GetScriptContainerGet the script container for this smart contract (the first trigger)
System.ExecutionEngine.GetExecutingScriptHashGet the scripthash of the executing smart contract
System.ExecutionEngine.GetCallingScriptHashGet the scripthash of the caller for this smart contract
System.ExecutionEngine.GetEntryScriptHashGet the scripthash of the entry point for the smart contract (the starting point of the contract call chain)

The source code for the API above can be found under Neo.VM in the src\Neo.VM\InteropService.cs file.