discoin.Client.create_transaction¶
-
async
Client.
create_transaction
(code_to: str, amount: float, user_id: int, code_from: Optional[str] = None)¶ Create a transaction
- Parameters
code_to – (
str
) The 3 letter code to send a transaction to.amount – (
float
) The amount of currency in original format.user_id – (
int
) The user_id from the user who requested the transactioncode_from – (
str
) (Optional) The 3 letter code to send a transaction from.
- Return type
- Raises
discoin.InternalServerError – If the discoin API returns a 5**
discoin.BadRequest – If the discoin API returns a 4**
discoin.WebTimeoutError – If the API times out