The problem is the Bitcoin protocol doesn't support this in the general case. You can fetch transactions from a node's mempool, but once a transaction is confirmed it can only be discovered by synching the blockchain. You can use a bloom filter to and checkpoints to speed this up. But in any case it will be a costly process, much more costly than a simple "get" query.
On 09/22/2017 08:50 AM, KG wrote: > Hi! > > I have been searching for an answer to my question for couple of hours > both on the internet and in code base, but couldn't quite find it. > > Question is: can I use bitcoinj to retrieve *non-wallet* transaction > data from blockstore database? > For reference see this bitcoin core API to understand what I > need: https://bitcoin.org/en/developer-reference#getrawtransaction > > If it is possible could you please point me in the right direction, if > it is not currently a feature can it be easily implemented, if so maybe > I can do so myself (again pointer in the right direction would be > appreciated)? > > -- > You received this message because you are subscribed to the Google > Groups "bitcoinj" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
