Version
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 these categories:

  • 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.

  • Native contract. A series of methods of native contracts can be invoked in the smart contract.

  • Persistent storage. 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.

Class

ClassDescription
Account A class representing the Account, providing a method to verify if it is a standard account.
Block A class representing a block, provides a set of block-specific properties.
Contract A class representing a contract.
ContractManagement A contract that manages other contracts.
Crypto Provides the ECDsa method to verify the signature.
GAS A set of properties and methods of the native contract GasToken.
Helper An auxiliary method for the contract storage
Iterator The customized iterator in the smart contract.
Json A data structure
Ledger A set of properties and methods of the native contract LedgerContract
NameService A set of properties and methods of the native contract NameService
NEO A set of properties and methods of the native contract NeoToken.
Notification The notification sent when the contract is executed.
Oracle Provides methods to initiate Oracle requests.
Policy Provides methods to access and modify system parameters.
RoleManagement A set of properties and methods of the native contract RoleManagement.
Runtime 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 A class representing storage context of the persistent storage
StorageMap A key-value storage for a specific prefix in the given storage context.
Transaction The base class representing the transaction

Enumeration

EnumerationDescription
CallFlags Defines the pattern when invoking contracts
FindOptions Defines search options for searching a storage. Used in the Storage.Find method.
OracleResponseCode Defines the response code types of Oracle
RecordType Defines the DNS types of NameServices
Role Defines permission types of RoleManagement
StorageFlags Represents the property of written data
TriggerType Defines the trigger types