You can use the ConsensusJ RPC client which conveniently uses bitcoinj types (where possible) for parameters and return values:
Gradle setup:
repositories {
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