Runtime Class
Provides a set of methods during smart contract execution.
Namespace: Neo.SmartContract.Framework.Services.Neo
Assembly:Neo.SmartContract.Framework
Syntax
public static class Runtime
Attributes
Name | Description |
---|---|
Trigger | Gets the trigger type for the smart contract (verification contract or application contract). |
Platform | Gets information of the platform on which the smart contract is currently executed |
Time | Gets the timestamp of the current block |
InvocationCounter | Gets the call number of the current contract |
GasLeft | Gets the left GAS of the fee of current transaction |
Method
Name | Description |
---|---|
GetNotifications(UInt160 hash = null) | Gets all notifications of the execution of a contract |
Log(string) | Sends a log message to the client executing the smart contract. |
CheckWitness() | Verifies whether the transactions / block of the calling contract has validated the required script hashes. |
Constructor
The Runtime class is a static class and does not require a constructor.