Skip to content

A lightweight client to consume the litecoin-core RPC interface

License

Notifications You must be signed in to change notification settings

nem0z/litecoin-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Litecoin-RPC

Intro

This module is an update of litecoin-core by @tacyarg

litecoin-rpc is a basic RPC client for litecoin-core (also compatible with bitcoin-core and others...)

It's built using TypeScript and ES modules, meaning you can integrate it in your TS projects. It's also compatible with vanilla JavaScript, and you can use it in your web projects.

Installation

Install using npm:

    npm install litecoin-rpc

Example

    import Client from 'litecoin-rpc';

    const client = Client({
        user: "<user_rpc>"
        password: "<password_rpc>" 
    });

    const block_hash = "344fe7927e6a3723b21ec0ec6b9f31d722ac03d667dd10d209b00047380370bb";

    client.getBlock(block_hash)
        .then(block => console.log("Block retrived :\n", block))
        .catch(console.error);

About

A lightweight client to consume the litecoin-core RPC interface

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published