Files
xahau.js/src/models/methods/accountObjects.ts
Mayukha Vadari 68ac32fc06 Defines TypeScript types for rippled account method requests & responses (#1498)
* 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
2021-10-04 14:10:07 -04:00

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
}
}