dogechia-api

2.2.4 • Public • Published

dogechia-Api

Software License npm

Usage example

const { readFileSync } = require('fs');
const { Connection, constants, ApiClient } = require('dogechia-api');

(async () => {
  const conn = new Connection('localhost:56669', {
    cert: readFileSync('private_daemon.crt'),
    key: readFileSync('private_daemon.key'),
  });
  conn.onMessage((message) => {
    console.log(message);
  });
  conn.addService(constants.SERVICE().walletUi);
  const fullNode = new ApiClient.FullNode({ connection: conn, origin: 'my-cool-service' });
  await fullNode.init();
  const blockchainState = await fullNode.getBlockchainState();
})();

Donate

Forked From Felixbruckers Hard Work I CopyPasta Modded This All Hard Work Still Done By Felix His Address Are Below:

Changelog

A Changelog can be found here

License

GNU GPLv3 (see LICENSE)

/dogechia-api/

    Package Sidebar

    Install

    npm i dogechia-api

    Weekly Downloads

    2

    Version

    2.2.4

    License

    GPL-3.0

    Unpacked Size

    58.2 kB

    Total Files

    17

    Last publish

    Collaborators

    • peterhammond