public class ExecutionEngine
extends java.lang.Object
| Constructor and Description |
|---|
ExecutionEngine() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getCallingScriptHash()
Gets the script hash of the caller of the contract.
|
static byte[] |
getEntryScriptHash()
Gets the script hash of the entry points of the contract (in the contract invocation chain).
|
static byte[] |
getExecutingScriptHash()
Gets the script hash of the currently executing contract.
|
static Transaction |
getScriptContainer()
Gets the container that triggered the execution of the current contract.
|
public static Transaction getScriptContainer()
The container of an contract-invoking script is usually a Transaction. In that case,
the return value can be cast to a Transaction. E.g.:
Transaction tx = (Transaction) ExecutionEngine.getScriptContainer();
public static byte[] getExecutingScriptHash()
public static byte[] getCallingScriptHash()
public static byte[] getEntryScriptHash()