MCPcopy Create free account
hub / github.com/dfinity/examples / get_fee_per_byte

Function get_fee_per_byte

rust/basic_bitcoin/src/common.rs:190–208  ·  view source on GitHub ↗

Estimates a reasonable fee rate for Bitcoin transactions based on network conditions. This function queries the Bitcoin network for recent fee percentiles and returns the median (50th percentile) fee rate, which provides a good balance between confirmation time and cost. The fee rate is returned in millisatoshis per byte. On regtest networks (local development), fee data is typically unavailable

(ctx: &BitcoinContext)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls

no outgoing calls

Tested by

no test coverage detected