Show / Hide Table of Contents

Notification 类

表示合约执行发送的通知。

命名空间: Neo.SmartContract.Framework.Services

程序集:Neo.SmartContract.Framework

语法

public class Notification : IApiInterface

属性

名称说明
ScriptHash通知发送者Sender的脚本哈希
EventName通知的事件名
State代表通知内容的对象,可为任意类型(数值、字符串、数组)

构造方法

通过 Runtime.GetNotifications(UInt160 hash = null) 来获得 Notification 对象。