<p>If I understand correctly you can use this command <code>getrawtransaction</code> to get a transaction that is in your node's mempool i.e. an unconfirmed transaction. </p>

<p>However, if you are looking for a transaction that has been confirmed, you'll need to know the blockhash of the block in which that transaction resides.</p>

<p>Example:</p>



<pre><code>&gt; bitcoin-cli getrawtransaction "mytxid" false "myblockhash"
</code></pre>

<p>Or if you have enabled <code>-txindex</code> option on your client then you can use <code>getrawtransaction</code> and you don't need to supply the blockhash. Check out <a href="https://bitcoin.stackexchange.com/questions/35707/what-are-pros-and-cons-of-txindex-option">this question</a> for details on this option.</p>

<p>Refer to <a href="https://chainquery.com/bitcoin-cli/getrawtransaction" rel="nofollow noreferrer">this site</a> for a more detailed explanation of the <code>getrawtransaction</code> command.</p>

CC BY-SA 4.0
2019-12-28T05:52:36.447Z
Actually i want to know the transaction that is send by others into my address and that transaction is not yet confirmed(unconfirmed).Here addresses are created outside the node. Then how we can check status of unconfirmed transactions?
Note: We don't have transaction id for unconfirmed receive transaction. We only have address.
Jvd
CC BY-SA 4.0
2019-12-28T21:14:41.810Z
By unconfirmed do you mean "pending" transactions or transactions in the mempool?
foba
CC BY-SA 4.0
2019-12-30T05:20:10.937Z
Yes, pending transaction of addresses which doesn't belong to my local bitcoin-core node .
Jvd
CC BY-SA 4.0
2019-12-30T05:33:59.363Z
The only way you can see that pending transaction is if it gets broadcasted and your local node receives it into it's mempool (AFAIK). Are you not able to see the pending transaction in your nodes mempool?
foba
CC BY-SA 4.0
2019-12-30T05:46:09.637Z
you mean to say we can get pending transaction of address into our local node  mempool (private keys & address belongs to other node)?
Jvd
CC BY-SA 4.0
2019-12-30T06:52:30.013Z
No, I'm saying you'll have to wait for your node to see the broadcasted transaction. Once a transaction is broadcasted it gets propagated throughout the network. You have to wait for your node to see that transaction.
foba
CC BY-SA 4.0
2019-12-30T06:59:11.850Z
Actually addresses are generated outside the node and now i want to create transaction using these addresses. i used createrawtransaction then while calculating fee i am getting error in fundrawtransaction
Jvd
CC BY-SA 4.0
2019-12-28T04:48:21.677Z
2019-12-28T04:48:21.677Z
foba
<p>You can use <code>scantxoutset</code> command which was introduced in Bitcoin Core 0.17. It scans the UTXO set for any UTXOs for the address (or output script) provided. It is faster than the rescan when you import a private key. </p>

<p>Type <code>help scantxoutset</code> to see the help. 
<a href="https://bitcoin.org/en/developer-reference#scantxoutset" rel="nofollow noreferrer">https://bitcoin.org/en/developer-reference#scantxoutset</a></p>

CC BY-SA 4.0
2019-12-28T05:56:20.260Z
Thanks m1xolyd1an, scantxoutset gives details of confirmed transactions. I am looking for unconfirmed transactions also.
Jvd
CC BY-SA 4.0
2019-12-28T05:33:53.767Z
2019-12-28T05:33:53.767Z
m1xolyd1an
<p>How to get both confirmed and unconfirmed transaction details of foreign(non-wallet) addresses from bitcoin-node server?
Actually i have generated the addresses using third party library and sent some btc on it. Now i want to know confirmed and unconfirmed transaction details using my own local bitcoin-core node server. Can Somebody help me? Thanks in advance.    </p>

CC BY-SA 4.0
2019-12-27T21:29:16.533Z
Which bitcoin client are you running?
foba
CC BY-SA 4.0
2019-12-28T04:19:49.280Z
bitcoin-core 0.17
Jvd
<bitcoin-core><address><unconfirmed-transactions><confirmations>
How to get both confirmed and unconfirmed transaction details of foreign(non-wallet) addresses from bitcoin-node server?
Jvd
# How to get both confirmed and unconfirmed transaction details of foreign(non-wallet) addresses from bitcoin-node server?

(Asked by: username_0 on 2019-12-27)

How to get both confirmed and unconfirmed transaction details of foreign(non-wallet) addresses from bitcoin-node server?
Actually i have generated the addresses using third party library and sent some btc on it. Now i want to know confirmed and unconfirmed transaction details using my own local bitcoin-core node server. Can Somebody help me? Thanks in advance.

**Tags:** bitcoin-core, address, unconfirmed-transactions, confirmations

> **Comments:**
> **username_1**: Which bitcoin client are you running?  
> **username_0**: bitcoin-core 0.17  

---

## 2 answers

### Answer by username_1 on 2019-12-28. Score: 1

If I understand correctly you can use this command `getrawtransaction` to get a transaction that is in your node's mempool i.e. an unconfirmed transaction.

However, if you are looking for a transaction that has been confirmed, you'll need to know the blockhash of the block in which that transaction resides.

Example:

```
> bitcoin-cli getrawtransaction "mytxid" false "myblockhash"

```

Or if you have enabled `-txindex` option on your client then you can use `getrawtransaction` and you don't need to supply the blockhash. Check out [this question](https://bitcoin.stackexchange.com/questions/35707/what-are-pros-and-cons-of-txindex-option) for details on this option.

Refer to [this site](https://chainquery.com/bitcoin-cli/getrawtransaction) for a more detailed explanation of the `getrawtransaction` command.

> **Comments:**
> **username_0**: Actually i want to know the transaction that is send by others into my address and that transaction is not yet confirmed(unconfirmed).Here addresses are created outside the node. Then how we can check status of unconfirmed transactions? Note: We don't have transaction id for unconfirmed receive transaction. We only have address.  
> **username_1**: By unconfirmed do you mean "pending" transactions or transactions in the mempool?  
> **username_0**: Yes, pending transaction of addresses which doesn't belong to my local bitcoin-core node .  
> **username_1**: The only way you can see that pending transaction is if it gets broadcasted and your local node receives it into it's mempool (AFAIK). Are you not able to see the pending transaction in your nodes mempool?  
> **username_0**: you mean to say we can get pending transaction of address into our local node  mempool (private keys & address belongs to other node)?  
> **username_1**: No, I'm saying you'll have to wait for your node to see the broadcasted transaction. Once a transaction is broadcasted it gets propagated throughout the network. You have to wait for your node to see that transaction.  
> **username_0**: Actually addresses are generated outside the node and now i want to create transaction using these addresses. i used createrawtransaction then while calculating fee i am getting error in fundrawtransaction  

---

### Answer by username_2 on 2019-12-28. Score: 0

You can use `scantxoutset` command which was introduced in Bitcoin Core 0.17. It scans the UTXO set for any UTXOs for the address (or output script) provided. It is faster than the rescan when you import a private key.

Type `help scantxoutset` to see the help.
<https://bitcoin.org/en/developer-reference#scantxoutset>

> **Comments:**
> **username_0**: Thanks username_2, scantxoutset gives details of confirmed transactions. I am looking for unconfirmed transactions also.  

---

