How to use the @liskhq/lisk-client.APIClient.createTestnetAPIClient function in @liskhq/lisk-client

To help you get started, we’ve selected a few @liskhq/lisk-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiskHQ / lisk-mobile / src / utilities / api / lisk / apiClient.js View on Github external
const createLiskAPIClient = () => {
  if (config.isTestnet) {
    return APIClient.createTestnetAPIClient({ node: config.nodeURL });
  }

  return APIClient.createMainnetAPIClient();
};