<p>You have a two errors:</p>
<ol>
<li>Your slot number should be an integer</li>
<li>Key word <code>keyHash</code> should have k in lowercase</li>
</ol>
<p>Using below version, it works.</p>
<pre><code>{
  &quot;type&quot;: &quot;any&quot;,
  &quot;scripts&quot;:
  [
    {
      &quot;type&quot;: &quot;all&quot;,
      &quot;scripts&quot;:
      [
        {
          &quot;type&quot;: &quot;sig&quot;,
          &quot;keyHash&quot;: &quot;0d4db33028a10e797670509faf8f8d0d42e35c1d6e78cb5d78403f2d&quot;
        },
        {
          &quot;type&quot;: &quot;sig&quot;,
          &quot;keyHash&quot;: &quot;69ad5d0ba81fbb859d613b776564596de660d88d032a923347646663&quot;
        }
      ]
    },
    {
      &quot;type&quot;: &quot;all&quot;,
      &quot;scripts&quot;:
      [
        {
          &quot;type&quot;: &quot;after&quot;,
          &quot;slot&quot;: 40250000
        },
        {
          &quot;type&quot;: &quot;sig&quot;,
          &quot;keyHash&quot;: &quot;4b263032e57de4cd8a385bc19dbd12ed54499c7d1d483134e616e2dc&quot;
        }
      ]
    }
  ]
}
</code></pre>

CC BY-SA 4.0
2021-10-23T00:20:51.707Z
2021-10-23T00:20:51.707Z
georgeos
<p>At first glance, it might be few issues, as the <code>cardano-cli</code> errors tend to be ambiguous.</p>
<ul>
<li>Your slot number is specified as a string, while it should be an intiger.</li>
<li>You might need to specify also <code>before</code> slot</li>
<li>You might be signing the with the wrong key</li>
</ul>

CC BY-SA 4.0
2021-10-20T16:21:55.793Z
Out of those three points, only the first applies to actually building the script address from the JSON script file, which is what I'm having issues with.

I've changed the slot number to an integer value and I'm still getting the same error: 

[Command failed: address build  Error: multisig.json: Syntax error in script: Error in $: "atLeast" script value not found]

Really weird... have I discovered a bug?
zhekson
CC BY-SA 4.0
2021-10-19T07:12:23.787Z
2021-10-19T07:12:23.787Z
Marek Mahut - StakeNuts
<p>I am trying to build a muiltsig address using shelley simple scripts (<a href="https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md</a>)</p>
<p>The purpose of this scheme is to have a regular 2-of-2 multisig address backed by a third emergency key that is only valid after a certain slot number.</p>
<p>Here is my script syntax in json form:</p>
<pre><code>{
  &quot;type&quot;: &quot;any&quot;,
  &quot;scripts&quot;:
  [
    {
      &quot;type&quot;: &quot;all&quot;,
      &quot;scripts&quot;:
      [
        {
          &quot;type&quot;: &quot;sig&quot;,
          &quot;KeyHash&quot;: &quot;0d4db33028a10e797670509faf8f8d0d42e35c1d6e78cb5d78403f2d&quot;
        },
        {
          &quot;type&quot;: &quot;sig&quot;,
          &quot;KeyHash&quot;: &quot;69ad5d0ba81fbb859d613b776564596de660d88d032a923347646663&quot;
        }
      ]
    },
    {
      &quot;type&quot;: &quot;all&quot;,
      &quot;scripts&quot;:
      [
        {
          &quot;type&quot;: &quot;after&quot;,
          &quot;slot&quot;: &quot;40250000&quot;
        },
        {
          &quot;type&quot;: &quot;sig&quot;,
          &quot;KeyHash&quot;: &quot;4b263032e57de4cd8a385bc19dbd12ed54499c7d1d483134e616e2dc&quot;
        }
      ]
    }
  ]
}
</code></pre>
<p>However, when building the script address, I get the following error:</p>
<pre><code>Command failed: address build  Error: multitest/multisig.json: Syntax error in script: Error in $: &quot;atLeast&quot; script value not found
</code></pre>
<p>Kindly explain what am I doing wrong?</p>

<multisig>
Multisig Script Syntax Error
# Multisig Script Syntax Error

(Asked by: username_0 on 2021-10-18)

I am trying to build a muiltsig address using shelley simple scripts (https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md)
The purpose of this scheme is to have a regular 2-of-2 multisig address backed by a third emergency key that is only valid after a certain slot number.
Here is my script syntax in json form:
{
  "type": "any",
  "scripts":
  [
    {
      "type": "all",
      "scripts":
      [
        {
          "type": "sig",
          "KeyHash": "0d4db33028a10e797670509faf8f8d0d42e35c1d6e78cb5d78403f2d"
        },
        {
          "type": "sig",
          "KeyHash": "69ad5d0ba81fbb859d613b776564596de660d88d032a923347646663"
        }
      ]
    },
    {
      "type": "all",
      "scripts":
      [
        {
          "type": "after",
          "slot": "40250000"
        },
        {
          "type": "sig",
          "KeyHash": "4b263032e57de4cd8a385bc19dbd12ed54499c7d1d483134e616e2dc"
        }
      ]
    }
  ]
}

However, when building the script address, I get the following error:
Command failed: address build  Error: multitest/multisig.json: Syntax error in script: Error in $: "atLeast" script value not found

Kindly explain what am I doing wrong?

**Tags:** multisig

---

## 2 answers

### Answer by username_1 on 2021-10-23. Score: 1 | Accepted answer

You have a two errors:

Your slot number should be an integer
Key word keyHash should have k in lowercase

Using below version, it works.
{
  "type": "any",
  "scripts":
  [
    {
      "type": "all",
      "scripts":
      [
        {
          "type": "sig",
          "keyHash": "0d4db33028a10e797670509faf8f8d0d42e35c1d6e78cb5d78403f2d"
        },
        {
          "type": "sig",
          "keyHash": "69ad5d0ba81fbb859d613b776564596de660d88d032a923347646663"
        }
      ]
    },
    {
      "type": "all",
      "scripts":
      [
        {
          "type": "after",
          "slot": 40250000
        },
        {
          "type": "sig",
          "keyHash": "4b263032e57de4cd8a385bc19dbd12ed54499c7d1d483134e616e2dc"
        }
      ]
    }
  ]
}


---

### Answer by username_2 on 2021-10-19. Score: 0

At first glance, it might be few issues, as the `cardano-cli` errors tend to be ambiguous.

* Your slot number is specified as a string, while it should be an intiger.
* You might need to specify also `before` slot
* You might be signing the with the wrong key

> **Comments:**
> **username_0**: Out of those three points, only the first applies to actually building the script address from the JSON script file, which is what I'm having issues with.  I've changed the slot number to an integer value and I'm still getting the same error:   [Command failed: address build  Error: multisig.json: Syntax error in script: Error in $: "atLeast" script value not found]  Really weird... have I discovered a bug?  

---

