Class: Coinbase::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/coinbase.rb

Overview

Configuration object for the Coinbase SDK

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



35
36
37
38
39
# File 'lib/coinbase.rb', line 35

def initialize
  @base_sepolia_rpc_url = 'https://sepolia.base.org'
  @base_sepolia_client = Jimson::Client.new(@base_sepolia_rpc_url)
  @api_url = 'https://api.cdp.coinbase.com'
end

Instance Attribute Details

#api_key_nameObject

Returns the value of attribute api_key_name.



33
34
35
# File 'lib/coinbase.rb', line 33

def api_key_name
  @api_key_name
end

#api_key_private_keyObject

Returns the value of attribute api_key_private_key.



33
34
35
# File 'lib/coinbase.rb', line 33

def api_key_private_key
  @api_key_private_key
end

#api_urlObject

Returns the value of attribute api_url.



33
34
35
# File 'lib/coinbase.rb', line 33

def api_url
  @api_url
end

#base_sepolia_clientObject (readonly)

Returns the value of attribute base_sepolia_client.



32
33
34
# File 'lib/coinbase.rb', line 32

def base_sepolia_client
  @base_sepolia_client
end

#base_sepolia_rpc_urlObject

Returns the value of attribute base_sepolia_rpc_url.



32
33
34
# File 'lib/coinbase.rb', line 32

def base_sepolia_rpc_url
  @base_sepolia_rpc_url
end

Instance Method Details

#api_clientObject



46
47
48
# File 'lib/coinbase.rb', line 46

def api_client
  @api_client ||= Coinbase::Client::ApiClient.new(Middleware.config)
end