Class: ArkEcosystem::Client::API::One::Blocks
- Defined in:
- lib/arkecosystem/client/api/one/blocks.rb
Overview
Methods for the Blocks API
Instance Method Summary collapse
-
#all(parameters = {}) ⇒ Faraday::Response
Get all blocks.
-
#epoch ⇒ Faraday::Response
Get the blockchain epoch.
-
#fee ⇒ Faraday::Response
Get the blockchain fee.
-
#fees ⇒ Faraday::Response
Get the blockchain fees.
-
#height ⇒ Faraday::Response
Get the blockchain height.
-
#milestone ⇒ Faraday::Response
Get the blockchain milestone.
-
#nethash ⇒ Faraday::Response
Get the blockchain nethash.
-
#reward ⇒ Faraday::Response
Get the blockchain reward.
-
#show(id) ⇒ Faraday::Response
Get the delegate by the given id.
-
#status ⇒ Faraday::Response
Get the blockchain status.
-
#supply ⇒ Faraday::Response
Get the blockchain supply.
Methods inherited from Base
Constructor Details
This class inherits a constructor from ArkEcosystem::Client::API::Base
Instance Method Details
#all(parameters = {}) ⇒ Faraday::Response
Get all blocks.
17 18 19 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 17 def all(parameters = {}) @client.get('blocks', parameters) end |
#epoch ⇒ Faraday::Response
Get the blockchain epoch.
33 34 35 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 33 def epoch @client.get('blocks/getEpoch') end |
#fee ⇒ Faraday::Response
Get the blockchain fee.
54 55 56 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 54 def fee @client.get('blocks/getFee') end |
#fees ⇒ Faraday::Response
Get the blockchain fees.
61 62 63 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 61 def fees @client.get('blocks/getFees') end |
#height ⇒ Faraday::Response
Get the blockchain height.
40 41 42 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 40 def height @client.get('blocks/getHeight') end |
#milestone ⇒ Faraday::Response
Get the blockchain milestone.
68 69 70 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 68 def milestone @client.get('blocks/getMilestone') end |
#nethash ⇒ Faraday::Response
Get the blockchain nethash.
47 48 49 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 47 def nethash @client.get('blocks/getNethash') end |
#reward ⇒ Faraday::Response
Get the blockchain reward.
75 76 77 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 75 def reward @client.get('blocks/getReward') end |
#show(id) ⇒ Faraday::Response
Get the delegate by the given id.
26 27 28 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 26 def show(id) @client.get('blocks/get', id: id) end |
#status ⇒ Faraday::Response
Get the blockchain status.
89 90 91 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 89 def status @client.get('blocks/getStatus') end |
#supply ⇒ Faraday::Response
Get the blockchain supply.
82 83 84 |
# File 'lib/arkecosystem/client/api/one/blocks.rb', line 82 def supply @client.get('blocks/getSupply') end |