Version
Show / Hide Table of Contents

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

NameDescription
Trigger Gets the trigger type for the smart contract (verification contract or application contract).
PlatformGets information of the platform on which the smart contract is currently executed
TimeGets the timestamp of the current block
InvocationCounterGets the call number of the current contract
GasLeftGets the left GAS of the fee of current transaction

Method

NameDescription
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.