<p>According to <a href="https://developers.cardano.org/docs/governance/cardano-improvement-proposals/CIP-0030" rel="nofollow noreferrer">CIP-30</a></p>
<p>&quot;api.getCollateral()&quot;</p>
<p>so you can get it in your react application by using:</p>
<pre><code>const api = await window.cardano[WALLET-NAME].enable()
const changeAddress = await api.getCollateral()
</code></pre>

CC BY-SA 4.0
2023-01-08T17:59:14.160Z
2023-01-08T18:06:50.767Z
2023-01-08T18:06:50.767Z
Leo
<p>The easiest way to get a collateral UTXO is to use a library like Helios which is both an on-chain smart contract Plutus compiler and an off-chain transaction builder.   Helios has some convenience wrappers/helpers for working with CIP30 spec so you don’t have to do the CBOR conversions for example.</p>
<p>Here is the code.</p>
<pre><code>
    // Determine the UTXO used for collateral
    const colatUtxo = await walletHelper.pickCollateral();
    
    tx.addCollateral(colatUtxo);
</code></pre>
<p>Or if you need the change wallet address, you can use.</p>
<pre><code>// Get change address
const changeAddr = await walletHelper.changeAddress;
</code></pre>
<p>Check out the full source code here in my Helios examples repo:  <a href="https://github.com/lley154/helios-examples/blob/main/nft/pages/index.tsx" rel="nofollow noreferrer">https://github.com/lley154/helios-examples/blob/main/nft/pages/index.tsx</a></p>

CC BY-SA 4.0
2023-02-09T02:57:34.917Z
2023-02-09T02:57:34.917Z
lley154
<p>I am not familiar with the tool but the collateral is usually provided by whoever is creating the transaction to be submitted. And as long as a smart contract isn't being run and fails during validation your collateral is save.</p>
<p>So if you use a light wallet like nami send yourself 5-10 ADA and use that as collateral.</p>

CC BY-SA 4.0
2022-04-13T18:39:22.497Z
Is there any way to get that address?
Reaz Ahammed
CC BY-SA 4.0
2022-04-14T05:58:25.397Z
It's your own wallet address. You can just copy it when you have Nami installed and setup.
Will
CC BY-SA 4.0
2022-04-13T13:54:50.513Z
2022-04-13T13:54:50.513Z
Will
<p>how I can get users collateral address from wallet?</p>
<p>I am using nft-maker-pro for creating a small NFT market place. I need collateral address for that like <a href="https://d-wallet-playground.yellowhouse.gmbh/wallet" rel="nofollow noreferrer">https://d-wallet-playground.yellowhouse.gmbh/wallet</a> this.</p>

<wallet><collateral>
Collateral Address for react app
# Collateral Address for react app

(Asked by: username_0 on 2022-04-13)

how I can get users collateral address from wallet?

I am using nft-maker-pro for creating a small NFT market place. I need collateral address for that like <https://d-wallet-playground.yellowhouse.gmbh/wallet> this.

**Tags:** wallet, collateral

---

## 3 answers

### Answer by username_1 on 2023-01-08. Score: 0

According to CIP-30
"api.getCollateral()"
so you can get it in your react application by using:
const api = await window.cardano[WALLET-NAME].enable()
const changeAddress = await api.getCollateral()


---

### Answer by username_2 on 2023-02-09. Score: 0

The easiest way to get a collateral UTXO is to use a library like Helios which is both an on-chain smart contract Plutus compiler and an off-chain transaction builder.   Helios has some convenience wrappers/helpers for working with CIP30 spec so you don’t have to do the CBOR conversions for example.
Here is the code.

    // Determine the UTXO used for collateral
    const colatUtxo = await walletHelper.pickCollateral();
    
    tx.addCollateral(colatUtxo);

Or if you need the change wallet address, you can use.
// Get change address
const changeAddr = await walletHelper.changeAddress;

Check out the full source code here in my Helios examples repo:  https://github.com/lley154/helios-examples/blob/main/nft/pages/index.tsx


---

### Answer by username_3 on 2022-04-13. Score: 0

I am not familiar with the tool but the collateral is usually provided by whoever is creating the transaction to be submitted. And as long as a smart contract isn't being run and fails during validation your collateral is save.

So if you use a light wallet like nami send yourself 5-10 ADA and use that as collateral.

> **Comments:**
> **username_0**: Is there any way to get that address?  
> **username_3**: It's your own wallet address. You can just copy it when you have Nami installed and setup.  

---

