@ordinalsbot/bitcoin-fee-estimator
Version:
A library for calculating Bitcoin transaction fees
7 lines (6 loc) • 457 B
TypeScript
import { ScriptType } from "../types";
export declare function getScriptLengthSize(length: number): number;
export declare function getScriptTypeFromAddress(address: string): ScriptType;
export declare const detectOutputScriptType: (scriptPubKey: Buffer, redeemScript?: string | Buffer) => ScriptType;
export declare const estimateInputSize: (inputScriptType: ScriptType) => number;
export declare const getOutputSize: (outputScript: ScriptType) => number;