user4302: 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?

user1231: 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"
        }
      ]
    }
  ]
}


4302: <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>
 1231: <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>
