Tradehub.Fee (Tradehub v0.1.17) View Source
The utility module to request information about transaction fees
Link to this section Summary
Functions
Get the latest fees of the given denom.
Get a list of transaction fees that been configured for a specific message
Link to this section Functions
Specs
current_fee(denom :: String.t()) :: {:ok, Tradehub.withdrawal_fee()} | String.t() | {:error, HTTPoison.Error.t()}
Get the latest fees of the given denom.
Returns
- an object type
Tradehub.withdrawal_fee()
as expected. - a string when the denom is invalid or something went wrong in the API side.
- an error when someting goes wrong with the connection.
Examples
iex> Tradehub.Fee.current_fee("swth")
Specs
txns_fees() :: {:ok, Tradehub.txns_fees()} | {:error, HTTPoison.Error.t()}
Get a list of transaction fees that been configured for a specific message
Returns
- an object type
Tradehub.txns_fees()
as expected. - an error when someting goes wrong with the connection.
Examples
iex> Tradehub.Fee.txns_fees