Tradehub.Protocol.blocks
You're seeing just the function
blocks
, go back to Tradehub.Protocol module for more information.
Link to this function
blocks(before_id \\ nil, after_id \\ nil, order_by \\ nil, proposer \\ nil, limit \\ nil)
View SourceSpecs
blocks(nil, nil, nil, nil, nil) :: {:ok, [Tradehub.block()]} | {:error, HTTPoison.Error.t()}
blocks(integer(), integer(), String.t(), String.t(), integer()) :: {:ok, [Tradehub.block()]} | {:error, HTTPoison.Error.t()}
Requests latest blocks or specific blocks that match the requested parameters.
Parameters
- before_id: before block height
- after_id: after block height
- order_by: not specified yet
- proposer: tradehub validator consensus starting with
swthvalcons1
on mainnet andtswthvalcons1
on testnet - limit: limit the responded result, values greater than 200 have no effect and a maximum of 200 results are returned.
Examples
iex> Tradehub.Protocol.blocks