@rosen-clients/ergo-node
v1.2.0
Published
A client library for Ergo Node
Downloads
694
Readme
@rosen-clients/ergo-node
Table of contents
Introduction
@rosen-clients/ergo-node
is an Ergo Node client library. It is created by
latest OpenAPI spec of Ergo Node and is the main client library which powers
Rosen Bridge.
Installation
npm:
npm i @rosen-clients/ergo-node
yarn:
yarn add @rosen-clients/ergo-node
Usage
import ergoNodeClientFactory from '@rosen-clients/ergo-node';
const ergoNodeClient = ergoNodeClientFactory('YOUR_NODE_URL');
// `ergoNodeClient` contains all of the apis categorized by their tag, e.g.
ergoNodeClient.blockchain.getBoxById('SOME_BOX_ID');