Documentation ¶
Index ¶
- Constants
- func Decode(psbtB []byte, encoding ...Encoding) (*psbt.Packet, error)
- func DecodeString(psbtStr string, encoding ...Encoding) (*psbt.Packet, error)
- func EncodeToString(pC *psbt.Packet, encoding ...Encoding) (string, error)
- func IsReadyPSBT(pC *psbt.Packet, feeRate int64) (bool, error)
- func PSBTSize(psbt *psbt.Packet) (float64, error)
- func PredictTxFee(feeRate int64, inputs, outputs int) int64
- func TxFee(feeRate int64, p *psbt.Packet) (int64, error)
- type Encoding
Constants ¶
View Source
const ( // default psbt encoding is hex DefaultEncoding = EncodingHex )
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode decodes a psbt hex/base64 byte into a psbt.Packet
encoding is optional, default is EncodingHex
func DecodeString ¶
DecodeString decodes a psbt hex/base64 string into a psbt.Packet
encoding is optional, default is EncodingHex
func EncodeToString ¶
EncodeToString encodes a psbt.Packet into a psbt hex/base64 string
encoding is optional, default is EncodingHex
func PredictTxFee ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.