module Harmony::Api::V1::Blockchain::Protocol

Public Instance Methods

gas_price() click to toggle source
# File lib/harmony/api/v1/blockchain/protocol.rb, line 24
def gas_price
  response(post('gasPrice'))&.to_i(16)
end
get_epoch() click to toggle source
# File lib/harmony/api/v1/blockchain/protocol.rb, line 20
def get_epoch
  response(post('getEpoch'))&.to_i(16)
end
get_leader() click to toggle source
# File lib/harmony/api/v1/blockchain/protocol.rb, line 16
def get_leader
  response(post('getLeader'))
end
get_node_metadata() click to toggle source
# File lib/harmony/api/v1/blockchain/protocol.rb, line 28
def get_node_metadata
  response(post('getNodeMetadata'))
end
get_sharding_structure() click to toggle source
# File lib/harmony/api/v1/blockchain/protocol.rb, line 12
def get_sharding_structure
  response(post('getShardingStructure'))
end
protocol_version() click to toggle source
# File lib/harmony/api/v1/blockchain/protocol.rb, line 8
def protocol_version
  response(post('protocolVersion'))&.to_i(16)
end
syncing() click to toggle source
# File lib/harmony/api/v1/blockchain/protocol.rb, line 32
def syncing
  response(post('syncing'))
end