1.1.1 • Published 23 days ago

@rosen-clients/ergo-explorer v1.1.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
23 days ago

@rosen-clients/ergo-explorer

Table of contents

Introduction

@rosen-clients/ergo-explorer is an Ergo Explorer client library. It is created by latest OpenAPI spec of Ergo Explorer and is the main client library which powers Rosen Bridge.

Installation

npm:

npm i @rosen-clients/ergo-explorer

yarn:

yarn add @rosen-clients/ergo-explorer

Usage

import ergoExplorerClientFactory from '@rosen-clients/ergo-explorer';

const ergoExplorerClient = ergoExplorerClientFactory('YOUR_EXPLORER_URL');

// `ergoExplorerClient` contains all of the apis categorized by their tag, e.g.
ergoExplorerClient.v0.getApiV0BlocksP1('SOME_BLOCK_HASH');
ergoExplorerClient.v1.getApiV1BoxesByaddressP1('SOME_ADDRESS');