1.2.0 • Published 10 months ago

@rosen-clients/ergo-node v1.2.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
10 months ago

@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');