story-research-zapwall/lib/mempoolSpaceTypes.ts

28 lines
496 B
TypeScript

export interface MempoolTransaction {
txid: string
vout: Array<{
value: number // in sats
scriptpubkey_address: string
}>
status: {
confirmed: boolean
block_height?: number
block_hash?: string
}
}
export interface TransactionVerificationResult {
valid: boolean
confirmed: boolean
confirmations: number
authorOutput?: {
address: string
amount: number
}
platformOutput?: {
address: string
amount: number
}
error?: string | undefined
}