<p>I am writing a script to automate minting native assets. Everything works well, up until this point:</p>
<pre><code>echo &quot;Building transaction...&quot;
cardano-cli transaction build \
            --babbage-era \
            $NETWORK \
            --tx-in $txhash#$txix \
            --tx-out $address+$output+&quot;$tokenamount $policyid.$tokenhash&quot; \
            --mint &quot;$tokenamount $policyid.$tokenhash&quot; \
            --minting-script-file &quot;$tokenname&quot;/policy/policy.script \
            --change-address $address \
            --out-file &quot;$tokenname&quot;/tx.build;
</code></pre>
<p>but every time I run the script, I get this error for &quot;--tx-out&quot;:</p>
<pre><code>Building transaction...
option --tx-out: 
unexpected '.'
expecting space, letter or digit, white space, &quot;+&quot; or end of input
</code></pre>
<p>I followed the <a href="https://developers.cardano.org/docs/native-tokens/minting/" rel="nofollow noreferrer">official Cardano documentation</a> for how to format the command, but for some reason the 'dot' between $policyid and $tokenhash is giving issues.</p>
<p>Is there something I'm missing? I know the documentation can be notoriously out of date, but nothing I've found online and elsewhere has helped so far.</p>

CC BY-SA 4.0
2022-11-04T06:05:48.327Z
have you tried substituting the variables with actual values? Could possibly be caused by empty value in one of the variables on tx-out line
RdLrT
CC BY-SA 4.0
2022-11-04T06:09:54.307Z
Try echoing all those evnvironment variables to make sure none of the have a `.` character.
Erik de Castro Lopo
CC BY-SA 4.0
2022-11-04T17:39:52.707Z
Okay, tried the suggestions, now the error I'm getting "Command failed: transaction build  Error: The script language SimpleScriptLanguage SimpleScriptV1 is not supported in the Babbage era."
ota
<cardano-cli><native-assets>
Error Minting Native Asset: " unexpected '.', expecting space, letter or digit, white space, "+" or end of input "
# Error Minting Native Asset: " unexpected '.', expecting space, letter or digit, white space, "+" or end of input "

(Asked by: username_0 on 2022-11-04)

I am writing a script to automate minting native assets. Everything works well, up until this point:
echo "Building transaction..."
cardano-cli transaction build \
            --babbage-era \
            $NETWORK \
            --tx-in $txhash#$txix \
            --tx-out $address+$output+"$tokenamount $policyid.$tokenhash" \
            --mint "$tokenamount $policyid.$tokenhash" \
            --minting-script-file "$tokenname"/policy/policy.script \
            --change-address $address \
            --out-file "$tokenname"/tx.build;

but every time I run the script, I get this error for "--tx-out":
Building transaction...
option --tx-out: 
unexpected '.'
expecting space, letter or digit, white space, "+" or end of input

I followed the official Cardano documentation for how to format the command, but for some reason the 'dot' between $policyid and $tokenhash is giving issues.
Is there something I'm missing? I know the documentation can be notoriously out of date, but nothing I've found online and elsewhere has helped so far.

**Tags:** cardano-cli, native-assets
> **Comments:**
> **username_1**: have you tried substituting the variables with actual values? Could possibly be caused by empty value in one of the variables on tx-out line  
> **username_2**: Try echoing all those evnvironment variables to make sure none of the have a `.` character.  
> **username_0**: Okay, tried the suggestions, now the error I'm getting "Command failed: transaction build  Error: The script language SimpleScriptLanguage SimpleScriptV1 is not supported in the Babbage era."  

---

## 0 answers

