Constructors
constructor
new LightClient( GCI: string , options: any , privKey: any , ethConfig?: any ) : LightClient
Parameters
GCI: string
options: any
privKey: any
Optional ethConfig: any
Properties
Private eng
eng: EthEngine
Private Optional ethConfig
ethConfig: any
Private keystore
keystore: any
Private options
options: any
Private privKey
privKey: any
Methods
authenticate
authenticate( privKey: string ) : void
deposit
deposit( token: TOKENS , amount: number ) : Promise < any >
Parameters
token: TOKENS
amount: number
Returns Promise < any >
getActiveOrders
getActiveOrders( all?: boolean , sellToken?: TOKENS , buyToken?: TOKENS ) : Promise < any >
Parameters
Default value all: boolean = false
Optional sellToken: TOKENS
Optional buyToken: TOKENS
Returns Promise < any >
make
make( sellToken: TOKENS , buyToken: TOKENS , sellAmount: number , buyAmount: number ) : Promise < any >
Parameters
sellToken: TOKENS
buyToken: TOKENS
sellAmount: number
buyAmount: number
Returns Promise < any >
recoverAccountAndSignOrder
recoverAccountAndSignOrder( pkey: any , order: any ) : any
recoverAccountAndSignWithdraw
recoverAccountAndSignWithdraw( pkey: any , token: string , amount: number ) : WithdrawDto
Parameters
pkey: any
token: string
amount: number
refreshState
refreshState( path?: string ) : Promise < any >
Parameters
Default value path: string = ""
Returns Promise < any >
Private send
send( data: any ) : Promise < any >
Parameters
Returns Promise < any >
withdraw
withdraw( withdrawToken: TOKENS , amount: number , useLatestState?: boolean ) : Promise < any >
Parameters
withdrawToken: TOKENS
amount: number
Default value useLatestState: boolean = false
Returns Promise < any >
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Authenticate user