fees

package
v0.2.7-alpha-json-stubs Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateFee

func CalculateFee(details GetDetailsFunc, txid *chainhash.Hash) (btcutil.Amount,
	error)

CalculateFee returns the total fees for the transaction provided. TODO(carla): identify change address and split fees between outputs.

Types

type GetDetailsFunc

type GetDetailsFunc func(hash *chainhash.Hash) (*btcjson.TxRawResult, error)

GetDetailsFunc is a function which looks up transactions by hash.

Jump to

Keyboard shortcuts

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