Class: Chain::Asset
- Inherits:
-
ResponseObject
- Object
- ResponseObject
- Chain::Asset
- Defined in:
- lib/chain/asset.rb
Defined Under Namespace
Classes: ClientModule, Key, Query
Instance Attribute Summary collapse
-
#alias ⇒ String
readonly
User specified, unique identifier.
-
#definition ⇒ Hash
readonly
User-specified, arbitrary/unstructured data visible across blockchain networks.
-
#id ⇒ String
readonly
Globally unique identifier of the asset.
- #is_local ⇒ Boolean readonly
- #issuance_program ⇒ String readonly
- #keys ⇒ Array<Key> readonly
- #quorum ⇒ Integer readonly
- #tags ⇒ Hash readonly
Method Summary
Methods inherited from ResponseObject
#[], #[]=, #initialize, #to_h, #to_json
Constructor Details
This class inherits a constructor from Chain::ResponseObject
Instance Attribute Details
#alias ⇒ String (readonly)
User specified, unique identifier.
24 |
# File 'lib/chain/asset.rb', line 24 attrib :alias |
#definition ⇒ Hash (readonly)
User-specified, arbitrary/unstructured data visible across blockchain networks. Version 1 assets specify the definition in their issuance programs, rendering the definition immutable.
43 |
# File 'lib/chain/asset.rb', line 43 attrib :definition |
#id ⇒ String (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
19 |
# File 'lib/chain/asset.rb', line 19 attrib :id |
#is_local ⇒ Boolean (readonly)
51 |
# File 'lib/chain/asset.rb', line 51 attrib :is_local |
#issuance_program ⇒ String (readonly)
28 |
# File 'lib/chain/asset.rb', line 28 attrib :issuance_program |
#keys ⇒ Array<Key> (readonly)
32 |
# File 'lib/chain/asset.rb', line 32 attrib(:keys) { |raw| raw.map { |v| Key.new(v) } } |
#quorum ⇒ Integer (readonly)
36 |
# File 'lib/chain/asset.rb', line 36 attrib :quorum |
#tags ⇒ Hash (readonly)
47 |
# File 'lib/chain/asset.rb', line 47 attrib :tags |