• 官网
  • 中文
  • English
  • Español
  • 日本語
  • 한국어
  • Deutsch
  • Nederlands
  • Portuguese (Br)
  • French
  • Italiano
Show / Hide Table of Contents
  • Home
  • Getting Started
  • NEO Node
    • Introduction
    • Installation
    • Test Network
    • Using NEO-GUI
    • Using NEO-CLI
    • Private Chain
    • API Reference
      • dumpprivkey
      • getaccountstate
      • getapplicationlog
      • getassetstate
      • getbalance
      • getbestblockhash
      • getblock
      • getblock
      • getblockcount
      • getblockhash
      • getblocksysfee
      • getconnectioncount
      • getcontractstate
      • getnewaddress
      • getrawmempool
      • getrawtransaction
      • getstorage
      • gettxout
      • getpeers
      • getversion
      • invoke
      • invokefunction
      • invokescript
      • listaddress
      • sendrawtransaction
      • sendtoaddress
      • sendmany
      • validateaddress
    • NEO SDK
      • About NEO SDK
      • NEO SDK Common Uses
    • Network Protocol
    • Consensus
      • Consensus Whitepaper
      • Consensus Diagram
  • Smart Contract
    • Introduction
    • Getting Started (C#)
    • Getting Started (C#) for macOS
    • Getting Started (C#) for ubuntu
    • Getting Started (Java)
    • Getting Started (Python)
      • Using Prompt
      • Settings and Logging
      • Interacting with Smart Contracts
      • Tests
      • Python Compiler
    • Tutorial
      • Basics
      • Hello World
      • Lock Contract
      • Domain (Domain Name System)
      • Smart Contract Parameters and Return Values
      • Contract Authentication Tutorial
      • Deploying a Lock Contract
      • Contract Call
      • Deploying and Invoking
    • Test
    • Whitepaper
    • API Reference
      • NEO
      • System
    • Framework
      • .NET framework
        • NEO
          • Account
          • Asset
          • Block
          • Blockchain
          • Enrollment
          • Header
          • Storage
          • StorageContext
          • Transaction
          • TransactionAttribute
          • TransactionInput
          • TransactionOutput
        • System
          • ExecutionEngine
    • System Fees
  • Document for Exchange Developers
    • v2.7.3
    • v2.7.1
    • v2.6.0
  • Contributors

Asset Class

Represents the data structure of an asset.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public class Asset

Attributes

Name Description
Admin Returns the administrator (contract address) of the asset who has the right to modify the attributes of the asset (such as total, name, etc)
Amount Returns the total amount of the asset
AssetId Returns the ID of the asset
AssetType Returns the type of this asset
Available Returns the quantity of the asset that has been issued
Issuer Returns the issuer (contract address) of the asset who has the right to issue the asset
Owner Returns the owner (public key) of the asset
Precision Returns the accuracy of the asset (the smallest division), or the number of digits after the decimal point

Methods

Name Description
Create(byte, string, long, byte, byte[], byte[], byte[]) new Register an asset on the blockchain
Renew(byte) new For asset renewal

Constructor

The Asset object is constructed through Blockchain.GetAsset (byte[]) method.

The Asset.Create(byte, string, long, byte, byte[], byte[], byte[]) method is used to register a new asset on the blockchain and returns an Asset object.

  • Improve this Doc
Back to top Copyright © 2014-2018 NEO