Interface ChainServiceSettings

The settings interface for the BurstService class

interface ChainServiceSettings {
    apiRootUrl?: string;
    httpClient?: Http;
    httpClientOptions?: any;
    nodeHost: string;
    reliableNodeHosts?: string[];
}

Properties

apiRootUrl?: string

The relative path the Signum Node Http API endpoint, default is '/api' - must begin with slash. Usually, you don't use this.

httpClient?: Http

If passed an client instance, it will be used instead of default HttpImpl. Good for testing, but usually you won't need this

httpClientOptions?: any

The options passed to httpClient The default implementation uses axios. In case of a custom client pass your own options. see Axios Configuration

nodeHost: string

The node/peer host url with protocol and port, e.g. https://testnet.signum.fun:443

reliableNodeHosts?: string[]

A list of node/peer hosts that can be chosen of, usually a list of reliable nodes. This is necessary for the automatic node selection.