class ArkEcosystem::Client::API::Blocks
Public Instance Methods
all(parameters = {})
click to toggle source
Get all blocks.
@param parameters [String]
@return [Faraday::Response]
# File lib/arkecosystem/client/api/blocks.rb, line 13 def all(parameters = {}) @client.get('blocks', parameters) end
search(parameters)
click to toggle source
Search all blocks.
@param parameters [Hash]
@return [Faraday::Response]
# File lib/arkecosystem/client/api/blocks.rb, line 41 def search(parameters) @client.post('blocks/search', parameters) end
show(id)
click to toggle source
Get the block by the given id.
@param id [String]
@return [Faraday::Response]
# File lib/arkecosystem/client/api/blocks.rb, line 22 def show(id) @client.get("blocks/#{id}") end
transactions(id, parameters = {})
click to toggle source
Get the transaction for the given block.
@param id [String] @param parameters [Hash]
@return [Faraday::Response]
# File lib/arkecosystem/client/api/blocks.rb, line 32 def transactions(id, parameters = {}) @client.get("blocks/#{id}/transactions", parameters) end