<p>A shelley address has two parts: payment part and staking part. For each of these parts, you have its specific private key and whoever holds it, has the ability to manage that part. So, you have an address where the payment part if managed by the smart contact, but the staking part is managed by you. This video might be helpful <a href="https://www.youtube.com/watch?v=NjPf_b9UQNs" rel="nofollow noreferrer">https://www.youtube.com/watch?v=NjPf_b9UQNs</a></p>
<p>So, a Shelley payment addresses that is used by scripts can still delegate to an associated stake key. When you create the locked output, you decide the staking.</p>

CC BY-SA 4.0
2021-05-30T20:22:12.700Z
Can you share some documentation or examples of what this might look like?
Mitchell Turner
CC BY-SA 4.0
2021-05-31T08:15:50.877Z
I think a good documentation for how addresses are working is https://github.com/cardano-foundation/CIPs/blob/master/CIP-0019/CIP-0019.md. Basically, as an example, you make a payment address that is used in the contract script, but where the payment address uses your stake address, so you own the stake rights.
Marek Mahut - StakeNuts
CC BY-SA 4.0
2021-05-31T20:27:36.967Z
What do you mean by a "shelley payment address that use scripts"?
Distic
CC BY-SA 4.0
2021-05-31T21:54:29.657Z
Sorry, that is typo, a payment address used by scripts.
Marek Mahut - StakeNuts
CC BY-SA 4.0
2021-06-03T09:24:35.317Z
@MarekMahut-StakeNuts So just to clarify, you mean any address used by a smart-contract? Because, you know, I could write a script on my laptop that uses my address and obviously I can do whatever I want with this address. Or did you mean something more precise?
Distic
CC BY-SA 4.0
2021-06-03T10:02:53.233Z
A shelley address has two parts: payment part and staking part. For each of these parts, you have its specific private key and whoever holds it, has the ability to manage that part. So, you have an address where the payment part if managed by the smart contact, but the staking part is managed by you. This video might be helpful https://www.youtube.com/watch?v=NjPf_b9UQNs
Marek Mahut - StakeNuts
CC BY-SA 4.0
2021-06-04T09:16:53.487Z
@MarekMahut-StakeNuts: I edited your answer to add this comment.
Distic
CC BY-SA 4.0
2021-05-30T20:01:32.383Z
2021-06-04T12:53:10.717Z
2021-06-04T12:53:10.717Z
Marek Mahut - StakeNuts
<p>Is it possible to delegate the money locked in a smart contract? And how? Using what haskell instructions?</p>

CC BY-SA 4.0
2021-05-30T10:36:13.680Z
Please rephrase into a toplevel question.
DaedelusDaemon
CC BY-SA 4.0
2021-05-31T11:07:52.387Z
@daedalusdaemon sorry but what is a toplevel question?
Distic
CC BY-SA 4.0
2021-05-31T13:22:16.827Z
I meant the Title question.
DaedelusDaemon
<smart-contract><staking><haskell>
How to stake a smart contract's money?
# How to stake a smart contract's money?

(Asked by: username_0 on 2021-05-30)

Is it possible to delegate the money locked in a smart contract? And how? Using what haskell instructions?

**Tags:** smart-contract, staking, haskell
> **Comments:**
> **username_1**: Please rephrase into a toplevel question.  
> **username_0**: @daedalusdaemon sorry but what is a toplevel question?  
> **username_1**: I meant the Title question.  

---

## 1 answers

### Answer by username_2 on 2021-05-30. Score: 1 | Accepted answer

A shelley address has two parts: payment part and staking part. For each of these parts, you have its specific private key and whoever holds it, has the ability to manage that part. So, you have an address where the payment part if managed by the smart contact, but the staking part is managed by you. This video might be helpful <https://www.youtube.com/watch?v=NjPf_b9UQNs>

So, a Shelley payment addresses that is used by scripts can still delegate to an associated stake key. When you create the locked output, you decide the staking.

> **Comments:**
> **username_3**: Can you share some documentation or examples of what this might look like?  
> **username_2**: I think a good documentation for how addresses are working is https://github.com/cardano-foundation/CIPs/blob/master/CIP-0019/CIP-0019.md. Basically, as an example, you make a payment address that is used in the contract script, but where the payment address uses your stake address, so you own the stake rights.  
> **username_0**: What do you mean by a "shelley payment address that use scripts"?  
> **username_2**: Sorry, that is typo, a payment address used by scripts.  
> **username_0**: @MarekMahut-StakeNuts So just to clarify, you mean any address used by a smart-contract? Because, you know, I could write a script on my laptop that uses my address and obviously I can do whatever I want with this address. Or did you mean something more precise?  
> **username_2**: A shelley address has two parts: payment part and staking part. For each of these parts, you have its specific private key and whoever holds it, has the ability to manage that part. So, you have an address where the payment part if managed by the smart contact, but the staking part is managed by you. This video might be helpful https://www.youtube.com/watch?v=NjPf_b9UQNs  
> **username_0**: @MarekMahut-StakeNuts: I edited your answer to add this comment.  

---

