@bsv/overlay
Version:
BSV Blockchain Overlay Services Engine
32 lines (31 loc) • 784 B
text/typescript
/**
* Represents an output to be tracked by the Overlay Services Engine
*/
export interface Output {
/** TXID of the output */
txid: string
/** index of the output */
outputIndex: number
/** script of the output */
outputScript: number[]
/** number of satoshis in the output */
satoshis: number
/** topic to which the output belongs */
topic: string
/** Whether the output is spent */
spent: boolean
/** Outputs consumed by the transaction associated with the output */
outputsConsumed: Array<{
txid: string
outputIndex: number
}>
/** Outputs consuming this output */
consumedBy: Array<{
txid: string
outputIndex: number
}>
/** The transaction data for the output */
beef?: number[]
blockHeight?: number
score?: number
}