# Input type arguments in PTB CLI

**URL:** <https://forums.sui.io/t/input-type-arguments-in-ptb-cli/49154>\
**Category:** General\
**Created:** [December 8, 2025, 4:27pm UTC](https://forums.sui.io/t/input-type-arguments-in-ptb-cli/49154 "2025-12-08T16:27:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![plyoteo](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@plyoteo](https://forums.sui.io/u/plyoteo)\
**Post date:** [December 8, 2025, 4:27pm UTC](https://forums.sui.io/t/input-type-arguments-in-ptb-cli/49154/1 "2025-12-08T16:27:52Z")

</div>

I have a function that requires 2 type arguments. In the PTB CLI I have tried all the below to no avail:

```shell
--move-call $PACKAGE::escrow::swap "<$TYPEARG> <$TYPEARG>" @$ESCROW @$KEY @$LOCKED \

--move-call $PACKAGE::escrow::swap "<$TYPEARG>" "<$TYPEARG>" @$ESCROW @$KEY @$LOCKED \

--move-call $PACKAGE::escrow::swap "<$TYPEARG, $TYPEARG>" @$ESCROW @$KEY @$LOCKED \

--move-call $PACKAGE::escrow::swap "<$TYPEARG>", "<$TYPEARG>" @$ESCROW @$KEY @$LOCKED \

```

Any help please?

---

<div class="post-metadata">

**Author:** ![jangid](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/jangid/32/30703_2.png) [@jangid](https://forums.sui.io/u/jangid)\
**Post date:** [December 10, 2025, 9:11am UTC](https://forums.sui.io/t/input-type-arguments-in-ptb-cli/49154/2 "2025-12-10T09:11:33Z")

</div>

theodoros nikoleris via Sui Developer Forum  
[notifications@sui.discoursemail.com](mailto:notifications@sui.discoursemail.com) writes:

> I have a function that requires 2 type arguments. In the PTB CLI I have tried all the below to no avail:
> 
> ```shell
> --move-call $PACKAGE::escrow::swap "<$TYPEARG> <$TYPEARG>" @$ESCROW @$KEY @$LOCKED \
> 
> --move-call $PACKAGE::escrow::swap "<$TYPEARG>" "<$TYPEARG>" @$ESCROW @$KEY @$LOCKED \
> 
> --move-call $PACKAGE::escrow::swap "<$TYPEARG, $TYPEARG>" @$ESCROW @$KEY @$LOCKED \
> 
> --move-call $PACKAGE::escrow::swap "<$TYPEARG>", "<$TYPEARG>" @$ESCROW @$KEY @$LOCKED \
> 
> ```

I think it should be

```shell

sui client call --type-args <$TYPEARG> <$TYPEARG> --package $PACKAGE --module escrow --function swap @$ESCROW @$KEY @$LOCKED

```

Just check with

```shell
sui client call --help

```

---

<div class="post-metadata">

**Author:** ![plyoteo](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@plyoteo](https://forums.sui.io/u/plyoteo)\
**Post date:** [December 10, 2025, 10:51am UTC](https://forums.sui.io/t/input-type-arguments-in-ptb-cli/49154/3 "2025-12-10T10:51:10Z")

</div>

Thank you for your response. This is correct and I have implemented it succesfully. However it applies to the Sui Client CLI and the entire command would be

```bash
sui client call --package <...> --module <...> --function <...> --type-args <...> ... <...> --args <...> ... <...>

```

However, my problem appears when trying to use the Sui Client **PTB** CLI. For clarity’s shake, my bash script looks like below and it fails at the input of the type arguments:

```bash
#!/usr/bin/bash
sui client ptb \
--move-call sui::tx_context::sender \
--assign sender \
--move-call $PACKAGE::escrow::swap "<$TITEM>" "<$TITEM>" @$ESCROW @$KEY @$LOCKED \
--assign escrowed \
--transfer-objects [escrowed] sender

```

Any ideas?
