user7627: 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?

user28: Quickly glancing at Mesh code it looks like this function is not implemented yet and it might not be possible to create Plutus transactions just yet.

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

user2511: 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 

7627: <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>
 28: <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.stack.imgur.com/I07Yp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/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>
 2511: <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>
