Class: Chain::Asset

Inherits:
ResponseObject show all
Defined in:
lib/chain/asset.rb

Defined Under Namespace

Classes: ClientModule, Key, Query

Instance Attribute Summary collapse

Method Summary

Methods inherited from ResponseObject

#[], #[]=, #initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from Chain::ResponseObject

Instance Attribute Details

#aliasString (readonly)

User specified, unique identifier.

Returns:

  • (String)


24
# File 'lib/chain/asset.rb', line 24

attrib :alias

#definitionHash (readonly)

User-specified, arbitrary/unstructured data visible across blockchain networks. Version 1 assets specify the definition in their issuance programs, rendering the definition immutable.

Returns:

  • (Hash)


43
# File 'lib/chain/asset.rb', line 43

attrib :definition

#idString (readonly)

Globally unique identifier of the asset. Asset version 1 specifies the asset id as the hash of:

  • the asset version

  • the asset’s issuance program

  • the core’s VM version

  • the hash of the network’s initial block

Returns:

  • (String)


19
# File 'lib/chain/asset.rb', line 19

attrib :id

#is_localBoolean (readonly)

Returns:

  • (Boolean)


51
# File 'lib/chain/asset.rb', line 51

attrib :is_local

#issuance_programString (readonly)

Returns:

  • (String)


28
# File 'lib/chain/asset.rb', line 28

attrib :issuance_program

#keysArray<Key> (readonly)

Returns:



32
# File 'lib/chain/asset.rb', line 32

attrib(:keys) { |raw| raw.map { |v| Key.new(v) } }

#quorumInteger (readonly)

Returns:

  • (Integer)


36
# File 'lib/chain/asset.rb', line 36

attrib :quorum

#tagsHash (readonly)

Returns:

  • (Hash)


47
# File 'lib/chain/asset.rb', line 47

attrib :tags