Class: Coinbase::Configuration
- Inherits:
-
Object
- Object
- Coinbase::Configuration
- Defined in:
- lib/coinbase.rb
Overview
Configuration object for the Coinbase SDK
Instance Attribute Summary collapse
-
#api_key_name ⇒ Object
Returns the value of attribute api_key_name.
-
#api_key_private_key ⇒ Object
Returns the value of attribute api_key_private_key.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#base_sepolia_client ⇒ Object
readonly
Returns the value of attribute base_sepolia_client.
-
#base_sepolia_rpc_url ⇒ Object
Returns the value of attribute base_sepolia_rpc_url.
Instance Method Summary collapse
- #api_client ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_name ⇒ Object
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_key ⇒ Object
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_url ⇒ Object
Returns the value of attribute api_url.
33 34 35 |
# File 'lib/coinbase.rb', line 33 def api_url @api_url end |
#base_sepolia_client ⇒ Object (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_url ⇒ Object
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 |