<p>Cardano is a decentralized system, anyone can send anything to any address with any datum attached to it (no one can be censored). There is no way of stopping anyone from sending something to an address, and thats a good thing.</p>
<p>What you can do however is enforce the &quot;spendabilty&quot; of a script address that you created. So an UTxO at an address can only be spend if it sends 100 ada to a predefined address. What are you trying to achieve? If it is something along the line of; I want some to logic to be performed only if 100 ada is payed, then just add the above condition in that plutus validator.</p>

CC BY-SA 4.0
2022-04-06T16:04:10.707Z
Yeah , thats what I was trying to do. I only want to perform certain action if 100 ada is payed.
szhang9921
CC BY-SA 4.0
2022-04-06T14:45:34.767Z
2022-04-06T14:45:34.767Z
Fermat
<p>How do i create a simple script that users can deposit ada into but only 100 ada per transactions , nothing less than that and nothing more. The transaction will not go through if it is not 100 Ada.</p>

<script>
Script to only accept payments in 100 Ada
# Script to only accept payments in 100 Ada

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

How do i create a simple script that users can deposit ada into but only 100 ada per transactions , nothing less than that and nothing more. The transaction will not go through if it is not 100 Ada.

**Tags:** script

---

## 1 answers

### Answer by username_1 on 2022-04-06. Score: 2 | Accepted answer

Cardano is a decentralized system, anyone can send anything to any address with any datum attached to it (no one can be censored). There is no way of stopping anyone from sending something to an address, and thats a good thing.

What you can do however is enforce the "spendabilty" of a script address that you created. So an UTxO at an address can only be spend if it sends 100 ada to a predefined address. What are you trying to achieve? If it is something along the line of; I want some to logic to be performed only if 100 ada is payed, then just add the above condition in that plutus validator.

> **Comments:**
> **username_0**: Yeah , thats what I was trying to do. I only want to perform certain action if 100 ada is payed.  

---

