<p>You can find fairly extensive documentation on Cardano Native Script (aka Simple Script) <a href="https://github.com/input-output-hk/cardano-node/blob/1.26.1-with-cardano-cli/doc/reference/simple-scripts.md" rel="nofollow noreferrer">here</a>.</p>
<p>In short, you can define a JSON object with a simple set of rules known as scripts to validate operations around:</p>
<ul>
<li>Payment (e.g. spending unspent transaction outputs, i.e. UTxOs at a payment address)</li>
<li>Staking (e.g. withdrawing rewards at a stake/reward address and delegation)</li>
<li>Minting (e.g. minting and burning of native assets under a policy)</li>
</ul>
<p>Each script has a <code>type</code> defining different combinations of scripts required to validate an operation:</p>
<ul>
<li><a href="https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-sig" rel="nofollow noreferrer">sig</a> a signature witness of a key</li>
<li><a href="https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-after" rel="nofollow noreferrer">after</a> a point in time</li>
<li><a href="https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-before" rel="nofollow noreferrer">before</a> a point in time</li>
<li><a href="https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-atleast" rel="nofollow noreferrer">atLeast M</a> of N nested scripts</li>
<li><a href="https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-any" rel="nofollow noreferrer">any</a> of N nested scripts</li>
<li><a href="https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-all" rel="nofollow noreferrer">all</a> of N nested scripts</li>
</ul>
<p>Given these script types, you can have fairly complex nested validation rules and <strong>order does not make a difference</strong> within the nested scripts.</p>

CC BY-SA 4.0
2023-11-29T12:06:53.193Z
Master branch no longer contain docs on that address. I found it on other branch: https://github.com/input-output-hk/cardano-node/blob/1.26.1-with-cardano-cli/doc/reference/simple-scripts.md
mirelon
CC BY-SA 4.0
2022-04-18T04:45:10.257Z
2024-09-11T06:56:38.060Z
2024-09-11T06:56:38.060Z
keefie
<p>What resources should you use to learn native script and in what order should you use them in?</p>

<cardano-cli><script><javascript><native>
How to Get Started with Cardano Native Script
# How to Get Started with Cardano Native Script

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

What resources should you use to learn native script and in what order should you use them in?

**Tags:** cardano-cli, script, javascript, native

---

## 1 answers

### Answer by username_1 on 2022-04-18. Score: 4 | Accepted answer

You can find fairly extensive documentation on Cardano Native Script (aka Simple Script) [here](https://github.com/input-output-hk/cardano-node/blob/1.26.1-with-cardano-cli/doc/reference/simple-scripts.md).

In short, you can define a JSON object with a simple set of rules known as scripts to validate operations around:

* Payment (e.g. spending unspent transaction outputs, i.e. UTxOs at a payment address)
* Staking (e.g. withdrawing rewards at a stake/reward address and delegation)
* Minting (e.g. minting and burning of native assets under a policy)

Each script has a `type` defining different combinations of scripts required to validate an operation:

* [sig](https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-sig) a signature witness of a key
* [after](https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-after) a point in time
* [before](https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-before) a point in time
* [atLeast M](https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-atleast) of N nested scripts
* [any](https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-any) of N nested scripts
* [all](https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/simple-scripts.md#type-all) of N nested scripts

Given these script types, you can have fairly complex nested validation rules and **order does not make a difference** within the nested scripts.

> **Comments:**
> **username_2**: Master branch no longer contain docs on that address. I found it on other branch: https://github.com/input-output-hk/cardano-node/blob/1.26.1-with-cardano-cli/doc/reference/simple-scripts.md  

---

