Class EsploraClient

java.lang.Object
com.codename1.crypto.rpc.EsploraClient

public class EsploraClient extends Object

A Bitcoin client for the Esplora REST API, which Blockstream and mempool.space run in public and anyone can self-host: unspent outputs, balances, fee estimates and broadcasting.

EsploraClient btc = new EsploraClient(new NetworkTransport(), EsploraClient.MEMPOOL_TESTNET);
BitcoinAddress address = BitcoinAddress.parse("tb1qw508d6qejxtdg4y5r3zarvary0c5xw7kxpjzsx",
        BitcoinNetwork.TESTNET);
List<EsploraClient.Utxo> coins = btc.getUtxos(address);
double satPerVbyte = btc.getFeeEstimates().get("6");
BitcoinTransaction signed = new BitcoinTransaction();   // signed through a Psbt
String txid = btc.broadcast(signed);