<p>You seem to be misunderstanding how smart contracts work on Cardano.</p>
<blockquote>
<p>Does the redeemer have to be from a wallet address(?)</p>
</blockquote>
<p>Redeemers don't come from wallet address, they are included on transactions. And transactions must be created by a user off-chain.</p>
<blockquote>
<p>I am thinking if you gave the contract some ada and had it pay fees automatically out of itself...</p>
</blockquote>
<p>There is no such thing as automated smart contracts in Cardano. The datums at script address <em>only</em> change state as a result of a transaction submitted from off-chain.</p>

CC BY-SA 4.0
2022-10-11T18:18:15.007Z
2022-10-11T18:18:15.007Z
Mitchell Turner
<p>I can't imagine how you'd do that.  The validation nodes control fee distribution, only relying on the TX to provide the fees, but not relying on the TX to tell them how/where to distribute them.</p>

CC BY-SA 4.0
2022-01-15T05:06:12.273Z
I was thinking since in the eUXTO model the redeemer is arbitrary, you could pass unit () as the redeemer. The validation script could be programmed to always accept () and pay a small amount of fee to the node, and the rest to some value in the datum. This is how I would do it in my head, but I don't know if Plutus actually allows this.
micahkendall
CC BY-SA 4.0
2022-01-14T16:58:57.450Z
2022-01-14T16:58:57.450Z
Hysteria
<p>Could a contract be programmed such that the redeemer seemingly comes from nowhere from what the node / someone monitoring the blockchain could tell? I am thinking if you gave the contract some ada and had it pay fees automatically out of itself, you could run totally anonymous logic. Are there restrictions preventing you from doing this?</p>

CC BY-SA 4.0
2022-01-16T03:52:03.597Z
Welcome to Cardano SE! As a new user be sure to take the [Tour].
gRebel
<plutus><wallet><smart-contract><haskell><redeemer>
Does the redeemer have to be from a wallet address/contract?
# Does the redeemer have to be from a wallet address/contract?

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

Could a contract be programmed such that the redeemer seemingly comes from nowhere from what the node / someone monitoring the blockchain could tell? I am thinking if you gave the contract some ada and had it pay fees automatically out of itself, you could run totally anonymous logic. Are there restrictions preventing you from doing this?

**Tags:** plutus, wallet, smart-contract, haskell, redeemer
> **Comments:**
> **username_1**: Welcome to Cardano SE! As a new user be sure to take the [Tour].  

---

## 2 answers

### Answer by username_2 on 2022-10-11. Score: 1

You seem to be misunderstanding how smart contracts work on Cardano.

> Does the redeemer have to be from a wallet address(?)

Redeemers don't come from wallet address, they are included on transactions. And transactions must be created by a user off-chain.

> I am thinking if you gave the contract some ada and had it pay fees automatically out of itself...

There is no such thing as automated smart contracts in Cardano. The datums at script address *only* change state as a result of a transaction submitted from off-chain.


---

### Answer by username_3 on 2022-01-14. Score: 0

I can't imagine how you'd do that. The validation nodes control fee distribution, only relying on the TX to provide the fees, but not relying on the TX to tell them how/where to distribute them.

> **Comments:**
> **username_0**: I was thinking since in the eUXTO model the redeemer is arbitrary, you could pass unit () as the redeemer. The validation script could be programmed to always accept () and pay a small amount of fee to the node, and the rest to some value in the datum. This is how I would do it in my head, but I don't know if Plutus actually allows this.  

---

