Questions tagged [mesh]
A Javascript/TypeScript SDK for web3 development on Cardano
20
questions
0
votes
0
answers
34
views
Mint an NFT using policy script on cardano
I'm trying to run validations before minting an asset/nft on cardano. I have written the policy script using plu-ts and transactions using mesh sdk.
Script
export const mintNFT = pfn(
[datum.type, ...
0
votes
0
answers
30
views
How can Datum be decoded from utxos that were generated using MeshJs Marketplace Smart Contracts?
I have datum that was formed using the MeshJS Marketplace Smart Contract.
Can someone help me with the process to decode the datum. I have tried various methods mentioned in their discord with no ...
0
votes
0
answers
70
views
MeshJs integration With Next 13 Error: Element type is invalid. Received a promise that resolves to: [object Promise]
I am trying to create a connect button to the Nami Wallet where the user can register so I can take the public address, network id, and so on as I need it for the backend.
To implement the Nami wallet ...
0
votes
0
answers
12
views
React.js version conflict between modules using Mesh.js and use-react-screenshot
I’m using a Mesh.js starter template that’s using React.js 18 version. I also want to utilize a component called use-react-screenshot that is react.js version 17. Unfortunately the component will ...
0
votes
0
answers
39
views
How to using Mesh for making transaction from specific address of seed and send ADA to another address
I was trying to make 1000 ADA addresses from one seed. I have used MESH and make payment addresses.
and deposit successfully on those addresses, now I need to send ADA from one of these generated ...
0
votes
0
answers
110
views
Critical dependency: the request of a dependency is an expression
I keep receiving this:
Is it normal or i missed something?
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
- event compiled client and server successfully in 1247 ms (18 modules)
- ...
1
vote
1
answer
31
views
Why does api.getRewardAddresses() return an array and does it matter?
The Cardano dApp-Wallet Web Bridge exposes an api.getRewardAddresses() function. This resolves to an array of stake keys, but I have only seen it contain one stake key in practice.
I'm developing a ...
0
votes
1
answer
215
views
NFT Minting with cip68 standard
I want to write the code for minting NFTs with CIP68 update. Like i need such NFTs whose metadata could be updated instead of minting the new NFT everytime. I searched about it and get to know that ...
0
votes
0
answers
28
views
How mint nft from policy_id
import { Transaction, ForgeScript } from '@meshsdk/core';
import type { Mint, AssetMetadata } from '@meshsdk/core';
// prepare forgingScript
const usedAddress = await wallet.getUsedAddresses();
const ...
0
votes
1
answer
47
views
Minting with MESH - Error Missing key witness for: 1e101f14d
Having an issue trying to mint an NFT with my own policy. It's throwing the error below:
Missing key witness for: 1e101f14d07f203b01f8.....
I am not sure what to do here and any assistance would be ...
0
votes
0
answers
39
views
How to convert index.tsx into static html?
I have a tsx file , index.tsx , which was created by nextjs , and then run with npm run dev.
I also have a front end , which use index.html and use a custom script file written by me .
I need to ...
0
votes
2
answers
90
views
"Transaction submit error" while trying to unlock funds from script address using Mesh
This is my setup code.
const wallet = await BrowserWallet.enable('Nami');
// this script always succeeds regardless of the datum or redeemer
const script: PlutusScript = {
code: '59079559079201......
0
votes
3
answers
109
views
"The second data argument, does not decode to a context" when minting NFT with Mesh
This my script for minting NFT:
{-# INLINABLE mkPolicy #-}
mkPolicy :: BuiltinData -> PlutusV2.ScriptContext -> Bool
mkPolicy _ ctx = traceIfFalse "wrong amount minted" checkNFTAmount
...
0
votes
1
answer
155
views
How to resolve this "(FromAlonzoUtxoFail (UtxosFailure (ValidationTagMismatch (IsValid True)" transaction submission error on mesh library
I am getting this error on transaction submission.
""transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (UtxoFailure (FromAlonzoUtxoFail (...
0
votes
1
answer
44
views
Example of mesh using EvaluateTx
Can anyone link an example of mesh handling a tx with a plutus script requiring the calculation of fees?
1
vote
1
answer
63
views
Verify if signing wallet is same wallet that generated a particular policy id
Context:
I'm trying to programmatically verify the owner/creator of a policyId. I assume that I need to verify whether a signing wallet is the same wallet that generated a particular policy id. (I am ...
0
votes
0
answers
449
views
How do I resolve this Webpack issue with Mesh library on NextJS project
I am trying to set up Mesh library on an existing NextJS project. I am not sure how to handle an issue that seems to be with the Webpack configuration for handling wasm files in the library. I am ...
0
votes
1
answer
92
views
Data from Mesh to Plutus
I created this datum with Mesh
const datumMD: Data = new Map<Data, Data>();
datumMD.set('name', assetName );
datumMD.set('question', input);
datumMD.set('answers', []);
datumMD.set('...
0
votes
3
answers
143
views
how to resolve this transaction submission error of MintToken with Mesh
I am Facing this error while transaction submission.
""transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (...
0
votes
2
answers
76
views
Mesh Error: getUsedCollateral not implemented
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,...