@mayaprotocol/xchain-midgard
v0.4.0
Published
Midgard module that exposes all midgard functions using openapi-generator-cli
Downloads
32
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