class ArkEcosystem::Client::API::Blocks

Methods for the Blocks API

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
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