Method: Chain::Config::ClientModule#configure

Defined in:
lib/chain/config.rb

#configure(opts) ⇒ void

This method returns an undefined value.

Configure specified Chain Core.

Parameters:

  • opts (Hash)

    Options for configuring Chain Core.

Options Hash (opts):

  • is_generator (Boolean)

    Whether the local core will be a block generator for the blockchain; i.e., you are starting a new blockchain on the local core. ‘false` if you are connecting to a pre-existing blockchain.

  • generator_url (String)

    A URL for the block generator. Required if ‘isGenerator` is false.

  • generator_access_token (String)

    An access token provided by administrators of the block generator. Required if ‘isGenerator` is false.

  • blockchain_id (String)

    The unique ID of the generator’s blockchain. Required if ‘isGenerator` is false.



156
157
158
# File 'lib/chain/config.rb', line 156

def configure(opts)
  client.conn.request('configure', opts)
end