-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallet.defs.ts
44 lines (42 loc) · 911 Bytes
/
wallet.defs.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
export type BlockstreamUtxoStatus = {
confirmed: boolean;
block_height?: number;
block_hash?: string;
block_time?: number;
confirmations?: number;
};
export type BlockstreamUtxo = {
txid: string;
vout: number;
status: BlockstreamUtxoStatus;
value: number;
};
export type UtxoFromApi = {
txid: string;
vout: number;
value: number;
isConfirmed: boolean;
confirmedAt?: Date;
confirmations?: number;
};
export type Utxo = UtxoFromApi & {
keyIndex: number;
wallet: string;
isIgnored: boolean;
isDust: boolean;
};
export type BlockchainInfoUtxo = {
/** This one is used in blockchain.com explorer */
tx_hash_big_endian: string;
tx_hash: string;
tx_output_n: number;
script: string;
value: number;
value_hex: string;
confirmations: number;
tx_index: number;
};
export type BlockchainInfoResult = {
notice: string;
unspent_outputs: BlockchainInfoUtxo[];
};