Module: CronosChainScanner
- Defined in:
- lib/cronos_chain_scanner.rb,
lib/cronos_chain_scanner/blocks.rb,
lib/cronos_chain_scanner/tokens.rb,
lib/cronos_chain_scanner/request.rb,
lib/cronos_chain_scanner/version.rb,
lib/cronos_chain_scanner/accounts.rb,
lib/cronos_chain_scanner/contracts.rb,
lib/cronos_chain_scanner/transactions.rb
Defined Under Namespace
Classes: Accounts, Blocks, Contracts, Error, Request, Tokens, Transactions
Constant Summary collapse
- VERSION =
"0.1.8"
Class Attribute Summary collapse
-
.net ⇒ Object
writeonly
attr_reader :net.
Class Method Summary collapse
Class Attribute Details
.net=(value) ⇒ Object (writeonly)
attr_reader :net
17 18 19 |
# File 'lib/cronos_chain_scanner.rb', line 17 def net=(value) @net = value end |
Class Method Details
.domain ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/cronos_chain_scanner.rb', line 19 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 |