<p><strong>SPV Node</strong></p>

<p>SPV node watches your addresses on network broadcasts.
So on SPV Nodes you won't be able to grab other transactions then your address. It communicates with other peers, fetches your transactions using bloom filters and then watches pool broadcasted transactions. So you only get transactions that are addressed to your wallet.</p>

<p><strong>Full Node</strong></p>

<p>With fullnode, there are two places bcoin looks for tx:</p>

<ol>
<li>Mempool</li>
<li>Chain</li>
</ol>

<p>Bcoin will always return transactions from mempool.
If you want to get transactions from chain, either by address or by transaction Hash, you need to enable indexing: <code>index-address</code> and <code>index-tx</code> respectively.</p>

<p>You can check <code>RPC</code> docs: <a href="https://github.com/bcoin-org/bcoin/blob/master/docs/REST-RPC-API.md" rel="nofollow noreferrer">RPC-Docs</a></p>

CC BY-SA 3.0
2017-08-03T21:51:30.547Z
2017-08-03T21:51:30.547Z
Node
<p>Is this possible with bcoin? Do I need a full node to get transactions or does it work with an SPV?</p>

<transactions><blockchain><full-node><javascript><bcoin>
How do I get transactions from the Bitcoin Blockchain with bcoin?
Bucko
# How do I get transactions from the Bitcoin Blockchain with bcoin?

(Asked by: username_0 on 2017-08-03)

Is this possible with bcoin? Do I need a full node to get transactions or does it work with an SPV?

**Tags:** transactions, blockchain, full-node, javascript, bcoin


---

## 1 answers

### Answer by username_1 on 2017-08-03. Score: 4 | Accepted answer

**SPV username_1**

SPV node watches your addresses on network broadcasts.
So on SPV username_1s you won't be able to grab other transactions then your address. It communicates with other peers, fetches your transactions using bloom filters and then watches pool broadcasted transactions. So you only get transactions that are addressed to your wallet.

**Full username_1**

With fullnode, there are two places bcoin looks for tx:

1. Mempool
2. Chain

Bcoin will always return transactions from mempool.
If you want to get transactions from chain, either by address or by transaction Hash, you need to enable indexing: `index-address` and `index-tx` respectively.

You can check `RPC` docs: [RPC-Docs](https://github.com/bcoin-org/bcoin/blob/master/docs/REST-RPC-API.md)


---

