• 官网
  • 中文
  • English
  • Russian
  • More language
Show / Hide Table of Contents
  • NEO 基础知识
    • 关于 NEO
    • NEO 白皮书
    • NEO Contract白皮书
    • 共识机制
      • 共识机制白皮书
      • 共识机制图解
  • NEO 节点
    • NEO 节点介绍
    • NEO-GUI
      • 下载客户端
      • 钱包
      • 交易
      • 注册与分发资产
      • 与智能合约交互
      • 选举与投票
      • 其它功能
    • NEO-CLI
      • 发布
      • 安装
      • 节点列表
      • NEO-CLI 命令参考
      • API 参考
        • v2.9.0(或以上版本)
          • dumpprivkey
          • getaccountstate
          • getassetstate
          • getbalance
          • getbestblockhash
          • getblock
          • getblock
          • getblockcount
          • getblockheader
          • getblockhash
          • getblocksysfee
          • getconnectioncount
          • getcontractstate
          • getnewaddress
          • getrawmempool
          • getrawtransaction
          • getstorage
          • gettxout
          • getpeers
          • getvalidators
          • getversion
          • getwalletheight
          • invoke
          • invokefunction
          • invokescript
          • listaddress
          • sendfrom
          • sendrawtransaction
          • sendtoaddress
          • sendmany
          • validateaddress
        • v2.8.0
          • dumpprivkey
          • getaccountstate
          • getapplicationlog
          • getassetstate
          • getbalance
          • getbestblockhash
          • getblock
          • getblock
          • getblockcount
          • getblockhash
          • getblocksysfee
          • getconnectioncount
          • getcontractstate
          • getnewaddress
          • getrawmempool
          • getrawtransaction
          • getstorage
          • gettxout
          • getpeers
          • getvalidators
          • getversion
          • invoke
          • invokefunction
          • invokescript
          • listaddress
          • sendfrom
          • sendrawtransaction
          • sendtoaddress
          • sendmany
          • validateaddress
        • v2.7.6
          • dumpprivkey
          • getaccountstate
          • getapplicationlog
          • getassetstate
          • getbalance
          • getbestblockhash
          • getblock
          • getblock
          • getblockcount
          • getblockhash
          • getblocksysfee
          • getconnectioncount
          • getcontractstate
          • getnewaddress
          • getrawmempool
          • getrawtransaction
          • getstorage
          • gettxout
          • getpeers
          • getvalidators
          • getversion
          • invoke
          • invokefunction
          • invokescript
          • listaddress
          • sendfrom
          • sendrawtransaction
          • sendtoaddress
          • sendmany
          • validateaddress
    • NEO 客户端插件
    • NEO-Python
      • 概述
      • 安装 (Ubuntu/OSX)
      • 安装 (Windows)
      • NEO-Python SeedList
      • 基本用法
      • Prompt
      • 设置和日志
      • neo.Core.TX.Transaction
      • 与智能合约交互
      • Application vs. Verification
      • 数据类型
      • 测试
      • 测试装置
  • NEO 网络
    • 测试网
    • 搭建私有链
      • 搭建私有链
      • 快速搭建私有链
    • 快速搭建本地网络
    • 快速同步区块
    • 网络协议
  • NEO 工具
    • NEO SDK
      • 欢迎使用 NEO SDK
      • 常见数据类型转换
      • 账户
      • 钱包
      • 交易
    • 区块链浏览器
  • 智能合约
    • 智能合约介绍
    • 快速入门
      • 如何开始
        • 使用C# (Windows)
        • 使用C# (macOS)
        • 使用C# (ubuntu)
        • 使用 Java
        • 使用 Python
      • 合约编写须知
      • 测试
      • 部署和调用合约
    • 开发参考
      • API 参考
        • NEO
        • System
      • 框架
        • .net 框架
          • NEO
            • Account
            • Asset
            • Block
            • Blockchain
            • Contract
            • Enrollment
            • Header
            • Runtime
            • Storage
            • StorageContext
            • Transaction
            • TransactionAttribute
            • TransactionInput
            • TransactionOutput
            • TriggerType
            • Validator
          • System
            • ExecutionEngine
    • 合约示例与教程
      • Hello World
      • Lock(锁仓合约)
      • Domain(域名系统)
      • 鉴权合约示例教程
      • 锁仓合约示例教程
    • 参数和返回值
    • 智能合约触发器
    • 系统使用费
  • 常见问题
  • 交易所对接指南
    • v2.9.4
    • v2.9.3
    • v2.9.2
    • v2.9.1
    • v2.9.0
    • v2.8.0
    • v2.7.6

NEO 命名空间

NEO 命名空间是 NEO 区块链所提供的 API,提供了访问区块链账本数据的和操作持久化存储区的方法。这些 API 分为两类。

1、区块链账本。合约程序可以通过交互服务来访问到整个区块链上的所有数据,包括完整的区块和交易,以及他们的每一个字段。

2、持久化存储区。部署在 NEO 上的每一个应用合约都有一块仅可由该合约本身来存取的存储空间,可以用来存取合约中的数据。

注:本文中标记 new 和 已弃用 的地方是 2.0 版本相对 1.6 版本的更改之处。

类

类 说明
Account 表示账户的类,提供了查询余额的方法
Asset 用来表示资产的数据结构
Block 表示区块的类,提供了查询区块中交易的方法
Blockchain 该类提供了访问区块链数据的一系列方法
Contract 表示合约的类
Enrollment 已弃用 用来表示记账人报名交易的数据结构
Header 用来表示区块头的数据结构
Runtime new 提供智能合约运行时的一些方法
Storage 提供了持久化存储区的插入、查询、删除的方法
StorageContext new 用来表示私有存储区存储上下文的类
Transaction 用来表示交易的基类
TransactionAttribute 用来表示交易特性的数据结构
TransactionInput 用来表示交易输入的数据结构
TransactionOutput 用来表示交易输出的数据结构
Validator new 提供共识节点的一些方法

枚举

枚举 说明
TriggerType new 用来表示智能合约触发条件的枚举
StorageContext 已弃用 用来表示私有存储区存储上下文的枚举
  • Improve this Doc
Back to top Copyright © 2014-2018 NEO