XchainJS
  • Overview
  • Installation
  • Examples instructions
  • Clients
    • xchain-evm
      • xchain-avax
        • How to Use
      • xchain-arbitrum
        • How to Use
      • xchain-bsc
        • How to Use
      • xchain-ethereum
        • How to Use
    • xchain-utxo
      • xchain-bitcoin
        • How to use
      • xchain-bitcoincash
        • How to Use
      • xchain-dash
      • xchain-doge
        • How to Use
      • xchain-litecoin
        • How to Use
    • xchain-cosmos-sdk
      • xchain-cosmos
        • How to Use
      • xchain-kujira
        • How to Use
      • xchain-mayachain
        • How to Use
      • xchain-thorchain
        • How to Use
    • xchain-binance
      • How to Use
    • xchain-solana
      • How to use
      • Examples
        • Generate address
        • Get balances
        • Get token balance
        • Prepare transaction
        • Make transaction
        • Make token transaction
  • Wallet
  • Protocols
    • THORChain
      • xchain-thorchain-amm
        • How to Use
        • Make swap using THORChain
        • Handle liquidity and savers
        • Open and close loans
      • xchain-thorchain-query
        • How to Use
        • Check transaction status
        • Estimate a swap
      • xchain-midgard
        • How to Use
      • xchain-thornode
        • How to Use
      • xchain-midgard-query
        • How to Use
    • MAYAProtocol
      • xchain-mayachain-amm
        • How to Use
        • Make swap using MAYAChain
      • xchain-mayachain-query
        • How to Use
      • xchain-mayamidgard
        • How to Use
      • xchain-mayanode
        • How to Use
      • xchain-mayamidgard-query
        • How to Use
  • Aggregator
  • Providers
    • xchain-utxo-providers
      • How it Works
    • xchain-evm-providers
      • How it Works
  • Others
    • xchain-crypto
      • How it Works
      • How to Use
    • xchain-util
      • How it Works
      • How to Use
  • Contributors
  • Documentation maintenance
Powered by GitBook
On this page
  1. Protocols

THORChain

The packages listed here are to support interaction with the THORChain protocol:

  1. xchain-thorchain-amm:

    • Functions in this module include adding liquidity to pools, swapping assets, calculating prices, providing liquidity, and opening loans.

  2. xchain-thorchain-query:

    • This module offers querying capabilities for various data related to the THORChain protocol.

    • It provides APIs or functions to retrieve information such as transaction details, pool information, asset balances, and more.

    • Querying modules are essential for accessing on-chain data for analysis, monitoring, or integration with external applications.

  3. xchain-midgard:

    • Midgard is THORChain's middleware layer, providing a set of APIs to interact with the THORChain protocol.

    • This module likely provides utilities and functions for interacting with the Midgard API, allowing developers to fetch data from THORChain.

    • Functions may include fetching pool data, asset information, transaction details, and more.

  4. xchain-thornode:

    • The Thornode module is likely responsible for interacting directly with THORChain nodes.

    • It provides functionalities to communicate with THORChain nodes for tasks such as submitting transactions, querying node information, managing validator nodes, and participating in consensus.

  5. xchain-midgard-query:

    • Similar to the xchain-thorchain-query module, this module likely provides querying capabilities specifically tailored to the Midgard API.

    • It offers functions or utilities to retrieve data from Midgard's APIs, including pool information, liquidity metrics, transaction details, and more.

PreviousProtocolsNextxchain-thorchain-amm

Last updated 1 year ago