3

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

1 Answer 1

4

SPV Node

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.

Full Node

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.