Constructors
constructor
Parameters
network: Network = Network.production
Optional options: Options
Properties
Private axios
axios: AxiosInstance
Optional name
name?: string
Optional userAgent
userAgent?: string
Accessors
account
- get account(): AccountFromAddressFn
Returns AccountFromAddressFn
block
- get block(): BlockFromHeightOrHashFn
Returns BlockFromHeightOrHashFn
challenges
- get challenges(): default
Private clientOptions
- get clientOptions(): undefined | AxiosRequestConfig
Returns undefined | AxiosRequestConfig
hotspot
- get hotspot(): HotspotFromAddressFn
Returns HotspotFromAddressFn
pendingTransactions
- get pendingTransactions(): default
stateChannels
- get stateChannels(): default
transactions
- get transactions(): default
validator
- get validator(): ValidatorFromAddressFn
Returns ValidatorFromAddressFn
validators
- get validators(): default
Methods
get
- get(path: string, params?: Object): Promise<AxiosResponse<any>>
Parameters
path: string
params: Object = {}
Returns Promise<AxiosResponse<any>>
post
- post(path: string, params?: Object): Promise<AxiosResponse<any>>
Parameters
path: string
params: Object = {}
Returns Promise<AxiosResponse<any>>