<p>Without seeing your signing command it's difficult to discern what you're doing wrong. Can you confirm you are referencing the policy skey in your signing command? --signing-key-file keys/policy.skey</p>

CC BY-SA 4.0
2022-02-22T18:35:49.337Z
2022-02-22T18:35:49.337Z
Tygar Pool
<p>Try to follow the transaction pattern found <a href="https://developers.cardano.org/docs/native-tokens/minting-nfts" rel="nofollow noreferrer">here</a> toward the end of the page. It worked for me.</p>
<p>You need to add</p>
<pre><code>--mainnet \
--alonzo-era \
--witness-override 2 \
</code></pre>
<p>You can probably drop the --invalid-hereafter, unless you think you specifically need that. Remove the --fee. Also, make sure your invalid-hereafter is in the future. You may only need 1 tx-in as long as that utxo has enough to cover your transaction.</p>

CC BY-SA 4.0
2023-03-20T15:22:15.613Z
2023-03-20T15:22:15.613Z
PREEB
<p>I have a problem when submitting a transaction using cardano-cli 1.33.</p>
<p>This is my transaction:</p>
<p><em>cardano-cli transaction build-raw <br />
--tx-in 0e2a21444b1aeeba7cb10f21d221ae7ff844f0b4f8c444e557cd8d4fd1396cc2#1 <br />
--tx-in e4dcdfd68ea1cbf52425f775c92a83404652f9be9b24b6c8d9cf53d9ba563d90#0 <br />
--tx-out addr1q96x3lat2putrufnr4nml4dpaeflmk9f0necnwags593fyczhes4kfnypptyuqsm824w5mhx4p4venlcc4l8w6rlsdzskzcvwu+21793799+&quot;1 7ed6bfc18a525bac4b0891c5fc106e8cf06ccfcf2926bf58a35b55e4.005400490054004f0030003200350030&quot; <br />
--mint=&quot;1 7ed6bfc18a525bac4b0891c5fc106e8cf06ccfcf2926bf58a35b55e4.005400490054004f0030003200350030&quot; <br />
--minting-script-file /home/node/Desktop/test/src/utilities/../keys/tmp/script_4wtn6rz8h.json <br />
--metadata-json-file /home/node/Desktop/test/src/utilities/../keys/tmp/metadata_fab5bmmo5.json <br />
--invalid-hereafter 82089724 <br />
--invalid-before 0 <br />
--fee 206201 <br />
--out-file /home/node/Desktop/test/src/utilities/../keys/tmp/tx_d9ns8yg52.raw</em></p>
<p>This is my mint script:</p>
<p><em>{
&quot;type&quot;: &quot;all&quot;,
&quot;scripts&quot;: [
{
&quot;slot&quot;: 82089724,
&quot;type&quot;: &quot;before&quot;
},
{
&quot;keyHash&quot;: &quot;c4aae7aca5e060793f24fbf860f6538fce187fe28675d7d43481d93d&quot;,
&quot;type&quot;: &quot;sig&quot;
}
]
}</em></p>
<p>and this is the error that i get:</p>
<p><em>Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (ScriptWitnessNotValidatingUTXOW (fromList [ScriptHash &quot;7ed6bfc18a525bac4b0891c5fc106e8cf06ccfcf2926bf58a35b55e4&quot;])))])</em></p>
<p>Any idea? Let me know if you need more info.
Thank you a lot!</p>

CC BY-SA 4.0
2022-02-22T18:26:58.847Z
Would need your signing command to be able to fully assess what you're doing wrong.
Tygar Pool
<cardano-cli><nft><transaction>
cardano-cli submit error: ScriptWitnessNotValidatingUTXOW
# cardano-cli submit error: ScriptWitnessNotValidatingUTXOW

(Asked by: username_0 on 2022-02-20)

I have a problem when submitting a transaction using cardano-cli 1.33.

This is my transaction:

*cardano-cli transaction build-raw   
--tx-in 0e2a21444b1aeeba7cb10f21d221ae7ff844f0b4f8c444e557cd8d4fd1396cc2#1   
--tx-in e4dcdfd68ea1cbf52425f775c92a83404652f9be9b24b6c8d9cf53d9ba563d90#0   
--tx-out addr1q96x3lat2putrufnr4nml4dpaeflmk9f0necnwags593fyczhes4kfnypptyuqsm824w5mhx4p4venlcc4l8w6rlsdzskzcvwu+21793799+"1 7ed6bfc18a525bac4b0891c5fc106e8cf06ccfcf2926bf58a35b55e4.005400490054004f0030003200350030"   
--mint="1 7ed6bfc18a525bac4b0891c5fc106e8cf06ccfcf2926bf58a35b55e4.005400490054004f0030003200350030"   
--minting-script-file /home/node/Desktop/test/src/utilities/../keys/tmp/script\_4wtn6rz8h.json   
--metadata-json-file /home/node/Desktop/test/src/utilities/../keys/tmp/metadata\_fab5bmmo5.json   
--invalid-hereafter 82089724   
--invalid-before 0   
--fee 206201   
--out-file /home/node/Desktop/test/src/utilities/../keys/tmp/tx\_d9ns8yg52.raw*

This is my mint script:

*{
"type": "all",
"scripts": [
{
"slot": 82089724,
"type": "before"
},
{
"keyHash": "c4aae7aca5e060793f24fbf860f6538fce187fe28675d7d43481d93d",
"type": "sig"
}
]
}*

and this is the error that i get:

*Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (ScriptWitnessNotValidatingUTXOW (fromList [ScriptHash "7ed6bfc18a525bac4b0891c5fc106e8cf06ccfcf2926bf58a35b55e4"])))])*

Any idea? Let me know if you need more info.
Thank you a lot!

**Tags:** cardano-cli, nft, transaction
> **Comments:**
> **username_1**: Would need your signing command to be able to fully assess what you're doing wrong.  

---

## 2 answers

### Answer by username_1 on 2022-02-22. Score: 0

Without seeing your signing command it's difficult to discern what you're doing wrong. Can you confirm you are referencing the policy skey in your signing command? --signing-key-file keys/policy.skey


---

### Answer by username_2 on 2023-03-20. Score: 0

Try to follow the transaction pattern found here toward the end of the page. It worked for me.
You need to add
--mainnet \
--alonzo-era \
--witness-override 2 \

You can probably drop the --invalid-hereafter, unless you think you specifically need that. Remove the --fee. Also, make sure your invalid-hereafter is in the future. You may only need 1 tx-in as long as that utxo has enough to cover your transaction.


---

