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 transaction

  • code_from – (str) (Optional) The 3 letter code to send a transaction from.

Return type

discoin.Transaction

Raises