Show / Hide Table of Contents

Runtime.Notify Method (params object[])

Similar to Runtime.Log, this notifies the client by the executing smart contract. This method can trigger an event on the client but will require the client to be compatible.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public static extern void Notify(params object[] state)

Parameters:

state: The notification message, can be of any length and any type.

Example

public class Contract1 : FunctionCode
{
    public static void Main()
    {
        Runtime.Notify("Hello", "World", Blockchain.GetHeight());
    }
}

Back