<p>plu-ts maintainer here, really happy to see you are using the tool!</p>
<p>If I understand correctly you are trying to mint an NFT using a native script, and you are trying to construct the transaction with the offchain part of plu-ts</p>
<p>I see this post is 5 months old, and the tool has evolved a lot since then, and with it the documentation.</p>
<p>I'll leave here the <a href="https://pluts.harmoniclabs.tech/category/offchain" rel="nofollow noreferrer">link to the latest docs</a> for convenience.</p>
<p>to include a minting script in the transaction (independently if it is plutus or native script) you can specify it in the <a href="https://pluts.harmoniclabs.tech/offchain/TxBuilder%20API/buildSync#mints" rel="nofollow noreferrer"><code>mint</code> property of <code>buildSync</code></a></p>
<p>you can see it expects a script, in your case a native script.</p>
<p>you can construct a <code>Script</code> instance specifying it is a <code>&quot;NativeScript&quot;</code>, followed by your json source; here is an example</p>
<pre class="lang-typescript prettyprint-override"><code>const myNativeScript = new Script(
    &quot;NativeScript&quot;,
    {
        type: &quot;before&quot;,
        slot: 10_000_00
    }
);
</code></pre>
<p>if you still have issues I encourage you to join the <a href="https://discord.gg/gVVPPwX6Mf" rel="nofollow noreferrer">Harmonic Labs discord server</a>, where me or other fellow developers will be happy to help you out</p>

CC BY-SA 4.0
2024-04-17T19:39:08.617Z
Really appreciate your reply. I'll give it a try
Talha Sajid Chaudhary
CC BY-SA 4.0
2024-04-14T15:09:05.577Z
2024-04-18T17:07:02.727Z
2024-04-18T17:07:02.727Z
Michele Nuzzi
<p>Why plutus? It sounds like a native script is perfect for your use case. <a href="https://developers.cardano.org/docs/native-tokens/minting/" rel="nofollow noreferrer">https://developers.cardano.org/docs/native-tokens/minting/</a></p>

CC BY-SA 4.0
2023-10-26T16:56:55.823Z
2023-10-26T16:56:55.823Z
Samuel Leathers
<p>I want to mint an NFT using a JSON file using <code>plu-ts</code>, but I don't know how and where to start.</p>
<p><em>Do I need to create a Node?</em> <strong>OR</strong> <em>Do I need to write it in Haskel?</em> I have read and performed everything from the official documentation of the <code>plu-ts</code> but it has been confusing for me. If anyone can help me out here I'll be very thankful. Even a video would help.</p>

<cardano-cli><cardano-node><smart-contract><nft><plu-ts>
I want to mint an NFT using a JSON file using plu-ts, but I dont know how and where to start
# I want to mint an NFT using a JSON file using plu-ts, but I dont know how and where to start

(Asked by: username_0 on 2023-10-26)

I want to mint an NFT using a JSON file using `plu-ts`, but I don't know how and where to start.

*Do I need to create a Node?* **OR** *Do I need to write it in Haskel?* I have read and performed everything from the official documentation of the `plu-ts` but it has been confusing for me. If anyone can help me out here I'll be very thankful. Even a video would help.

**Tags:** cardano-cli, cardano-node, smart-contract, nft, plu-ts

---

## 2 answers

### Answer by username_1 on 2024-04-14. Score: 1

plu-ts maintainer here, really happy to see you are using the tool!
If I understand correctly you are trying to mint an NFT using a native script, and you are trying to construct the transaction with the offchain part of plu-ts
I see this post is 5 months old, and the tool has evolved a lot since then, and with it the documentation.
I'll leave here the link to the latest docs for convenience.
to include a minting script in the transaction (independently if it is plutus or native script) you can specify it in the mint property of buildSync
you can see it expects a script, in your case a native script.
you can construct a Script instance specifying it is a "NativeScript", followed by your json source; here is an example
const myNativeScript = new Script(
    "NativeScript",
    {
        type: "before",
        slot: 10_000_00
    }
);

if you still have issues I encourage you to join the Harmonic Labs discord server, where me or other fellow developers will be happy to help you out

> **Comments:**
> **username_0**: Really appreciate your reply. I'll give it a try  

---

### Answer by username_2 on 2023-10-26. Score: 0

Why plutus? It sounds like a native script is perfect for your use case. <https://developers.cardano.org/docs/native-tokens/minting/>


---

