ExternalAPI

ExternalAPI

class ExternalAPI(**kwargs)

Implements the federation api endpoints.

estimate_conversion_fee(**kwargs) → pystratis.core.types.money.Money

Returns an estimate of conversion fees.

Parameters:**kwargs – Extra keyword arguments.
Returns:The conversion fee estimate in Strax
Return type:Money
Raises:APIError – Error thrown by node API. See message for details.
estimate_conversion_gas(**kwargs) → int

Returns an estimate of conversion gas fees.

Parameters:**kwargs – Extra keyword arguments.
Returns:The conversion gas fee estimate.
Return type:int
Raises:APIError – Error thrown by node API. See message for details.
ethereum_price(**kwargs) → pystratis.core.types.money.Money

Returns the current ETH price in USD.

Parameters:**kwargs – Extra keyword arguments.
Returns:The current ETH/USD price.
Return type:Money
Raises:APIError – Error thrown by node API. See message for details.
gas_price(**kwargs) → int

Returns the current ETH gas price.

Parameters:**kwargs – Extra keyword arguments.
Returns:The ETH gas price.
Return type:int
Raises:APIError – Error thrown by node API. See message for details.
stratis_price(**kwargs) → pystratis.core.types.money.Money

Returns the current STRAX price in USD.

Parameters:**kwargs – Extra keyword arguments.
Returns:The current STRAX/USD price.
Return type:Money
Raises:APIError – Error thrown by node API. See message for details.