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.
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.
To get a list of supported chains:
MetaPath.get_coin_lists();
To get a list of recently listed NFTs:
MetaPath.get_recent_nfts();
To get a list of top NFT collections:
MetaPath.get_top_nfts();
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.
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.
To get details for a specific transaction:
MetaPath.get_trans_detail({
hash: "transaction_hash_here"
});
Replace transaction_hash_here
with the desired transaction hash.
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.