Module: Coinbase
- Defined in:
- lib/coinbase.rb,
lib/coinbase/asset.rb,
lib/coinbase/wallet.rb,
lib/coinbase/address.rb,
lib/coinbase/network.rb,
lib/coinbase/transfer.rb,
lib/coinbase/constants.rb,
lib/coinbase/balance_map.rb
Overview
The Coinbase SDK.
Defined Under Namespace
Classes: Address, Asset, BalanceMap, Network, Transfer, Wallet
Constant Summary collapse
- ETH =
The Assets supported on Base Sepolia by the Coinbase SDK.
Asset.new(network_id: :base_sepolia, asset_id: :eth, display_name: 'Ether')
- USDC =
Asset.new(network_id: :base_sepolia, asset_id: :usdc, display_name: 'USD Coin', address_id: '0x036CbD53842c5426634e7929541eC2318f3dCF7e')
- BASE_SEPOLIA =
The Base Sepolia Network.
Network.new( network_id: :base_sepolia, display_name: 'Base Sepolia', protocol_family: :evm, is_testnet: true, assets: [ETH, USDC], 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
- GWEI_PER_ETHER =
The amount of Gwei per Ether.
1_000_000_000
- SUPPORTED_ASSET_IDS =
A map of supported Asset IDs.
{ eth: true, # Ether, the native asset of most EVM networks. gwei: true, # A medium denomination of Ether, typically used in gas prices. wei: true # The smallest denomination of Ether. }.freeze
Class Method Summary collapse
-
.init ⇒ Object
Initializes the Coinbase SDK.
Class Method Details
.init ⇒ Object
Initializes the Coinbase SDK.
15 16 17 |
# File 'lib/coinbase.rb', line 15 def self.init Dotenv.load end |