@@ -1,3 +1,5 @@
|
||||
import { IChannel } from './node-api.interface';
|
||||
|
||||
export interface Transaction {
|
||||
txid: string;
|
||||
version: number;
|
||||
@@ -19,6 +21,13 @@ export interface Transaction {
|
||||
deleteAfter?: number;
|
||||
_unblinded?: any;
|
||||
_deduced?: boolean;
|
||||
_outspends?: Outspend[];
|
||||
_channels?: TransactionChannels;
|
||||
}
|
||||
|
||||
export interface TransactionChannels {
|
||||
inputs: { [vin: number]: IChannel };
|
||||
outputs: { [vout: number]: IChannel };
|
||||
}
|
||||
|
||||
interface Ancestor {
|
||||
|
||||
@@ -189,3 +189,35 @@ export interface IOldestNodes {
|
||||
city?: any,
|
||||
country?: any,
|
||||
}
|
||||
|
||||
export interface IChannel {
|
||||
id: number;
|
||||
short_id: string;
|
||||
capacity: number;
|
||||
transaction_id: string;
|
||||
transaction_vout: number;
|
||||
closing_transaction_id: string;
|
||||
closing_reason: string;
|
||||
updated_at: string;
|
||||
created: string;
|
||||
status: number;
|
||||
node_left: Node,
|
||||
node_right: Node,
|
||||
}
|
||||
|
||||
|
||||
export interface INode {
|
||||
alias: string;
|
||||
public_key: string;
|
||||
channels: number;
|
||||
capacity: number;
|
||||
base_fee_mtokens: number;
|
||||
cltv_delta: number;
|
||||
fee_rate: number;
|
||||
is_disabled: boolean;
|
||||
max_htlc_mtokens: number;
|
||||
min_htlc_mtokens: number;
|
||||
updated_at: string;
|
||||
longitude: number;
|
||||
latitude: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user