mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-04-29 15:37:50 +00:00
* account_channels * account_currencies * account_info * account_lines * account_objects * account_offers * account_tx * gateway_balances * no ripple check * respond to comments * export methods * fix typos * respond to comments * edit BaseResponse to be more specific
29 lines
882 B
TypeScript
29 lines
882 B
TypeScript
import { BaseRequest, BaseResponse } from './baseMethod'
|
|
import { AccountObjectType, LedgerIndex } from "../common"
|
|
import { Check, DepositPreauth, Escrow, Offer, PayChannel, RippleState, SignerList, Ticket } from "../ledger"
|
|
|
|
export interface AccountObjectsRequest extends BaseRequest {
|
|
command: "account_objects"
|
|
account: string
|
|
type?: AccountObjectType
|
|
deletion_blockers_only?: boolean
|
|
ledger_hash?: string
|
|
ledger_index?: LedgerIndex
|
|
limit?: number
|
|
marker?: any
|
|
}
|
|
|
|
type AccountObject = Check | DepositPreauth | Escrow | Offer | PayChannel | SignerList | Ticket | RippleState
|
|
|
|
export interface AccountObjectsResponse extends BaseResponse {
|
|
result: {
|
|
account: string
|
|
account_objects: AccountObject[]
|
|
ledger_hash?: string
|
|
ledger_index?: number
|
|
ledger_current_index?: number
|
|
limit?: number
|
|
marker?: string
|
|
validated?: boolean
|
|
}
|
|
} |