<p>I would start by looking at the mempool. See <em>getrawmempool</em>, <em>getrawtransaction</em>, <em>decoderawtransaction</em> api calls.  Once you see the transaction your looking for in the mempool you could consider that status #1</p>

<p>Once this transaction is confirmed in a block it will show up as part of the <em>getbalance</em> for that account and other RPC calls like <em>listunspent</em> etc..  You could consider that status #2</p>

<p>Then it's up to you how many confirmations you want for the payment to be considered confirmed.</p>

CC BY-SA 3.0
2015-12-23T20:00:10.140Z
2015-12-23T20:00:10.140Z
Dustin Butler
<p>I need to implement a BTC payment system on my web-store. But I'm still not sure about the mechanisms I'm supposed to use for payment confirmation.</p>

<p>For example, a user registered on my store and I created a new address for his account by using getnewaddress('user-name').  I also generate a new address for every new transaction. How can I track the status of a payment made to this address?</p>

<bitcoind><json-rpc><validation>
Validate a payment using bitcoind and json rpc
Александр Пушкин
# Validate a payment using bitcoind and json rpc

(Asked by: username_0 on 2015-12-17)

I need to implement a BTC payment system on my web-store. But I'm still not sure about the mechanisms I'm supposed to use for payment confirmation.

For example, a user registered on my store and I created a new address for his account by using getnewaddress('user-name'). I also generate a new address for every new transaction. How can I track the status of a payment made to this address?

**Tags:** bitcoind, json-rpc, validation


---

## 1 answers

### Answer by username_1 on 2015-12-23. Score: 2

I would start by looking at the mempool. See *getrawmempool*, *getrawtransaction*, *decoderawtransaction* api calls. Once you see the transaction your looking for in the mempool you could consider that status #1

Once this transaction is confirmed in a block it will show up as part of the *getbalance* for that account and other RPC calls like *listunspent* etc.. You could consider that status #2

Then it's up to you how many confirmations you want for the payment to be considered confirmed.


---

