Module: Coinbase + + + +
+-
+
- Defined in: +
- lib/coinbase.rb,
+ lib/coinbase/wallet.rb,
lib/coinbase/address.rb,
lib/coinbase/network.rb,
lib/coinbase/transfer.rb,
lib/coinbase/constants.rb +
+
Overview
The Coinbase SDK.
+ + +Defined Under Namespace
++ + + + + Classes: Address, Network, Transfer, Wallet + + +
+ + ++ Constant Summary + collapse +
+ +-
+
+
- BASE_SEPOLIA =
+ ++ ++ ++
The Base Sepolia Network.
+ + +
+ Network.new( + network_id: :base_sepolia, + display_name: 'Base Sepolia', + protocol_family: :evm, + is_testnet: true, + native_asset_id: :eth, + chain_id: 84_532 +)
+
+ - WEI_PER_ETHER =
+ ++ ++ ++
The amount of Wei per Ether.
+ + +
+ 1_000_000_000_000_000_000
+
+ - WEI_PER_GWEI =
+ ++ ++ ++
The amount of Wei per Gwei.
+ + +
+ 1_000_000_000
+
+
+ Class Method Summary + collapse +
+ +-
+
+
- + + + .api_key_name ⇒ Object + + + + + + + + + + + + + + + + + + +
- + + + .api_key_name=(api_key_name) ⇒ Object + + + + + + + + + + + + + + + + + + +
- + + + .api_key_secret ⇒ Object + + + + + + + + + + + + + + + + + + +
- + + + .api_key_secret=(api_key_secret) ⇒ Object + + + + + + + + + + + + + + + + + + +
-
+
+
+ .init ⇒ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ++ +
Initializes the Coinbase SDK.
+
+
+
+
Class Method Details
+ + ++ + .api_key_name ⇒ Object + + + + + +
+ + + +17 +18 +19+ |
+
+ # File 'lib/coinbase.rb', line 17 + +def self.api_key_name + @api_key_name +end+ |
+
+ + .api_key_name=(api_key_name) ⇒ Object + + + + + +
+ + + +21 +22 +23+ |
+
+ # File 'lib/coinbase.rb', line 21 + +def self.api_key_name=(api_key_name) + @api_key_name = api_key_name +end+ |
+
+ + .api_key_secret ⇒ Object + + + + + +
+ + + +25 +26 +27+ |
+
+ # File 'lib/coinbase.rb', line 25 + +def self.api_key_secret + @api_key_secret +end+ |
+
+ + .api_key_secret=(api_key_secret) ⇒ Object + + + + + +
+ + + +29 +30 +31+ |
+
+ # File 'lib/coinbase.rb', line 29 + +def self.api_key_secret=(api_key_secret) + @api_key_secret = api_key_secret +end+ |
+
+ + .init ⇒ Object + + + + + +
Initializes the Coinbase SDK.
+ + +
+ + + +13 +14 +15+ |
+
+ # File 'lib/coinbase.rb', line 13 + +def self.init + Dotenv.load +end+ |
+