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

up vote 3 down vote accepted

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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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