Interface LedgerSettings

The LedgerSettings to use for LedgerClientFactory

interface LedgerSettings {
    httpClient?: Http;
    httpOptions?: any;
    nodeHost: string;
    reliableNodeHosts?: string[];
}

Properties

httpClient?: Http

A custom http client implementation. Default is based on axios

httpOptions?: any

Additional global options for the http client. Default client is axios, see its options here: see Axios Configuration

nodeHost: string

Url to the API endpoint of the node, i.e. https://brazil.signum.network or http://localhost:8125

reliableNodeHosts?: string[]

A list of node Urls, which can be considered reliable. If you set this list, those nodes are used as automatic fallback in case of request issues.