<p>You can use the <code>unspent</code> command to find unspent outputs sent to that address, or <code>history</code> to see all outputs to that address whether they are spent or not. Note that it relies on public APIs to read the blockchain for transactions.</p>

CC BY-SA 4.0
2018-08-13T07:29:10.507Z
2018-08-13T07:29:10.507Z
meshcollider
<p>Lets say that I execute the code below when the user accesses the deposit page.</p>

<pre><code>my_private_key = random_key()
my_public_key = privtopub(my_private_key)
my_address = pubtoaddr(my_public_key)
</code></pre>

<p>And I let the user deposit into my_address.</p>

<p>How would I obtain the value of the users deposit into my_address?</p>

CC BY-SA 4.0
2018-08-13T07:32:46.293Z
Note that you seem to have asked the same question here, https://bitcoin.stackexchange.com/questions/78180/using-pybitcointools-to-get-the-value-for-a-certain-transaction
Please don't ask the same question multiple times or use multiple accounts
meshcollider
<python><pybitcointools>
How do I get the value of a btc address transaction with pybitcoin tools?
bitcoinlover
# How do I get the value of a btc address transaction with pybitcoin tools?

(Asked by: username_0 on 2018-08-13)

Lets say that I execute the code below when the user accesses the deposit page.

```
my_private_key = random_key()
my_public_key = privtopub(my_private_key)
my_address = pubtoaddr(my_public_key)

```

And I let the user deposit into my\_address.

How would I obtain the value of the users deposit into my\_address?

**Tags:** python, pybitcointools

> **Comments:**
> **username_1**: Note that you seem to have asked the same question here, https://bitcoin.stackexchange.com/questions/78180/using-pybitcointools-to-get-the-value-for-a-certain-transaction Please don't ask the same question multiple times or use multiple accounts  

---

## 1 answers

### Answer by username_1 on 2018-08-13. Score: 0

You can use the `unspent` command to find unspent outputs sent to that address, or `history` to see all outputs to that address whether they are spent or not. Note that it relies on public APIs to read the blockchain for transactions.


---

