@signumjs/core
Version:
Principal package with functions and models for building Signum Network applications.
25 lines • 727 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LedgerClientFactory = void 0;
const api_1 = require("../api");
/**
* Factory for the ledger clients to access a nodes API
* ```ts
* const signumClient = LedgerClientFactory.createClient({nodeHost: "https://europe.signum.network"});
* ```
*
* The client gives you access to the Signum {@link Api}
*
*/
class LedgerClientFactory {
/**
* Creates a ledger client instance
*
* @param settings The settings for the ledger
*/
static createClient(settings) {
return (0, api_1.composeApi)(settings);
}
}
exports.LedgerClientFactory = LedgerClientFactory;
//# sourceMappingURL=ledgerClientFactory.js.map