@rosen-chains/cardano-koios-network
TypeScript icon, indicating that this package has built-in type declarations

8.0.2 • Public • Published

@rosen-chains/cardano-koio-network

Table of contents

Introduction

@rosen-chains/cardano-koios-network is a package to be used as network api provider for @rosen-chains/cardano package.

Installation

npm:

npm i @rosen-chains/cardano-koios-network

yarn:

yarn add @rosen-chains/cardano-koios-network

Usage

import { CardanoChain } from '@rosen-chains/cardano';
import CardanoKoiosNetwork from '@rosen-chains/cardano-koios-network';

let tokens: RosenTokens;
const cardanoKoiosNetwork = new CardanoKoiosNetwork(
  'https://api.koios.rest/api/v0', // koios api url
  'lockAddress', // bridge lock address in Cardano (used in CardanoRosenExtractor)
  tokens, // bridge supported tokens config, provided by `rosen-bridge/contract`
  loggerFactory('KoiosNetwork') // logger (optional)
);

const height = await cardanoKoiosNetwork.getHeight();

Readme

Keywords

Package Sidebar

Install

npm i @rosen-chains/cardano-koios-network

Weekly Downloads

28

Version

8.0.2

License

GPL-3.0

Unpacked Size

351 kB

Total Files

28

Last publish

Collaborators

  • vorujack
  • arsalanyavari
  • zargarzadehm