UNPKG

@swtc/lib

Version:

websocket access for jingtum blockchain

121 lines (107 loc) 2.32 kB
import { IMarker, IAmount, ICurrencies, IXlib } from "@swtc/transaction" export { ICurrencies, IXlib, IMarker, ICurrency, IAmount, IChainConfig, ISwtcTxOptions, IPaymentTxOptions, IOfferCreateTxOptions, IOfferCancelTxOptions, IContractInitTxOptions, IContractInvokeTxOptions, IContractDeployTxOptions, IContractCallTxOptions, ISignTxOptions, IAccountSetTxOptions, IRelationTxOptions, ISignerListTxOptions, ISignFirstTxOptions, ISignOtherTxOptions, IMultiSigningOptions } from "@swtc/transaction" export interface IRemoteOptions { server?: string server_failover?: string issuer?: string token?: string solidity?: boolean local_sign?: boolean timeout?: number failover?: boolean CURRENCIES?: ICurrencies XLIB?: IXlib } export interface IRequestLedgerOptions { ledger_index?: "validated" | "closed" | "current" | number ledger_hash?: string expand?: boolean transactions?: boolean accounts?: boolean full?: boolean } export interface IRequestAccountOptions { account: string type?: string ledger?: string ledger_index: string | number ledger_hash: string marker?: IMarker peer?: any limit?: string | number } export interface IRequestAccountsOptions { ledger_index?: string | number ledger_hash?: string ledger?: string marker?: IMarker } export interface IRequestTxOptions { hash: string } export interface IRequestAccountInfoOptions { account: string ledger?: string } export interface IRequestAccountTumsOptions { account: string ledger?: string } export interface IRequestAccountRelationsOptions { type: string account: string ledger?: string peer?: string } export interface IRequestAccountOffersOptions { type: string account: string ledger?: string } export interface IRequestAccountTxOptions { type: string account: string ledger_min?: number ledger_max?: number limit?: string | number marker?: IMarker offset?: string | number forward?: boolean } export interface IRequestOrderBookOptions { taker?: string taker_gets?: IAmount taker_pays?: IAmount gets?: IAmount pays?: IAmount limit?: string | number marker?: IMarker } export interface IRequestSignerListOptions { account: string } export interface IRequestBrokerageOptions { account: string }