rustywallet-mempool
Mempool.space API client for fee estimation, address info, and transaction tracking.
Features
- Fee estimation - Get recommended fee rates for different confirmation targets
- Address info - Get balance, transaction count, and UTXOs
- Transaction tracking - Get transaction details and confirmation status
- Broadcasting - Broadcast signed transactions to the network
- Block info - Get current block height and block details
- Multi-network - Support for mainnet, testnet, and signet
Quick Start
use MempoolClient;
async
Networks
use MempoolClient;
// Mainnet (default)
let mainnet = new;
// Testnet
let testnet = testnet;
// Signet
let signet = signet;
// Custom endpoint
let custom = with_base_url;
API Reference
Fee Estimation
get_fees()- Get recommended fee rates (fastest, half_hour, hour, economy, minimum)
Address Methods
get_address(address)- Get address info (balance, tx count)get_utxos(address)- Get UTXOs for addressget_address_txs(address)- Get transaction history
Transaction Methods
get_tx(txid)- Get transaction detailsget_tx_hex(txid)- Get raw transaction hexbroadcast(hex)- Broadcast signed transaction
Block Methods
get_block_height()- Get current block heightget_block_hash(height)- Get block hash by heightget_block(hash)- Get block details
License
MIT