No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
Put the package under your project folder and add the following to Cargo.toml
under [dependencies]
:
openapi = { path = "./generated" }
All URIs are relative to https://blockstream.info/api
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- AddressApi | getaddress | GET /address/{address} | Get information about an address. *AddressApi* | getaddresstxhistory | GET /address/{address}/txs | Get transaction history for the specified address, sorted with newest first. AddressApi | getaddresstxmempool | GET /address/{address}/txs/mempool | Get unconfirmed transaction history for the specified address. *AddressApi* | getaddressutxo | GET /address/{address}/utxo | Get the list of unspent transaction outputs associated with the address. *BlockApi* | getblock | GET /block/{hash} | Returns information about a block. BlockApi | getblockatheight | GET /block-height/{height} | Returns the hash of the block currently at height. *BlockApi* | getblockheader | GET /block/{hash}/header | Returns the hex-encoded block header. *BlockApi* | getblockraw | GET /block/{hash}/raw | Returns the raw block representation in binary. *BlockApi* | getblockstatus | GET /block/{hash}/status | Returns the block status. *BlockApi* | getblocktxbyindex | GET /block/{hash}/txid/{index} | Returns the transaction at index :index within the specified block. *BlockApi* | getblocktxids | GET /block/{hash}/txids | Returns a list of all txids in the block. *BlockApi* | getlastblockhash | GET /blocks/tip/hash | Returns the hash of the last block. BlockApi | getlastblockheight | GET /blocks/tip/height | Returns the height of the last block. *FeeEstimatesApi* | getfeeestimates | GET /fee-estimates | Get an object where the key is the confirmation target (in number of blocks) and the value is the estimated feerate (in sat/vB). *MempoolApi* | getmempool | GET /mempool | Get mempool backlog statistics. MempoolApi | getmempoolrecent | GET /mempool/recent | Get a list of the last 10 transactions to enter the mempool. MempoolApi | getmempooltxids | GET /mempool/txids | Get the full list of txids in the mempool as an array. ScripthashApi | getrecenttxsbyscripthash | GET /scripthash/{hash}/txs/chain | Get confirmed transaction history for the specified address/scripthash, sorted by newest first. ScripthashApi | gettxsbeforetxidbyscripthash | GET /scripthash/{hash}/txs/chain/{lastSeenTxid} | Get confirmed transaction history for the specified address/scripthash, sorted by newest first. *ScripthashApi* | gettxsbyscripthash | GET /scripthash/{hash}/txs | Get transaction history for the specified address/scripthash, sorted with newest first. Can be used to query by opreturn *TxApi* | getalltxoutspends | GET /tx/{txId}/outspends | Returns the spending status of all transaction outputs. TxApi | gettx | GET /tx/{txId} | Returns information about the transaction. *TxApi* | gettxhex | GET /tx/{txId}/hex | Returns the raw transaction in hex. *TxApi* | gettxmerkleblockproof | GET /tx/{txId}/merkleblock-proof | Returns a merkle inclusion proof for the transaction using bitcoind's merkleblock format. *TxApi* | gettxmerkleproof | GET /tx/{txId}/merkle-proof | Returns a merkle inclusion proof for the transaction using Electrum's blockchain.transaction.getmerkle format. *TxApi* | gettxoutspend | GET /tx/{txId}/outspend/{vout} | Returns the spending status of a transaction output. *TxApi* | gettxraw | GET /tx/{txId}/raw | Returns the raw transaction as binary data. *TxApi* | gettxstatus | GET /tx/{txId}/status | Returns the transaction confirmation status. *TxApi* | posttx | POST /tx | Broadcast a raw transaction to the network.
To get access to the crate's generated documentation, use:
cargo doc --open