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
mayachainCache
an instance of the MayachainCache (could be pointing to stagenet,testnet,mainnet) (optional, defaultnew mayachain_cache_1.MayachainCache()
)chainAttributes
attributes used to calculate waitTime & conf counting
getNetwork
Get the mayachain query is working with
quoteSwap
Quote a swap
Parameters
quoteSwapParams
QuoteSwapParams quote swap input paramsquoteSwapParams.fromAsset
quoteSwapParams.destinationAsset
quoteSwapParams.amount
quoteSwapParams.fromAddress
quoteSwapParams.destinationAddress
quoteSwapParams.toleranceBps
quoteSwapParams.affiliateBps
quoteSwapParams.affiliateAddress
quoteSwapParams.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
chain
string 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
MAYAName
string
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