@rosen-chains/cardano-graphql-network
Table of contents
Introduction
@rosen-chains/cardano-graphql-network
is a package to be used as network api provider for @rosen-chains/cardano
package
Installation
npm:
npm i @rosen-chains/cardano-graphql-network
yarn:
yarn add @rosen-chains/cardano-graphql-network
Usage
import CardanoGraphQLNetwork from '@rosen-chains/cardano-graphql-network';
let tokens: RosenTokens;
const cardanoGraphQLNetwork = new CardanoGraphQLNetwork(
'GRAPHQL_URL',
'lockAddress',
tokens
);
const height = await cardanoGraphQLNetwork.getHeight();