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