<p>Instead of polling many addresses every 30 minutes, you probably want to import your addresses into bitcoind, using <code>bitcoin-cli importaddress</code> and then have bitcoind notify you automatically when a new transaction comes in, using the <code>walletnotify</code> option.</p>

<p>See for example: <a href="https://bitcoin.stackexchange.com/questions/24457/how-do-i-use-walletnotify">How do I use walletnotify?</a></p>

<p>There are a lot of details to get right: transactions might never confirm, the transaction ID might change. When bitcoind loses connection to the network, you want your script to be able to handle that. etc.</p>

CC BY-SA 3.0
2015-10-27T13:12:56.587Z
for import address bitcoind ask private key, I'm need solution only whit public key.
AutoSoft
CC BY-SA 3.0
2015-10-27T14:37:01.787Z
Bitcoind supports watch-only addresses with only the address. See here for more details:
https://bitcoin.stackexchange.com/questions/22152/add-a-watch-only-wallet-in-bitcoind
JohnDvorak
CC BY-SA 3.0
2015-10-27T12:53:20.850Z
2015-10-27T15:00:02.303Z
2017-04-13T12:47:33.583Z
Jannes
<p>For my project I need to check the balance of a public address using bitcoind. Can I do that without importing the private key, only by public address?</p>

<p>Need solution no dependence, because I tried with blockchain.info API and after x requests, they blocked me. I need to check a lot addresses every 30 minutes.</p>

<bitcoind>
Bitcoind daemon get received notifications by public address
AutoSoft
# Bitcoind daemon get received notifications by public address

(Asked by: username_0 on 2015-10-27)

For my project I need to check the balance of a public address using bitcoind. Can I do that without importing the private key, only by public address?

Need solution no dependence, because I tried with blockchain.info API and after x requests, they blocked me. I need to check a lot addresses every 30 minutes.

**Tags:** bitcoind


---

## 1 answers

### Answer by username_1 on 2015-10-27. Score: 1

Instead of polling many addresses every 30 minutes, you probably want to import your addresses into bitcoind, using `bitcoin-cli importaddress` and then have bitcoind notify you automatically when a new transaction comes in, using the `walletnotify` option.

See for example: [How do I use walletnotify?](https://bitcoin.stackexchange.com/questions/24457/how-do-i-use-walletnotify)

There are a lot of details to get right: transactions might never confirm, the transaction ID might change. When bitcoind loses connection to the network, you want your script to be able to handle that. etc.

> **Comments:**
> **username_0**: for import address bitcoind ask private key, I'm need solution only whit public key.  
> **username_2**: Bitcoind supports watch-only addresses with only the address. See here for more details: https://bitcoin.stackexchange.com/questions/22152/add-a-watch-only-wallet-in-bitcoind  

---

