JSPM

@mayaprotocol/xchain-midgard

0.4.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q19879F
  • License MIT

Midgard module that exposes all midgard functions using openapi-generator-cli

Package Exports

  • @mayaprotocol/xchain-midgard
  • @mayaprotocol/xchain-midgard/lib/index.esm.js
  • @mayaprotocol/xchain-midgard/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mayaprotocol/xchain-midgard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@mayaprotocol/xchain-midgard

Midgard Module for XChainJS Clients

Modules

Midgard module has been created using openapi-generator-cli auto-generation reading from "https://midgard.thorchain.info/v2/swagger.json" This library exposes all the midgard api functions defined in the swagger doc "https://midgard.thorchain.info/v2/swagger.json"

Installation

yarn add @mayaprotocol/xchain-midgard

Examples

Request data from midgardApi

import { MidgardApi } from '@mayaprotocol/xchain-midgard'

const midgardApi = new MidgardApi()
const data = midgardApi.getPool('BTC.BTC') 

Documentation

Midgard Thorchain endpoint Midgard Thorswap endpoint Midgard NineRelms endpoint