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
Time Gets the time stamp of the current block
Trigger Gets the trigger type for the smart contract (verification contract or application contract).

Method

NameDescription
CheckWitness(byte[]) Verifies that the transactions / block of the calling contract has validated the required script hashes.
Log(string) Sends a log message to the client executing the smart contract.
Notify(params object[]) Sends a notification to the client executing the smart contract.

Constructor

The Runtime class is a static class and does not require a constructor.