Questions tagged [minting]
The process of creating a new native asset on Cardano. Minted assets can be fungible or non-fungible.
12
questions with no upvoted or accepted answers
2
votes
1
answer
144
views
InlineDatum on ReferenceOutput in OffChain code
I tried to use the inline datum of a reference input in the minting policy below:
{-# INLINABLE validateMinting2 #-}
validateMinting2 :: TxOutRef -> BuiltinData -> BuiltinData -> ()
...
2
votes
0
answers
31
views
How to reuse data when updating Token using StateMachine
I'm currently creating a social network-like Dapp on plutus, and I've come across something I don't understand.
My Dapp, for example, is NFT(for own identity)->RFT(for sell own content)->NFT(for ...
1
vote
2
answers
90
views
Mutable NFT state by minting and burning in same transaction
The problem
Please consider the following case: a token (NFT) needs to holds some state, ie {a: 234, b: "someState"}, which needs to be mutable and it needs to abide to specific rules.
The ...
1
vote
1
answer
106
views
Rust Serialization Lib Minting NFT - Missing Key Witnesses Error on Submission
I am running into an error with the CSL Rust Lib when submitting a minting NFT tx. I am following a minimal example in JS https://gist.github.com/lovalabs/83d08796ab9ff65cbf188fbca8d03343 as a guide ...
1
vote
0
answers
251
views
Mint tokens using plutus scripts with the serialization lib
As I understand, in order to mint a token with the serialization-lib, you must use the function set_mint_scripts, providing a NativeScripts object. This collection of NativeScript objects should ...
0
votes
0
answers
37
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
1
answer
40
views
Error submitting a transaction (Error: PPViewHashesDontMatch)
I hope I can get help from someone on here. I built a minting transaction on preprod using Lucid that uses a validator that always pass, and I am stuck with this error:
error: Uncaught (in promise) ...
0
votes
1
answer
26
views
Why is writeToScript reporting that my script costs 0 resources?
I have the following minting script:
{-# INLINABLE verify_mint #-}
script :: () -> V2.ScriptContext -> Bool
script () _ = (3::Integer) == 2+1
and the following off-chain code to mint a token:
...
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
1
answer
49
views
Unable to attach two reference inputs to a transaction with Plutus Emulator
I have written a script that will fail unless it receives both oref1 and oref2 as reference inputs. I have the following emulator code:
let rule = mempty
<> C....
0
votes
0
answers
30
views
mustMintValueWithRedeemer - Number of tokens minted
On the Offchain code I am trying to mint a token using the following snippet
Constraints.mustMintValueWithRedeemer r (assetClassValue cTk 1)
In the validation code of the minting script I am trying ...
0
votes
1
answer
86
views
Using `curSymbol` function in Validator script
supposed I have a mintingpolicy script (simple one time minting policy, parameterizing TxOutRef) and a validator script. I want to validate if the token with correct CurrencySymbol is spent in a ...