You can use the ConsensusJ RPC client which conveniently uses bitcoinj types (where possible) for parameters and return values:
https://github.com/ConsensusJ/consensusj/ Gradle setup: repositories { maven { url "https://dl.bintray.com/msgilligan/maven" } } dependencies { implementation 'com.msgilligan:cj-btc-jsonrpc:0.5.4' } Example code: var client = new BitcoinClient(MainNetParams.get(), RpcURI.defaultMainNetURI, rpcTestUser, rpcTestPassword); Sha256Hash hash = getBlockHash(324140); Block block = getBlock(hash); You probably can't use WalletKit or any of the blockchain implementations, but you could probably use one of the Key Chain classes. -- Sean On Monday, November 16, 2020 at 2:07:03 PM UTC-8 oscar.gu...@gmail.com wrote: > Hi, > > Are there examples of using bitcoinj's wallet and blockchain without > using bitcoin p2p to get blockchain data? > > E.g. using bitcoin core rpc interface ( > https://github.com/johannbarbie/BitcoindClient4J) or a block explorer > API to get blockchain data. > > I am trying to find ways to integrate electrumJ with bitcoinj. > > Thanks. > > -- > Oscar Guindzberg > -- 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 bitcoinj+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bitcoinj/f26d6f9d-0566-4c9a-ac8d-6cb1f3bac461n%40googlegroups.com.