Class: Filecoin::Client

Inherits:
Object
  • Object
show all
Includes:
Node
Defined in:
lib/filecoin/client.rb,
lib/filecoin/client/node.rb

Defined Under Namespace

Modules: Node

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Node

#chain_head, #client_get_deal_info, #client_query_ask, #client_start_deal, #net_peers, #state_power

Constructor Details

#initialize(opts = {}) ⇒ Client

Returns a new instance of Client.



10
11
12
13
# File 'lib/filecoin/client.rb', line 10

def initialize(opts = {})
  @uri = initialize_uri(opts)
  @token = initialize_token(opts)
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



8
9
10
# File 'lib/filecoin/client.rb', line 8

def token
  @token
end

#uriObject (readonly)

Returns the value of attribute uri.



8
9
10
# File 'lib/filecoin/client.rb', line 8

def uri
  @uri
end