opnet
Version:
The perfect library for building Bitcoin-based applications.
17 lines (16 loc) • 496 B
TypeScript
import { ScriptPubKey } from '@btc-vision/bitcoin-rpc';
export interface RawIUTXO {
readonly transactionId: string;
readonly outputIndex: number;
readonly value: bigint | string;
readonly scriptPubKey: ScriptPubKey;
readonly raw?: number;
}
export interface IUTXO extends Omit<RawIUTXO, 'raw'> {
readonly raw: string;
readonly witnessScript?: string | Uint8Array;
}
export interface ISpentUTXO {
readonly transactionId: string;
readonly outputIndex: number;
}