File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,19 @@ impl ElectrumClient {
199199 pub fn ping ( & self ) -> Result < ( ) , ElectrumError > {
200200 self . 0 . inner . ping ( ) . map_err ( ElectrumError :: from)
201201 }
202+
203+ /// Returns the minimum accepted fee by the server’s node in Bitcoin, not Satoshi.
204+ pub fn relay_fee ( & self ) -> Result < f64 , ElectrumError > {
205+ self . 0 . inner . relay_fee ( ) . map_err ( ElectrumError :: from)
206+ }
207+
208+ /// Gets the raw bytes of a transaction with txid. Returns an error if not found.
209+ pub fn transaction_get_raw ( & self , txid : Arc < Txid > ) -> Result < Vec < u8 > , ElectrumError > {
210+ self . 0
211+ . inner
212+ . transaction_get_raw ( & txid. 0 )
213+ . map_err ( ElectrumError :: from)
214+ }
202215}
203216
204217/// Response to an ElectrumClient.server_features request.
You can’t perform that action at this time.
0 commit comments