Esplora class

Constructors

Esplora(Uri url)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
getter/setter pair

Methods

getAddress(String address) Future<Map<String, Stats>>
Get information about an address.
getAddressPrefix(String prefix) Future<List<String>>
Search for addresses beginning with prefix. Returns a JSON array with up to 10 results.
getAddressTxs(String address) Future<List<Transaction>>
Get transaction history for the specified address, sorted with newest first. Returns up to 50 mempool transactions plus the first 25 confirmed transactions.
getAddressTxsChain(String address, {String lastSeenTxid = ""}) Future<List<Transaction>>
Get transaction history for the specified address, sorted with newest first. Returns 25 transactions per page. More can be requested by specifying the last txid seen by the previous query.
getAddressTxsMempool(String address) Future<List<Transaction>>
Get unconfirmed transaction history for the specified address. Returns up to 50 transactions (no paging).
getAddressUtxo(String address) Future<List<Utxo>>
Get the list of unspent transaction outputs associated with the address. FIXME: Elements-based chains have a valuecommitment field that may appear in place of value, plus the following additional fields: asset/assetcommitment, nonce/noncecommitment, surjection_proof and range_proof.
getBlock(String hash) Future<Block>
Returns information about a block.
getBlockHeader(String hash) Future<String>
Returns the hex-encoded block header.
getBlockHeight(int height) Future<String>
Returns the hash of the block currently at height.
getBlocks({int? height}) Future<List<Block>>
Returns the 10 newest blocks starting at the tip or at start_height if specified.
getBlockStatus(String hash) Future<BlockStatus>
Returns the block status.
getBlocksTipHash() Future<String>
Returns the hash of the last block.
getBlocksTipHeight() Future<int>
Returns the height of the last block.
getBlockTxid(String hash, int index) Future<String>
Returns the transaction at index :index within the specified block.
getBlockTxids(String hash) Future<List<String>>
Returns a list of all txids in the block.
getBlockTxs(String hash, {String startIndex = ""}) Future<List<Transaction>>
Returns a list of transactions in the block (up to 25 transactions beginning at start_index).
getFeeEstimates() Future<Map<String, num>>
Get an object where the key is the confirmation target (in number of blocks) and the value is the estimated feerate (in sat/vB). The available confirmation targets are 1-25, 144, 504 and 1008 blocks.
getMempool() Future<Mempool>
Get mempool backlog statistics.
getMempoolRecent() Future<List<MempoolRecent>>
Get a list of the last 10 transactions to enter the mempool. Each transaction object contains simplified overview data, with the following fields: txid, fee, vsize and value
getMempoolTxids() Future<List<String>>
Get the full list of txids in the mempool as an array. The order of the txids is arbitrary and does not match bitcoind's.
getTx(String txid) Future<Transaction>
Returns information about the transaction.
getTxHex(String txid) Future<String>
Returns the raw transaction in hex data.
getTxMerkleblockProof(String txid) Future<String>
Returns a merkle inclusion proof for the transaction using bitcoind's merkleblock format. Note: This endpoint is not currently available for Liquid/Elements-based chains.
getTxMerkleProof(String txid) Future<MerkleProof>
Returns a merkle inclusion proof for the transaction using Electrum's blockchain.transaction.get_merkle format.
getTxOutspend(String txid, int vout) Future<Outspend>
Returns the spending status of a transaction output.
getTxOutspends(String txid) Future<List<Outspend>>
Returns the spending status of all transaction outputs.
getTxStatus(String txid) Future<Status>
Returns the transaction confirmation status.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited