UNPKG

@bsv/sdk

Version:

BSV Blockchain Software Development Kit

13 lines (11 loc) 483 B
import Transaction from './Transaction.js' /** * Represents the interface for a transaction fee model. * This interface defines a standard method for computing a fee when given a transaction. * * @interface * @property {function} computeFee - A function that takes a Transaction object and returns a BigNumber representing the number of satoshis the transaction should cost. */ export default interface FeeModel { computeFee: (transaction: Transaction) => Promise<number> }