UNPKG

xdb-digitalbits-sdk

Version:

xdb-digitalbits-sdk is a library for working with the DigitalBits Frontier server.

35 lines (34 loc) 1.44 kB
import { MuxedAccount } from "xdb-digitalbits-base"; import { Frontier } from "./frontier_api"; import { ServerApi } from "./server_api"; export declare class AccountResponse { readonly id: string; readonly paging_token: string; readonly account_id: string; sequence: string; readonly subentry_count: number; readonly home_domain?: string; readonly inflation_destination?: string; readonly last_modified_ledger: number; readonly thresholds: Frontier.AccountThresholds; readonly flags: Frontier.Flags; readonly balances: Frontier.BalanceLine[]; readonly signers: ServerApi.AccountRecordSigners[]; readonly data: (options: { value: string; }) => Promise<{ value: string; }>; readonly data_attr: Record<string, string>; readonly effects: ServerApi.CallCollectionFunction<ServerApi.EffectRecord>; readonly offers: ServerApi.CallCollectionFunction<ServerApi.OfferRecord>; readonly operations: ServerApi.CallCollectionFunction<ServerApi.OperationRecord>; readonly payments: ServerApi.CallCollectionFunction<ServerApi.PaymentOperationRecord>; readonly trades: ServerApi.CallCollectionFunction<ServerApi.TradeRecord>; private readonly _baseAccount; constructor(response: ServerApi.AccountRecord); accountId(): string; sequenceNumber(): string; incrementSequenceNumber(): void; createSubaccount(id: string): MuxedAccount; }