<p>Yes, <code>getUsedCollateral</code> isn't implemented yet on <code>AppWallet</code>.
It will be done really soon after we sort out other priorities.
for the time being, you can add Collateral from the Browser Wallet if possible </p>

CC BY-SA 4.0
2022-12-03T12:48:43.847Z
I assume you're in the team. Do you have an approximation of ETA? I really like working with mesh. AppWallet is much easier for my case.
Adam
CC BY-SA 4.0
2022-12-04T11:08:14.130Z
Yes, you can expect it to be done within a month from now, maybe less. We will start working on it as soon as we finish the ongoing work we have right now.
abdelkrimdev
CC BY-SA 4.0
2022-12-03T08:39:33.567Z
2022-12-03T08:39:33.567Z
abdelkrimdev
<p>Quickly <a href="https://github.com/MartifyLabs/mesh/blob/main/packages/module/src/wallet/app.service.ts#L87-L91" rel="nofollow noreferrer">glancing at Mesh code</a> it looks like this function is not implemented yet and it might not be possible to create Plutus transactions just yet.</p>
<p><a href="https://i.sstatic.net/I07Yp.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/I07Yp.png" alt="enter image description here" /></a></p>
<p>However the library is still under heavy development and I'm sure they will add this functionality soon.</p>

CC BY-SA 4.0
2022-12-02T01:08:25.010Z
Yeah, it is new. Any alternative to Mesh would you recommend?
Adam
CC BY-SA 4.0
2022-12-01T17:43:56.747Z
2022-12-01T17:43:56.747Z
Marek Mahut - StakeNuts
<p>I'm using mesh and follow <a href="https://mesh.martify.io/apis/transaction/smart-contract" rel="nofollow noreferrer">this</a> example of always-succeed smartcontract.</p>
<p>I successfully send Lovelace to the script address. But when building transaction for redeeming Lovelace from the script address, there comes this error:</p>
<pre><code>Error: [Transaction] An error occurred during build: Error: getUsedCollateral not implemented..
at Object.build (/root/meshapp/node_modules/@martifylabs/mesh/dist/mesh.cjs:1:51612)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
</code></pre>
<p>Everything is like the example except:</p>
<ol>
<li>I use App Wallet (Example: Browser Wallet)</li>
<li>I send Lovelace (Example: 64af286...)</li>
<li>I use preview testnet (Example: preprod, I guess)</li>
</ol>
<p>The error occur when building the transaction with</p>
<pre><code>const tx = new Transaction({ initiator: wallet })
.redeemValue({
    value: assetUtxo,
    script: {
        version: 'V1',
        code: '4e4d01000033222220051200120011',
    },
    datum: '0000007',
})
.sendValue(address, assetUtxo)
.setRequiredSigners([address]);

const unsignedTx = await tx.build();
</code></pre>
<p>&quot;address&quot; is my wallet address and &quot;assetUtxo&quot; is the utxo where the fund is locked. Both are non nil.</p>
<p>How do I fix this?</p>

<smart-contract><mesh>
Mesh Error: getUsedCollateral not implemented
# Mesh Error: getUsedCollateral not implemented

(Asked by: username_0 on 2022-12-01)

I'm using mesh and follow this example of always-succeed smartcontract.
I successfully send Lovelace to the script address. But when building transaction for redeeming Lovelace from the script address, there comes this error:
Error: [Transaction] An error occurred during build: Error: getUsedCollateral not implemented..
at Object.build (/root/meshapp/node_modules/@martifylabs/mesh/dist/mesh.cjs:1:51612)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Everything is like the example except:

I use App Wallet (Example: Browser Wallet)
I send Lovelace (Example: 64af286...)
I use preview testnet (Example: preprod, I guess)

The error occur when building the transaction with
const tx = new Transaction({ initiator: wallet })
.redeemValue({
    value: assetUtxo,
    script: {
        version: 'V1',
        code: '4e4d01000033222220051200120011',
    },
    datum: '0000007',
})
.sendValue(address, assetUtxo)
.setRequiredSigners([address]);

const unsignedTx = await tx.build();

"address" is my wallet address and "assetUtxo" is the utxo where the fund is locked. Both are non nil.
How do I fix this?

**Tags:** smart-contract, mesh

---

## 2 answers

### Answer by username_1 on 2022-12-03. Score: 1 | Accepted answer

Yes, `getUsedCollateral` isn't implemented yet on `AppWallet`.
It will be done really soon after we sort out other priorities.
for the time being, you can add Collateral from the Browser Wallet if possible

> **Comments:**
> **username_0**: I assume you're in the team. Do you have an approximation of ETA? I really like working with mesh. AppWallet is much easier for my case.  
> **username_1**: Yes, you can expect it to be done within a month from now, maybe less. We will start working on it as soon as we finish the ongoing work we have right now.  

---

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

Quickly [glancing at Mesh code](https://github.com/MartifyLabs/mesh/blob/main/packages/module/src/wallet/app.service.ts#L87-L91) it looks like this function is not implemented yet and it might not be possible to create Plutus transactions just yet.

[![enter image description here](https://i.sstatic.net/I07Yp.png)](https://i.sstatic.net/I07Yp.png)

However the library is still under heavy development and I'm sure they will add this functionality soon.

> **Comments:**
> **username_0**: Yeah, it is new. Any alternative to Mesh would you recommend?  

---

