esplora

Last updated:

0 purchases

esplora Image
esplora Images
Add to Cart

Description:

esplora

dart-esplora #



Blockstream Esplora wrapper for dart
Getting started #
From pub.dev #
dart pub add esplora
copied to clipboard
dependencies:
esplora: ^1.0.0
copied to clipboard
From Github #
dependencies:
esplora:
git:
url: https://github.com/ethicnology/dart-esplora.git
ref: main
copied to clipboard
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);
copied to clipboard
Transactions #
GET /tx/:txid
getTx(String txid);
copied to clipboard
GET /tx/:txid/status
getTxStatus(String txid);
copied to clipboard
GET /tx/:txid/hex
getTxHex(String txid);
copied to clipboard
GET /tx/:txid/merkleblock-proof
getTxMerkleblockProof(String txid);
copied to clipboard
GET /tx/:txid/merkle-proof
getTxMerkleProof(String txid);
copied to clipboard
GET /tx/:txid/outspend/:vout
getTxOutspend(String txid, int vout);
copied to clipboard
GET /tx/:txid/outspends
getTxOutspends(String txid);
copied to clipboard
Addresses #
GET /address/:address
getAddress(String address);
copied to clipboard
GET /address/:address/txs
getAddressTxs(String address);
copied to clipboard
GET /address/:address/txs/chain/:last_seen_txid(optional)
getAddressTxsChain(String address);
getAddressTxsChain(String address, String lastSeenTxid: "");
copied to clipboard
GET /address/:address/utxo
getAddressUtxo(String address);
copied to clipboard
GET /address/:address/txs/mempool
getAddressUtxoMempool(String address);
copied to clipboard
GET /address-prefix/:prefix
getAddressPrefix(String prefix);
copied to clipboard
Blocks #
GET /block/:hash
getBlock(String hash);
copied to clipboard
GET /block/:hash/header
getBlockHeader(String hash);
copied to clipboard
GET /block/:hash/status
getBlockStatus(String hash);
copied to clipboard
GET /block/:hash/txs/:start_index(optional)
getBlockTxs(String hash);
getBlockTxs(String hash, startIndex: String);
copied to clipboard
GET /block/:hash/txids
getBlockTxids(String hash);
copied to clipboard
GET /block/:hash/txid/:index
getBlockTxid(String hash, int index);
copied to clipboard
GET /block-height/:height
getBlockHeight(int height);
copied to clipboard
GET /blocks/:start_height(optional)
getBlocks();
getBlocks(startHeight: int);
copied to clipboard
GET /blocks/tip/height
getBlocksTipHeight();
copied to clipboard
GET /blocks/tip/hash
getBlocksTipHash();
copied to clipboard
Mempool #
GET /mempool
getMempool();
copied to clipboard
GET /mempool/txids
getMempoolTxids();
copied to clipboard
GET /mempool/recent
getMempoolRecent();
copied to clipboard
Fee #
GET /fee-estimates
getFeeEstimates();
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.