Mayachain Query
MayachainQuery
MAYAChain Class for interacting with MAYAChain. Recommended main class to use for swapping with MAYAChain Has access to Midgard and MAYANode data
Parameters
mayachainCachean instance of the MayachainCache (could be pointing to stagenet,testnet,mainnet) (optional, defaultnew mayachain_cache_1.MayachainCache())chainAttributesattributes used to calculate waitTime & conf counting
getNetwork
Get the mayachain query is working with
quoteSwap
Quote a swap
Parameters
quoteSwapParamsQuoteSwapParams quote swap input paramsquoteSwapParams.fromAssetquoteSwapParams.destinationAssetquoteSwapParams.amountquoteSwapParams.fromAddressquoteSwapParams.destinationAddressquoteSwapParams.toleranceBpsquoteSwapParams.affiliateBpsquoteSwapParams.affiliateAddressquoteSwapParams.height
Returns QuoteSwap
getDustValues
Return mayachain supported chains dust amounts
Returns any a map where chain is the key and dust amount cryptoAmount as value
getChainDustValue
Return the dust crypto amount from the given chain
Parameters
chainstring Chain to retrieve the dust amount of
Returns any a map where chain is the key and dust amount cryptoAmount as value
getMAYANameDetails
Get MAYAname details
Parameters
MAYANamestring
Returns (MAYANameDetails | undefined) MAYANames details or undefined it is does not exist
getInboundDetails
Get inbound addresses details
Returns any Inbound details
getChainInboundDetails
Get chain inbound address details
Parameters
chain
Returns any Inbound details