Asset and Account
There are two kinds of assets in NEO: One is UTXO-type global assets, such as NEO and GAS. They are defined in Genesis Block. The other is NEP5 assets, which is generated by a smart contract. The former are recorded in transactions, while the latter are stored in the contracts' storage space.
|1||IsFrozen||bool||Frozen assets, cannot be transferred|
There are two models of
Amount: One is unlimited, the amount is set to
-Fixed8.Satoshi, which means infinity. The other is fixed amount that cannot be modified.
|Share||DutyFlag | 0x10||Equity-like assets|
|Invoice||DutyFlag | 0x18|
|Token||CreditFlag | 0x20||Normal token|
DutyFlag, needs the signature of the payee.
|NEO||AssetType.GoverningToken||0x00||100 million||All of which are transferred to the address of the standby consensus nodes' multi-signature contract in Genesis Block|
|GAS||AssetType.UtilityToken||0x01||100 million||By block release, NEO holders claim GAS through
In NEO, the account model and UTXO model coexist. Accounts record the UTXO-type global assets.
|20||ScriptHash||UInt160||The hash of account's script contract.|
|1||IsFrozen||bool||Fronzen accounts cannot transfer. This field is not currently used.|
|? * ?||Votes||ECPoint||the voted address list|
|?||Balances||Dict<UInt256, Fixed8>||UTXO assets, mapping from assetId to amount.|