Files
xahau.js/src/models/methods/accountLines.ts
Mukul Jangid fd78d1edcd refactor: Reimplement sugar functions and clean up (#1559)
* refactor: Reimplement sugar functions and clean up
2021-10-04 14:10:13 -04:00

41 lines
848 B
TypeScript

import { LedgerIndex } from '../common'
import { BaseRequest, BaseResponse } from './baseMethod'
export 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
}
export interface AccountLinesRequest extends BaseRequest {
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
}
}