original_docstring: 
      Validates the arguments passed to the /webapp endpoints
  
      Returns a dictionary, either containing an 'error' response
      object or the transaction and asset objects specified by the
      incoming request.
      
docstring: Validates the arguments passed to the /webapp endpoints
  Returns a dictionary, either containing an 'error' response
  object or the transaction and asset objects specified by the
  incoming request.
docstring_tokens: Validates the arguments passed to the / webapp endpoints Returns a dictionary either containing an ' error ' response object or the transaction and asset objects specified by the incoming request .
code: def interactive_args_validation(request: Request) -> Dict:
      """
      Validates the arguments passed to the /webapp endpoints
  
      Returns a dictionary, either containing an 'error' response
      object or the transaction and asset objects specified by the
      incoming request.
      """
      transaction_id = request.GET.get("transaction_id")
      asset_code = request.GET.get("asset_code")
      callback = request.GET.get("callback")
      amount_str = request.GET.get("amount")
      asset = Asset.objects.filter(code=asset_code, sep24_enabled=True).first()
      if not transaction_id:
          return dict(
              error=render_error_response(
                  _("no 'transaction_id' provided"), content_type="text/html"
              )
          )
      elif not (asset_code and asset):
          return dict(
              error=render_error_response(
                  _("invalid 'asset_code'"), content_type="text/html"
              )
          )
      try:
          transaction = Transaction.objects.get(id=transaction_id, asset=asset)
      except (Transaction.DoesNotExist, ValidationError):
          return dict(
              error=render_error_response(
                  _("Transaction with ID and asset_code not found"),
                  content_type="text/html",
                  status_code=status.HTTP_404_NOT_FOUND,
              )
          )
  
      # Verify that amount is provided, and that can be parsed into a decimal:
      amount = None
      if amount_str:
          try:
              amount = Decimal(amount_str)
          except (DecimalException, TypeError):
              return dict(error=render_error_response("invalid 'amount'"))
  
          err_resp = verify_valid_asset_operation(
              asset, amount, transaction.kind, content_type="text/html"
          )
          if err_resp:
              return dict(error=err_resp)
  
      return dict(transaction=transaction, asset=asset, callback=callback, amount=amount)
code_tokens: def interactive_args_validation ( request : Request ) -> Dict : transaction_id = request . GET . get ( "transaction_id" ) asset_code = request . GET . get ( "asset_code" ) callback = request . GET . get ( "callback" ) amount_str = request . GET . get ( "amount" ) asset = Asset . objects . filter ( code = asset_code , sep24_enabled = True ) . first ( ) if not transaction_id : return dict ( error = render_error_response ( _ ( "no 'transaction_id' provided" ) , content_type = "text/html" ) ) elif not ( asset_code and asset ) : return dict ( error = render_error_response ( _ ( "invalid 'asset_code'" ) , content_type = "text/html" ) ) try : transaction = Transaction . objects . get ( id = transaction_id , asset = asset ) except ( Transaction . DoesNotExist , ValidationError ) : return dict ( error = render_error_response ( _ ( "Transaction with ID and asset_code not found" ) , content_type = "text/html" , status_code = status . HTTP_404_NOT_FOUND , ) ) amount = None if amount_str : try : amount = Decimal ( amount_str ) except ( DecimalException , TypeError ) : return dict ( error = render_error_response ( "invalid 'amount'" ) ) err_resp = verify_valid_asset_operation ( asset , amount , transaction . kind , content_type = "text/html" ) if err_resp : return dict ( error = err_resp ) return dict ( transaction = transaction , asset = asset , callback = callback , amount = amount )
short_docstring: Validates the arguments passed to the /webapp endpoints
  Returns a dictionary, either containing an 'error' response
  object or the transaction and asset objects specified by the
  incoming request.
short_docstring_tokens: Validates the arguments passed to the / webapp endpoints Returns a dictionary either containing an ' error ' response object or the transaction and asset objects specified by the incoming request .
comment: """
      Validates the arguments passed to the /webapp endpoints
  
      Returns a dictionary, either containing an 'error' response
      object or the transaction and asset objects specified by the
      incoming request.
      """$SEP$# Verify that amount is provided, and that can be parsed into a decimal: