opnet
Version:
The perfect library for building Bitcoin-based applications.
16 lines (15 loc) • 446 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;
}
export interface ISpentUTXO {
readonly transactionId: string;
readonly outputIndex: number;
}