<p>Sadly some of the developers.cardano.org documentation is outdated.</p>
<p>You need to use <code>--tx-in-collateral</code> to specify your collateral input, but might want to also use the <code>--tx-out-return-collateral</code> flag to specify your output.</p>

CC BY-SA 4.0
2022-12-01T12:59:00.023Z
Oh no I think my question is wrong - is there a way to even create the collateral input?
Hud
CC BY-SA 4.0
2022-12-01T15:37:47.803Z
There is nothing specific about a collateral input, you can use any input.

In the past, this has been problematic as we did not have output return collateral, so the whole utxo was spend, therefore wallets introduced a term of collateral input setup to limit potential lost.
Marek Mahut - StakeNuts
CC BY-SA 4.0
2022-12-01T09:17:08.357Z
2022-12-01T09:17:08.357Z
Marek Mahut - StakeNuts
<p>I ended up using web wallets e.g. Eternl to create the collateral utxo. And used <code>cardano-address</code> and <code>cardano-cli</code> to create payment and stake <code>.skey</code> files.</p>

CC BY-SA 4.0
2022-12-02T14:15:04.263Z
2022-12-02T14:15:04.263Z
Hud
<p>Followed the guide <a href="https://developers.cardano.org/docs/stake-pool-course/handbook/create-stake-pool-keys/#payment-key-pair" rel="nofollow noreferrer">here</a> to build preprod testnet wallets, was wondering however I can create the collateral utxo with <code>cardano-cli</code> ?</p>

<cardano-cli><collateral><preprod>
pay collateral with cardano-cli
# pay collateral with cardano-cli

(Asked by: username_0 on 2022-11-30)

Followed the guide [here](https://developers.cardano.org/docs/stake-pool-course/handbook/create-stake-pool-keys/#payment-key-pair) to build preprod testnet wallets, was wondering however I can create the collateral utxo with `cardano-cli` ?

**Tags:** cardano-cli, collateral, preprod

---

## 2 answers

### Answer by username_1 on 2022-12-01. Score: 1

Sadly some of the developers.cardano.org documentation is outdated.

You need to use `--tx-in-collateral` to specify your collateral input, but might want to also use the `--tx-out-return-collateral` flag to specify your output.

> **Comments:**
> **username_0**: Oh no I think my question is wrong - is there a way to even create the collateral input?  
> **username_1**: There is nothing specific about a collateral input, you can use any input.  In the past, this has been problematic as we did not have output return collateral, so the whole utxo was spend, therefore wallets introduced a term of collateral input setup to limit potential lost.  

---

### Answer by username_0 on 2022-12-02. Score: 0

I ended up using web wallets e.g. Eternl to create the collateral utxo. And used `cardano-address` and `cardano-cli` to create payment and stake `.skey` files.


---

