@xchainjs/xchain-mayamidgard
v0.1.8
Published
Midgard module that exposes all midgard functions used by Mayachain using openapi-generator-cli
Downloads
174
Readme
@xchainjs/xchain-mayamidgard
Mayachain midgard Module for XChainJS Clients
Modules
This library exposes all the midgard api functions defined in the swagger doc "https://midgard.mayachain.info/v2/swagger.json"
Midgard module has been created using openapi-generator-cli auto-generation reading from "https://midgard.mayachain.info/v2/swagger.json".
Installation
yarn add @xchainjs/xchain-mayamidgard
Examples
Request data from midgardApi
import { MidgardApi } from '@xchainjs/xchain-mayamidgard'
// ...
const midgardApi = new MidgardApi()
const data = await midgardApi.getPool('BTC.BTC')
// ...
Documentation
All endpoints documentation can be found under Mayachain midgard docs