utils

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BTCToSats

func BTCToSats(btc float64) float64

BTCToSats 将 BTC 转换为 satoshi

func ClampChainFeeTargetBlocks added in v0.3.0

func ClampChainFeeTargetBlocks(targetBlocks int64) int64

ClampChainFeeTargetBlocks 限制目标确认区块数范围(1-1008)

func ParseFloatFee added in v0.3.0

func ParseFloatFee(raw string) float64

ParseFloatFee 解析字符串费率字段

func RoundFeeSatVB added in v0.3.0

func RoundFeeSatVB(value float64) float64

RoundFeeSatVB 将 sat/vB 费率四舍五入保留 2 位小数

func SatPerVBFromBTCPerKB added in v0.3.0

func SatPerVBFromBTCPerKB(btcPerKB float64) float64

SatPerVBFromBTCPerKB 将 BTC/kB 费率转换为 sat/vB

func SatsToBTC

func SatsToBTC(sats float64) float64

SatsToBTC 将 satoshi 转换为 BTC

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL