Module: CronosChain
- Defined in:
- lib/cronos_chain.rb,
lib/cronos_chain/blocks.rb,
lib/cronos_chain/request.rb,
lib/cronos_chain/version.rb,
lib/cronos_chain/accounts.rb,
lib/cronos_chain/transactions.rb
Defined Under Namespace
Classes: Accounts, Blocks, Error, Request, Transactions
Constant Summary collapse
- VERSION =
"0.1.4"
Class Attribute Summary collapse
-
.net ⇒ Object
writeonly
attr_reader :net.
Class Method Summary collapse
Class Attribute Details
.net=(value) ⇒ Object (writeonly)
attr_reader :net
15 16 17 |
# File 'lib/cronos_chain.rb', line 15 def net=(value) @net = value end |
Class Method Details
.domain ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/cronos_chain.rb', line 17 def domain case @net when 'main' 'https://cronos.org/explorer/api' when 'testnet3' 'https://cronos.org/explorer/testnet3/api' else raise 'error net, only testnet3 and main' end end |