mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
committed by
Mayukha Vadari
parent
8c5bc22317
commit
e200de3073
@@ -1,40 +1,40 @@
|
||||
import { LedgerIndex } from "../common";
|
||||
import { LedgerIndex } from '../common'
|
||||
|
||||
import { BaseRequest, BaseResponse } from "./baseMethod";
|
||||
import { BaseRequest, BaseResponse } from './baseMethod'
|
||||
|
||||
interface Trustline {
|
||||
account: string;
|
||||
balance: string;
|
||||
currency: string;
|
||||
limit: string;
|
||||
limit_peer: string;
|
||||
quality_in: number;
|
||||
quality_out: number;
|
||||
no_ripple?: boolean;
|
||||
no_ripple_peer?: boolean;
|
||||
authorized?: boolean;
|
||||
peer_authorized?: boolean;
|
||||
freeze?: boolean;
|
||||
freeze_peer?: boolean;
|
||||
account: string
|
||||
balance: string
|
||||
currency: string
|
||||
limit: string
|
||||
limit_peer: string
|
||||
quality_in: number
|
||||
quality_out: number
|
||||
no_ripple?: boolean
|
||||
no_ripple_peer?: boolean
|
||||
authorized?: boolean
|
||||
peer_authorized?: boolean
|
||||
freeze?: boolean
|
||||
freeze_peer?: boolean
|
||||
}
|
||||
|
||||
export interface AccountLinesRequest extends BaseRequest {
|
||||
command: "account_lines";
|
||||
account: string;
|
||||
ledger_hash?: string;
|
||||
ledger_index?: LedgerIndex;
|
||||
peer?: string;
|
||||
limit?: number;
|
||||
marker?: unknown;
|
||||
command: 'account_lines'
|
||||
account: string
|
||||
ledger_hash?: string
|
||||
ledger_index?: LedgerIndex
|
||||
peer?: string
|
||||
limit?: number
|
||||
marker?: unknown
|
||||
}
|
||||
|
||||
export interface AccountLinesResponse extends BaseResponse {
|
||||
result: {
|
||||
account: string;
|
||||
lines: Trustline[];
|
||||
ledger_current_index?: number;
|
||||
ledger_index?: number;
|
||||
ledger_hash?: string;
|
||||
marker?: unknown;
|
||||
};
|
||||
account: string
|
||||
lines: Trustline[]
|
||||
ledger_current_index?: number
|
||||
ledger_index?: number
|
||||
ledger_hash?: string
|
||||
marker?: unknown
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user