UNPKG

@vbyte/btc-dev

Version:

Batteries-included toolset for plebian bitcoin development

11 lines (10 loc) 773 B
import { Buff } from '@vbyte/buff'; import type { TxData, TxOutput, TxOutputTemplate, TxValue } from '../../types/index.js'; export declare function transcode_tx(txdata: string | Uint8Array, use_segwit?: boolean): Buff; export declare function get_txid(txdata: string | Uint8Array | TxData): string; export declare function get_txhash(txdata: string | Uint8Array | TxData): string; export declare function get_tx_value(txdata: string | Uint8Array | TxData): TxValue; export declare function get_prevouts(txdata: TxData): TxOutput[]; export declare function normalize_sequence(sequence?: number | string | null): number; export declare function normalize_value(value: number | bigint): bigint; export declare function normalize_prevout(prevout: TxOutputTemplate): TxOutput;