# MetaPath Plugin User Guide - GitHub

By [MetaPath Volunteer](https://paragraph.com/@metapath-volunteer) · 2023-07-30

---

Welcome to the MetaPath Plugin User Guide! This guide will walk you through the functionalities of the MetaPath plugin and how to use them effectively.

### Overview

MetaPath is a powerful tool that allows you to query information related to cryptocurrencies, NFTs, tokens, coins, DeFi, and Web3. With MetaPath, you can retrieve details about supported chains, recently listed NFTs, top NFT collections, NFT assets owned by a user, specific transaction details, and even swap tokens on a specific DEX.

### Table of Contents

1.  Supported Chains
    
2.  NFTs
    
3.  Token Swaps
    
4.  Transaction Details
    

* * *

### 1\. Supported Chains

To get a list of supported chains:

    MetaPath.get_coin_lists();
    

* * *

### 2\. NFTs

#### 2.1 Recently Listed NFTs

To get a list of recently listed NFTs:

    MetaPath.get_recent_nfts();
    

#### 2.2 Top NFT Collections

To get a list of top NFT collections:

#### 2.3 NFT Assets Owned by a User

To get a list of NFT assets owned by a specific user:

    MetaPath.get_nfts_by_user({
      owner: "user_address_here"
    });
    

Replace `user_address_here` with the desired user's address.

* * *

### 3\. Token Swaps

To get a quote for swapping tokens on a specific DEX:

    MetaPath.get_quote_between_two_tokens({
      fromTokenName: "token_name_here",
      toTokenName: "token_name_here",
      fromTokenAmount: "amount_here",
      wallet_address: "receiver_address_here",
      fromTokenChain: "chain_name_here",
      toTokenChain: "chain_name_here"
    });
    

Replace the placeholders with the appropriate values:

*   `token_name_here`: Name of the token.
    
*   `amount_here`: Amount of the token to swap.
    
*   `receiver_address_here`: Address of the receiver.
    
*   `chain_name_here`: Name of the chain.
    

* * *

### 4\. Transaction Details

To get details for a specific transaction:

    MetaPath.get_trans_detail({
      hash: "transaction_hash_here"
    });
    

Replace `transaction_hash_here` with the desired transaction hash.

* * *

### Conclusion

MetaPath offers a comprehensive suite of tools for querying various aspects of the crypto and NFT world. Whether you're looking to explore the latest NFT listings, check transaction details, or swap tokens, MetaPath has you covered. Use this guide as a reference to navigate and make the most of the plugin's functionalities.

---

*Originally published on [MetaPath Volunteer](https://paragraph.com/@metapath-volunteer/metapath-plugin-user-guide-github)*
