to_satoshiΒΆ
to_satoshi(number: Union[int, float, str, decimal.Decimal]) -> int
Convert a value from the specified unit to satoshi.
Parameters:
number (Union[int, float, str, decimal.Decimal]): The value to convert.
Returns:
int: The converted value in wei.
Example usage:
value_in_satoshi = AioTxBTCClient.to_wei(1.5)