Show / Hide Table of Contents

NEO Namespace

The NEO namespace is the API provided by the Neo blockchain, providing a way to access the block-chain data and manipulate the persistent store. These APIs are divided into two categories:

  1. Blockchain ledger. The contract can access all the data on the entire blockchain through interops layer, including complete blocks and transactions, as well as each of their fields.

  2. Persistent store. Each application contract deployed on NEO has a storage space that can only be accessed by the contract itself. These methods provided can access the data in the contract.

Note: The New and Deprecated tags in this article are the changes to version 2.0 relative to version 1.6.

Class

ClassDescription
Account A class representing the Account, providing a method to query the balance.
Asset A class representing an asset and its data structure.
Block A class representing a block, provides methods to query transactions in the block.
Blockchain Provides a set of methods for accessing blockchain data.
Contract A class representing a contract.
Enrollment New Represents the data structure of the registration transaction of a bookkeeper.
Header Represents the data structure of a block header
Runtime New Provides a set of methods during smart contract execution
Storage Provides a set of methods to insert, query, or delete data of a persistent store
StorageContext New A class representing storage context of the persistent store
Transaction The base class representing the transaction
TransactionAttribute The data structure representing the transaction attributes
TransactionInput The data structure representing the transaction inputs
TransactionOutput The data structure representing the transaction outputs
Validator New Provides a set of methods for consensus nodes

Enumeration

EnumerationDescription
StorageContext Deprecated Represents the enum of the storage context.