Creates Service instance
The settings for the service
Requests a query to the configured chain node
The method according https://europe.signum.network/api-doc/
A JSON object which will be mapped to url params
Optional
options: anyThe optional request configuration for the passed Http client (default is AxiosRequestConfig )
The response data of success
Selects the fastest responding host from the configured reliable node hosts.
An optional flag to set automatic reconfiguration. Default is false
Attention: Reconfiguration works only, if you use the default http client. Otherwise, you need to reconfigure manually!
The optional amount of time in milliseconds to check. Default is 10_000
The optional API method to be called. This applies only for GET methods. Default is getBlockchainStatus
Promise resolving to the selected host
Send data to chain node
The method according https://europe.signum.network/api-doc/. Note that there are only a few POST methods
A JSON object which will be mapped to url params
Optional
body: objectAn object with key value pairs to submit as post body
Optional
options: anyThe optional request configuration for the passed Http client (default is AxiosRequestConfig )
The response data of success
Generic Chain Service class.
This class can be used to call the chain api directly, in case a function is not supported yet by SignumJS. Usually, you won't need to do it.