MAYAChain Class for interacting with MAYAChain. Recommended main class to use for swapping with MAYAChain Has access to Midgard and MAYANode data

Constructors

Properties

mayachainCache: MayachainCache

Methods

  • Get asset decimals

    Parameters

    • asset: Asset

    Returns Promise<number>

    the asset decimals

    Throws

    if the asset is not supported in Mayachain

  • Return the dust crypto amount from the given chain

    Parameters

    • chain: string

      Chain to retrieve the dust amount of

    Returns CryptoAmount

    a map where chain is the key and dust amount cryptoAmount as value

  • Return mayachain supported chains dust amounts

    Returns Record<string, CryptoAmount>

    a map where chain is the key and dust amount cryptoAmount as value

  • Get MAYAname details

    Parameters

    • MAYAName: string

    Returns Promise<undefined | THORNameDetails>

    MAYANames details or undefined it is does not exist

Generated using TypeDoc