0.4.0 • Published 1 year ago
@mayaprotocol/xchain-midgard v0.4.0
@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
0.4.0
1 year ago