@rosen-chains/cardano-graphql-network
v6.0.5
Published
a package to be used as network api provider for @rosen-chains/cardano package
Downloads
241
Readme
@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', // graphql url
'lockAddress', // bridge lock address in Cardano (used in CardanoRosenExtractor)
tokens // bridge supported tokens config, provided by `rosen-bridge/contract`
);
const height = await cardanoGraphQLNetwork.getHeight();