<p>You were onto the right idea, try the blackfrost approach again. After calling <code>/accounts/{stake-address}/addresses</code> endpoint you will see a list of addresses linked to the stake address. Pick <strong>any</strong> address from that list.</p>
<p>Another approach that should work is using <a href="https://github.com/input-output-hk/cardano-addresses" rel="nofollow noreferrer">cardano-address</a>. First get all stake addresses:</p>
<p><code>cardano-address address inspect [ADDRESS]</code></p>
<p>Then query your <a href="https://github.com/input-output-hk/cardano-db-sync" rel="nofollow noreferrer">cardano-db-sync</a>. Use an <code>INNER JOIN</code> query to map addresses to stake addresses.</p>

CC BY-SA 4.0
2022-01-10T21:07:38.447Z
Aha, lightbulbs are turning on.  That is cool, thanks for sharing that.  One more depth to delve into.  I think the blockfrost may be more straightforward and simpler, but I will keep that in mind.
Jay Imerman
CC BY-SA 4.0
2022-01-09T07:53:34.057Z
2022-01-09T07:53:34.057Z
BETTR Stake Pool
<p>What I do is query &amp; grab all the data I need from:
<a href="https://cardanoscan.io/pool/f8e64037e3917cd7cb94969a5374e11b9e6c939b4b69118a8eb4509f?tab=delegators" rel="nofollow noreferrer">https://cardanoscan.io/pool/f8e64037e3917cd7cb94969a5374e11b9e6c939b4b69118a8eb4509f?tab=delegators</a></p>
<p>And then send whatever I want using cardano-cli. Works like a charm!</p>

CC BY-SA 4.0
2022-01-04T13:22:36.737Z
Hmm, this is the same as the blockfrost /pools/poolid/delegators call.  It is returning staking addresses.  But you say you send money to those addresses no problem?
Jay Imerman
CC BY-SA 4.0
2022-01-05T02:43:56.533Z
I've never heard of or used blockfrost, but yes - you can send money to those addresses in Cardanoscan no problem. I do it everyday and have never enountered an issue.
Tygar Pool
CC BY-SA 4.0
2022-01-12T19:07:01.183Z
You should check out Blockfrost.io - it's a free RESTful API to call Cardano networks (mainnet or testnet)
Jay Imerman
CC BY-SA 4.0
2022-01-03T17:58:39.710Z
2022-01-03T17:58:39.710Z
Tygar Pool
<p>You pick any of the addresses associated with the staking address from the point 2, they are all in the same wallet.</p>

CC BY-SA 4.0
2022-01-04T13:23:13.500Z
What do you mean "from the point 2"?  Do you mean anything other than the first address?
Jay Imerman
CC BY-SA 4.0
2022-01-05T08:44:47.420Z
This is point 2:
blockfrost - using /pools/{pool-id}/delegators, I can get a list of delegators and the amounts they delegated, but these are staking addresses, and I can't do anything with these addresses directly. I can easily calculate relative stake with this based on live_stake value returned. So, I tried /accounts/{stake-address}/addresses with the first delegator stake address, and it returns something like 15 addresses. What do I do with that? How do I know which is the wallet address I want to send rewards to?
George - APEX Stake Pool
CC BY-SA 4.0
2022-01-11T14:09:26.200Z
Any of those 15 address will be OK. They are all in the same wallet.
George - APEX Stake Pool
CC BY-SA 4.0
2022-01-02T21:35:49.490Z
2022-01-02T21:35:49.490Z
George - APEX Stake Pool
<blockquote>
<p>How do I know which is the wallet address I want to send rewards to?</p>
</blockquote>
<p>In theory, any address associated with the staking key will do.</p>
<p>Just a reminder that the address can be mangled, so the owner of the stake rights might not be the same person as the owner of the payment funds.</p>

CC BY-SA 4.0
2022-01-08T17:46:56.723Z
I'm not sure the implications of this statement.  Does this mean that the address that is returned may not be the address of the staker?  That seems at odds to the call, so I don't think that's what you meant.  Or what payment funds are you talking about, you mean the funds in the wallet that is staked to my pool?  Sorry, I am new to SPO, so I am trying to make sure I understand the answers you are giving.  Thanks for replying!
Jay Imerman
CC BY-SA 4.0
2022-01-03T13:57:17.170Z
2022-01-03T13:57:17.170Z
Marek Mahut - StakeNuts
<p>You can get the wallet address of stake pool operator by using adapools.org. First go the desire pool, then delegators and click on the pool staking address. You will see it. An example can be found <a href="https://adapools.org/stake/stake1uyrylfgzcufvxmlu0ehjmuurjwyzg8z7zzqnx8vlzaujsecz2prk3" rel="nofollow noreferrer">here</a>.</p>

CC BY-SA 4.0
2022-01-10T07:54:49.610Z
This does not answer the question. The OP was asking for delegators addresses, not the SPO's address.
shawnim
CC BY-SA 4.0
2022-01-08T05:04:24.067Z
2022-01-11T05:45:04.250Z
2022-01-11T05:45:04.250Z
Abkade
<p>I am trying to figure out how to write some scripts that will dish out rewards to delegators on my staking pool - I want to get the wallet addresses of delegators, and determine rewards based on the relative amount they have staked (e.g. 5%, 10%, 50%...).  Has anyone done this?  If so, how?  Here is what I tried:</p>
<ol>
<li>cardano-cli - I tried digging through cardano-cli queries, but I didn't see any relevant queries to what I am trying to do.</li>
<li>blockfrost - using /pools/{pool-id}/delegators, I can get a list of delegators and the amounts they delegated, but these are staking addresses, and I can't do anything with these addresses directly.  I can easily calculate relative stake with this based on live_stake value returned.  So, I tried /accounts/{stake-address}/addresses with the first delegator stake address, and it returns something like 15 addresses.  What do I do with that?  How do I know which is the wallet address I want to send rewards to?</li>
</ol>

<stake-pool><rewards><blockfrost><script>
How to obtain wallet addresses of stake pool delegators?
# How to obtain wallet addresses of stake pool delegators?

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

I am trying to figure out how to write some scripts that will dish out rewards to delegators on my staking pool - I want to get the wallet addresses of delegators, and determine rewards based on the relative amount they have staked (e.g. 5%, 10%, 50%...). Has anyone done this? If so, how? Here is what I tried:

1. cardano-cli - I tried digging through cardano-cli queries, but I didn't see any relevant queries to what I am trying to do.
2. blockfrost - using /pools/{pool-id}/delegators, I can get a list of delegators and the amounts they delegated, but these are staking addresses, and I can't do anything with these addresses directly. I can easily calculate relative stake with this based on live\_stake value returned. So, I tried /accounts/{stake-address}/addresses with the first delegator stake address, and it returns something like 15 addresses. What do I do with that? How do I know which is the wallet address I want to send rewards to?

**Tags:** stake-pool, rewards, blockfrost, script

---

## 5 answers

### Answer by username_1 on 2022-01-09. Score: 3

You were onto the right idea, try the blackfrost approach again. After calling `/accounts/{stake-address}/addresses` endpoint you will see a list of addresses linked to the stake address. Pick **any** address from that list.

Another approach that should work is using [cardano-address](https://github.com/input-output-hk/cardano-addresses). First get all stake addresses:

`cardano-address address inspect [ADDRESS]`

Then query your [cardano-db-sync](https://github.com/input-output-hk/cardano-db-sync). Use an `INNER JOIN` query to map addresses to stake addresses.

> **Comments:**
> **username_0**: Aha, lightbulbs are turning on.  That is cool, thanks for sharing that.  One more depth to delve into.  I think the blockfrost may be more straightforward and simpler, but I will keep that in mind.  

---

### Answer by username_2 on 2022-01-03. Score: 1

What I do is query & grab all the data I need from:
<https://cardanoscan.io/pool/f8e64037e3917cd7cb94969a5374e11b9e6c939b4b69118a8eb4509f?tab=delegators>

And then send whatever I want using cardano-cli. Works like a charm!

> **Comments:**
> **username_0**: Hmm, this is the same as the blockfrost /pools/poolid/delegators call.  It is returning staking addresses.  But you say you send money to those addresses no problem?  
> **username_2**: I've never heard of or used blockfrost, but yes - you can send money to those addresses in Cardanoscan no problem. I do it everyday and have never enountered an issue.  
> **username_0**: You should check out Blockfrost.io - it's a free RESTful API to call Cardano networks (mainnet or testnet)  

---

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

You pick any of the addresses associated with the staking address from the point 2, they are all in the same wallet.

> **Comments:**
> **username_0**: What do you mean "from the point 2"?  Do you mean anything other than the first address?  
> **username_3**: This is point 2: blockfrost - using /pools/{pool-id}/delegators, I can get a list of delegators and the amounts they delegated, but these are staking addresses, and I can't do anything with these addresses directly. I can easily calculate relative stake with this based on live_stake value returned. So, I tried /accounts/{stake-address}/addresses with the first delegator stake address, and it returns something like 15 addresses. What do I do with that? How do I know which is the wallet address I want to send rewards to?  
> **username_3**: Any of those 15 address will be OK. They are all in the same wallet.  

---

### Answer by username_4 on 2022-01-03. Score: 0

> How do I know which is the wallet address I want to send rewards to?

In theory, any address associated with the staking key will do.

Just a reminder that the address can be mangled, so the owner of the stake rights might not be the same person as the owner of the payment funds.

> **Comments:**
> **username_0**: I'm not sure the implications of this statement.  Does this mean that the address that is returned may not be the address of the staker?  That seems at odds to the call, so I don't think that's what you meant.  Or what payment funds are you talking about, you mean the funds in the wallet that is staked to my pool?  Sorry, I am new to SPO, so I am trying to make sure I understand the answers you are giving.  Thanks for replying!  

---

### Answer by username_5 on 2022-01-08. Score: 0

You can get the wallet address of stake pool operator by using adapools.org. First go the desire pool, then delegators and click on the pool staking address. You will see it. An example can be found [here](https://adapools.org/stake/stake1uyrylfgzcufvxmlu0ehjmuurjwyzg8z7zzqnx8vlzaujsecz2prk3).

> **Comments:**
> **username_6**: This does not answer the question. The OP was asking for delegators addresses, not the SPO's address.  

---

