• Creates an extended OgmiosCardanoNode instance :

    • use passed srv service name in order to resolve the port
    • make dealing with fail-overs (re-resolving the port) opaque
    • use exponential backoff retry internally with default timeout and factor
    • intercept 'initialize' operation and handle connection errors on initialization
    • intercept 'eraSummaries', 'systemStart' and 'stakeDistribution' operations and handle connection errors runtime
    • all other operations are bind to pool object without modifications

    Returns

    OgmiosCardanoNode instance

    Parameters

    • dnsResolver: ((serviceName: string) => Promise<SrvRecord>)
        • (serviceName: string): Promise<SrvRecord>
        • Parameters

          • serviceName: string

          Returns Promise<SrvRecord>

    • logger: Logger
    • serviceName: string

    Returns Promise<OgmiosCardanoNode>

Generated using TypeDoc