Class: Chain::Account

Inherits:
ResponseObject show all
Defined in:
lib/chain/account.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)


18
# File 'lib/chain/account.rb', line 18

attrib :alias

#idString (readonly)

Unique account identifier.

Returns:

  • (String)


13
# File 'lib/chain/account.rb', line 13

attrib :id

#keysArray<Key> (readonly)

The list of keys used to create control programs under the account. Signatures from these keys are required for spending funds held in the account.

Returns:



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

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

#quorumInteger (readonly)

The number of keys required to sign transactions for the account.

Returns:

  • (Integer)


29
# File 'lib/chain/account.rb', line 29

attrib :quorum

#tagsHash (readonly)

User-specified tag structure for the account.

Returns:

  • (Hash)


34
# File 'lib/chain/account.rb', line 34

attrib :tags