<p>This might be too late.</p>
<p>Have you checked that your policyID is the same as &quot;...9570b&quot;?</p>
<p>Assuming you are following the docs and are in the nft folder you can run <code>echo $(cat policy/policyID)</code></p>
<p>Otherwise, if you are following the docs to a T and you are not missing any step I would recreate what is written on the docs.</p>
<p>First I would add the era =&gt; <code>--babbage-era \</code>
Then if you are following the docs, perhaps the script is in a different folder.
The docs add <code>--invalid-hereafter $slotnumber \</code> and witness is a WORD, therefore, needs to be written as a string =&gt; <code>--witness-override '2' \</code></p>

CC BY-SA 4.0
2022-11-12T13:22:01.323Z
2022-11-12T13:22:01.323Z
William Alvarez
<p>Following the <a href="https://developers.cardano.org/docs/native-tokens/minting-nfts/" rel="nofollow noreferrer">Mintin NFTs</a> IOHK tutorial I end up with the following error when <a href="https://developers.cardano.org/docs/native-tokens/minting-nfts/#crafting-the-transaction" rel="nofollow noreferrer">crafting the transaction</a>.</p>
<pre class="lang-bash prettyprint-override"><code>Command failed: transaction build  Error: The &quot;--mint&quot; flag specifies an asset with a policy Id, but no corresponding monetary policy script has been provided as a witness (via the &quot;--mint-script-file&quot; flag). The policy Id in question is: ..9570b
</code></pre>
<p>I don't understand the error because I am giving the script file with the flag mentioned.</p>
<pre class="lang-bash prettyprint-override"><code>cardano-cli transaction build \
--testnet-magic 1 \
--tx-in ...e6f70#0 \
--tx-out addr_test1...s8qjk+2198569+&quot;1 ...9570b.4d7946697273744e4654&quot; \
--change-address addr_test1vrhwzwj5plmracdydsr57k7putcuxfzktffc2v4hgm7kc8gfs8qjk \
--mint=&quot;1 ...9570b.4d7946697273744e4654&quot; \
--mint-script-file policy.script \
--metadata-json-file metadata.json \
--witness-override 2 \
--out-file tx.raw
</code></pre>
<p>And here is the <code>policy.script</code> that has the hash of the policy verification key <code>policy.vkey</code>.</p>
<pre class="lang-json prettyprint-override"><code>{
  &quot;type&quot;: &quot;all&quot;,
  &quot;scripts&quot;:
  [
    {
      &quot;type&quot;: &quot;before&quot;,
      &quot;slot&quot;: 6378920
    },
    {
      &quot;type&quot;: &quot;sig&quot;,
      &quot;keyHash&quot;: &quot;...33060c&quot;
    }
  ]
}
</code></pre>
<p>I would like to have a better idea of what can be wrong as the error is not helping in understanding what has gone wrong.</p>

<cardano-cli><nft><script><policy>
'No Corresponding Policy Script' Error when Script Was Provided
# 'No Corresponding Policy Script' Error when Script Was Provided

(Asked by: username_0 on 2022-09-01)

Following the Mintin NFTs IOHK tutorial I end up with the following error when crafting the transaction.
Command failed: transaction build  Error: The "--mint" flag specifies an asset with a policy Id, but no corresponding monetary policy script has been provided as a witness (via the "--mint-script-file" flag). The policy Id in question is: ..9570b

I don't understand the error because I am giving the script file with the flag mentioned.
cardano-cli transaction build \
--testnet-magic 1 \
--tx-in ...e6f70#0 \
--tx-out addr_test1...s8qjk+2198569+"1 ...9570b.4d7946697273744e4654" \
--change-address addr_test1vrhwzwj5plmracdydsr57k7putcuxfzktffc2v4hgm7kc8gfs8qjk \
--mint="1 ...9570b.4d7946697273744e4654" \
--mint-script-file policy.script \
--metadata-json-file metadata.json \
--witness-override 2 \
--out-file tx.raw

And here is the policy.script that has the hash of the policy verification key policy.vkey.
{
  "type": "all",
  "scripts":
  [
    {
      "type": "before",
      "slot": 6378920
    },
    {
      "type": "sig",
      "keyHash": "...33060c"
    }
  ]
}

I would like to have a better idea of what can be wrong as the error is not helping in understanding what has gone wrong.

**Tags:** cardano-cli, nft, script, policy

---

## 1 answers

### Answer by username_1 on 2022-11-12. Score: 0

This might be too late.

Have you checked that your policyID is the same as "...9570b"?

Assuming you are following the docs and are in the nft folder you can run `echo $(cat policy/policyID)`

Otherwise, if you are following the docs to a T and you are not missing any step I would recreate what is written on the docs.

First I would add the era => `--babbage-era \`
Then if you are following the docs, perhaps the script is in a different folder.
The docs add `--invalid-hereafter $slotnumber \` and witness is a WORD, therefore, needs to be written as a string => `--witness-override '2' \`


---

