Class: QuorumSdk::Chain

Inherits:
Object
  • Object
show all
Includes:
Chain, Group, Management, Node
Defined in:
lib/quorum_sdk/chain.rb,
lib/quorum_sdk/chain/node.rb,
lib/quorum_sdk/chain/chain.rb,
lib/quorum_sdk/chain/group.rb,
lib/quorum_sdk/chain/management.rb

Overview

Wrapper for HTTP APIs as chain admin

Defined Under Namespace

Modules: Chain, Group, Management, Node

Constant Summary

Constants included from Management

Management::ARGUMENTS_FOR_UPDATE_ALLOW_LIST, Management::ARGUMENTS_FOR_UPDATE_AUTH_MODE, Management::ARGUMENTS_FOR_UPDATE_CHAIN_CONFIG, Management::ARGUMENTS_FOR_UPDATE_DENY_LIST

Constants included from Group

Group::ARGUMENTS_FOR_CREATE_GROUP

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Node

#network, #node

Methods included from Management

#allow_list, #auth_type, #deny_list, #update_allow_list, #update_chain_config, #update_deny_list, #update_trx_auth_mode

Methods included from Group

#clear_group, #create_content, #create_group, #group, #groups, #join_group, #leave_group, #seed

Methods included from Chain

#block, #trx

Constructor Details

#initialize(**kwargs) ⇒ Chain

Returns a new instance of Chain.



14
15
16
17
18
19
# File 'lib/quorum_sdk/chain.rb', line 14

def initialize(**kwargs)
  @chain_url = kwargs[:chain_url]
  @jwt = kwargs[:jwt]

  @client = QuorumSdk::Client.new(@chain_url, @jwt)
end

Instance Attribute Details

#chain_urlObject (readonly)

Returns the value of attribute chain_url.



12
13
14
# File 'lib/quorum_sdk/chain.rb', line 12

def chain_url
  @chain_url
end

#clientObject (readonly)

Returns the value of attribute client.



12
13
14
# File 'lib/quorum_sdk/chain.rb', line 12

def client
  @client
end

#jwtObject (readonly)

Returns the value of attribute jwt.



12
13
14
# File 'lib/quorum_sdk/chain.rb', line 12

def jwt
  @jwt
end