UNPKG

@bithomp/xrpl-api

Version:

A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger

45 lines (44 loc) 2.15 kB
import { Connection } from "../connection"; import { AccountObjectType, AccountObjects, AccountNFTObjectsResponse, AccountURITokensObjectsResponse } from "../models/account_object"; import { AccountLinesResponse } from "../models/account_lines"; import { ErrorResponse } from "../models/base_model"; import { LedgerIndex } from "../models/ledger"; export interface GetAccountObjectsOptions { type?: AccountObjectType; ledgerHash?: string; ledgerIndex?: LedgerIndex; limit?: number; marker?: string; connection?: Connection; } export declare function getAccountObjects(account: string, options?: GetAccountObjectsOptions): Promise<AccountObjects | ErrorResponse>; export interface GetAccountAllObjectsOptions extends GetAccountObjectsOptions { timeout?: number; } export declare function getAccountAllObjects(account: string, options?: GetAccountAllObjectsOptions): Promise<AccountObjects | ErrorResponse>; export interface GetAccountLinesObjectsOptions { ledgerHash?: string; ledgerIndex?: LedgerIndex; } export declare function getAccountLinesObjects(account: string, options?: GetAccountLinesObjectsOptions): Promise<AccountLinesResponse | ErrorResponse>; export interface GetAccountNFTOffersObjectsOptions { ledgerHash?: string; ledgerIndex?: LedgerIndex; limit?: number; marker?: string; } export declare function getAccountNFTOffersObjects(account: string, options?: GetAccountNFTOffersObjectsOptions): Promise<AccountNFTObjectsResponse | ErrorResponse>; export interface GetAccountDepositPreauthObjectsOptions { ledgerHash?: string; ledgerIndex?: LedgerIndex; limit?: number; marker?: string; } export declare function getAccountDepositPreauthObjects(account: string, options?: GetAccountDepositPreauthObjectsOptions): Promise<any | ErrorResponse>; export interface GetAccountURITokensObjectsOptions { ledgerHash?: string; ledgerIndex?: LedgerIndex; limit?: number; marker?: string; } export declare function getAccountURITokensObjects(account: string, options?: GetAccountURITokensObjectsOptions): Promise<AccountURITokensObjectsResponse | ErrorResponse>;