1.1.0 • Published 3 years ago
litecoin-core v1.1.0
Litecoin-Core
Installation
Install the package via yarn:
yarn add litecoin-coreor via npm:
Install the package via npm:
npm install litecoin-core --saveUsage
Client(...args)
Arguments
[host=localhost](string): The host to connect to.[port=[network]](string): The RPC server port.[network=mainnet](string): The network[username](string): The RPC server user name.[password](string): The RPC server user password.[timeout=30000](number): How long until the request times out (ms).
Examples
Using network mode
The network will automatically determine the port to connect to, just like the litecoind and litecoin-cli commands.
const Client = require('litecoin-core');
const client = new Client({ network: 'regtest' });Setting a custom port
const client = new Client({ port: 32777 });