AirSwap: Track NFT Contract Addresses with AirSwap CLI

Learn how to use AirSwap CLI to track NFT contract addresses.

What is AirSwap?

AirSwap is a decentralized trading system for transferring digital assets between users and communities. AirSwap utilizes peer-to-peer network infrastructures to facilitate digital asset trading that is secure and efficient. AirSwap offers a CLI tool for tracking contract addresses through local metadata and creating staging environments for transactions.

Read below to learn how to use AirSwap CLI to track NFT contract addresses.

Prerequisites:

1. Download the AirSwap CLI package:

git clone https://github.com/airswap/airswap-cli.git

2. Navigate into the downloaded repository:

cd airswap-cli

3. Install the required packages:

yarn global add airswap

4. Confirm that AirSwap CLI is configured to use the Polygon Mumbai network (chain id 80001):

airswap chain

5. Next, let’s add our NFT’s contract address to the local metadata for AirSwap:

airswap metadata:add

When prompted, enter the following details:

  • Ticker

  • Name

  • Decimals

  • Contract Address

6. Once your NFT contract has been added, you can lookup the local metadata with the command:

airswap metadata:lookup

This returns a link to the Polygon scan website that shows the details of this contract address:

By using this workflow, you can keep track of the contract addresses for your NFTs in a simple CLI interface for quick access or query, which returns the direct link to the PolygonScan website for detailed information on your transaction!

If you have any questions, please join our Discord server, or send us an email at hello@filebase.com

Last updated