Tradehub.Protocol.transactions
You're seeing just the function
transactions
, go back to Tradehub.Protocol module for more information.
Link to this function
transactions(address \\ nil, msg_type \\ nil, height \\ nil, start_block \\ nil, end_block \\ nil, before_id \\ nil, after_id \\ nil, order_by \\ nil, limit \\ nil)
View SourceSpecs
transactions(nil, nil, nil, nil, nil, nil, nil, nil, nil) :: {:ok, [Tradehub.transaction()]} | {:error, HTTPoison.Error.t()}
transactions( String.t(), String.t(), String.t(), String.t(), String.t(), String.t(), String.t(), String.t(), String.t() ) :: {:ok, [Tradehub.transaction()]} | {:error, HTTPoison.Error.t()}
Requests latest transactions or filtered transactions based on the filter params.
Parameters
- address: tradehub switcheo address starts with
swth1
on mainnet andtswth1
on testnet. - msg_type: filtered by
msg_type
, allowed values can be fetch withTradehub.Protocol.transaction_types
- height: filter transactions at a specific height
- start_block: filter transactions after block
- end_block: filter transactions before block
- before_id: filter transactions before id
- after_id: filter transactions after id
- order_by: TODO
- limit: limit by 200, values above 200 have no effects.
Examples
iex> Tradehub.Protocol.transactions