pub trait BitcoinRpcExt: RpcApi {
// Provided methods
fn custom_get_raw_transaction_info(
&self,
txid: &Txid,
block_hash: Option<&BlockHash>,
) -> RpcResult<Option<GetRawTransactionResult>> { ... }
fn broadcast_tx(&self, tx: &Transaction) -> Result<(), Error> { ... }
fn tip(&self) -> Result<BlockRef, Error> { ... }
fn deep_tip(&self) -> Result<BlockRef, Error> { ... }
fn get_block_by_height(
&self,
height: BlockHeight,
) -> Result<BlockRef, Error> { ... }
fn tx_status(&self, txid: &Txid) -> Result<TxStatus, Error> { ... }
fn submit_package(
&self,
txs: &[impl Borrow<Transaction>],
) -> Result<SubmitPackageResult, Error> { ... }
}Provided Methods§
fn custom_get_raw_transaction_info( &self, txid: &Txid, block_hash: Option<&BlockHash>, ) -> RpcResult<Option<GetRawTransactionResult>>
fn broadcast_tx(&self, tx: &Transaction) -> Result<(), Error>
fn tip(&self) -> Result<BlockRef, Error>
fn deep_tip(&self) -> Result<BlockRef, Error>
fn get_block_by_height(&self, height: BlockHeight) -> Result<BlockRef, Error>
fn tx_status(&self, txid: &Txid) -> Result<TxStatus, Error>
fn submit_package( &self, txs: &[impl Borrow<Transaction>], ) -> Result<SubmitPackageResult, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.