esplora 1.0.0
esplora: ^1.0.0 copied to clipboard
Wraps blockstream esplora.
dart-esplora #
Blockstream Esplora wrapper for dart
Getting started #
From Github #
dependencies:
esplora:
git:
url: https://github.com/ethicnology/dart-esplora.git
ref: main
Usage #
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);
Transactions #
GET /tx/:txid
getTx(String txid);
GET /tx/:txid/status
getTxStatus(String txid);
GET /tx/:txid/hex
getTxHex(String txid);
GET /tx/:txid/merkleblock-proof
getTxMerkleblockProof(String txid);
GET /tx/:txid/merkle-proof
getTxMerkleProof(String txid);
GET /tx/:txid/outspend/:vout
getTxOutspend(String txid, int vout);
GET /tx/:txid/outspends
getTxOutspends(String txid);
Addresses #
GET /address/:address
getAddress(String address);
GET /address/:address/txs
getAddressTxs(String address);
GET /address/:address/txs/chain/:last_seen_txid
getAddressTxsChain(String address, String lastSeenTxid: "");
GET /address/:address/utxo
getAddressUtxo(String address);
GET /address/:address/txs/mempool
getAddressUtxoMempool(String address);
GET /address-prefix/:prefix
getAddressPrefix(String prefix);