Skip to content

Commit 93c20f9

Browse files
committed
docs: Mark relay_fee as deprecated in protocol v1.6+
Add documentation note that `relay_fee` is deprecated in protocol v1.6 and users should use `mempool_get_info` instead. Co-Authored-By: Claude Code AI
1 parent dfd40b3 commit 93c20f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ pub trait ElectrumApi {
308308
fn estimate_fee(&self, number: usize, mode: Option<EstimationMode>) -> Result<f64, Error>;
309309

310310
/// Returns the minimum accepted fee by the server's node in **Bitcoin, not Satoshi**.
311+
///
312+
/// **Note:** This method is deprecated in protocol v1.6+. Use [`mempool_get_info`](#method.mempool_get_info)
313+
/// instead, which provides `minrelaytxfee` along with additional mempool fee information.
311314
fn relay_fee(&self) -> Result<f64, Error>;
312315

313316
/// Subscribes to notifications for activity on a specific *scriptPubKey*.

0 commit comments

Comments
 (0)