Blockstream Esplora wrapper for dart
dart pub add esploradependencies:
esplora: ^1.0.0dependencies:
esplora:
git:
url: https://github.com/ethicnology/dart-esplora.git
ref: main final url = Uri.parse("https://blockstream.info/");
const address = "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa";
const txid =
"e6b148846d7db3367aab6ea46a64e27528764f36581dec6ffc2326e3af2af874";
var esplora = Esplora(url);
Transaction tx = await esplora.getTx(txid);
print(tx.txid);
List<Transaction> txs = await esplora.getAddressTxs(address);
print(txs[0].txid);getTx(String txid);getTxStatus(String txid);getTxHex(String txid);getTxMerkleblockProof(String txid);getTxMerkleProof(String txid);getTxOutspend(String txid, int vout);getTxOutspends(String txid);getAddress(String address);getAddressTxs(String address);getAddressTxsChain(String address);
getAddressTxsChain(String address, String lastSeenTxid: "");getAddressUtxo(String address);getAddressUtxoMempool(String address);getAddressPrefix(String prefix);getBlock(String hash);getBlockHeader(String hash);getBlockStatus(String hash);getBlockTxs(String hash);
getBlockTxs(String hash, startIndex: String);getBlockTxids(String hash);getBlockTxid(String hash, int index);getBlockHeight(int height);getBlocks();
getBlocks(startHeight: int);getBlocksTipHeight();getBlocksTipHash();getMempool();getMempoolTxids();getMempoolRecent();getFeeEstimates();