# How to pass two input files param in daml script command

**URL:** <https://forum.canton.network/t/how-to-pass-two-input-files-param-in-daml-script-command/1659>\
**Category:** App Development\
**Created:** [November 18, 2020, 7:59am UTC](https://forum.canton.network/t/how-to-pass-two-input-files-param-in-daml-script-command/1659 "2020-11-18T07:59:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nishant\_Bansal](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nishant_bansal/32/1046_2.png) [@Nishant\_Bansal](https://forum.canton.network/u/Nishant_Bansal)\
**Post date:** [November 18, 2020, 7:59am UTC](https://forum.canton.network/t/how-to-pass-two-input-files-param-in-daml-script-command/1659/1 "2020-11-18T07:59:01Z")

</div>

Error: Unknown argument ‘parties.json’

`daml script --dar .daml/dist/quickstart-0.0.1.dar --script-name TestScript_Exercise:trade_exercise_iouTransfer_eurBank --ledger-host localhost --ledger-port 6865 --input-file result.json parties.json --output-file result1.json`

I am trying this for the below template.

```
-- Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
-- SPDX-License-Identifier: Apache-2.0

module TestScript_Exercise where

import Daml.Script
import Iou
import IouTrade()

data Parties = Parties with
  alice : Party
  bob : Party
  usBank : Party
  eurBank : Party

trade_exercise_iouTransfer_eurBank : (ContractId Iou,Parties) -> Script (ContractId IouTransfer)
trade_exercise_iouTransfer_eurBank (cid_iou,parties) = do
  
submit parties.eurBank do
  exerciseCmd cid_iou Iou_Transfer with newOwner = parties.alice
```

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [November 18, 2020, 8:16am UTC](https://forum.canton.network/t/how-to-pass-two-input-files-param-in-daml-script-command/1659/2 "2020-11-18T08:16:53Z")

</div>

You can only pass one input file. However, the input can be an arbitrary (serializable) DAML-LF value. `(ContractId Iou, Parties)` is such a value so you only need to know how to encode that as JSON. The `:json` command in `daml repl` can be handy for this or the documentation for how [DAML types are translated to DAML-LF](https://docs.daml.com/app-dev/daml-lf-translation.html#tuple-types) and the [JSON encoding for DAML-LF values](https://docs.daml.com/json-api/lf-value-specification.html).

Putting this together, a valid JSON input here would be the following:

```json
{
  "_1": "yourcontractidhere",
  "_2": 
    {
      "alice": "alicepartyid",
      "bob": "bobpartyid",
      "usBank": "usBankpartyid",
      "eurBank": "eurBankpartytid
    },
}

```

Replace the dummy contract id and the party ids by the ones you actually want to use.
