Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
nft-marketplace-cli
Advanced tools
This command-line interface (CLI) tool is designed to interact with an NFT Marketplace contract using the NFTMarketplaceSDK. The CLI allows you to perform various operations such as listing items, buying items, and minting NFTs.
This command-line interface (CLI) tool is designed to interact with an NFT Marketplace contract using the NFTMarketplaceSDK. The CLI allows you to perform various operations such as listing items, buying items, and minting NFTs.
To use this CLI tool, ensure you have Node.js v17.5.0 or greater installed on your machine
You can use the CLI tool without installing it locally by using npx.
npx nft-marketplace-cli
This command uses npx to run the CLI tool directly from the npm package registry.
Alternatively you can install it locally. Cone this repository or download the source code. Navigate to the directory and run:
npm install
This will install all the necessary dependencies required for the CLI tool to function properly.
To start the CLI, navigate to the directory containing the CLI code and run:
node index.js
(local installation)
or
npx nft-marketplace-cli
This will initiate the CLI, and you will be prompted to choose an option from the list. The CLI provides several options for interacting with the NFT marketplace:
Lists all the items available in the NFT marketplace.
Allows you to view a single item by its ID.
Lists all the items that belong to you.
Lists all the items that belong to a specific account. You will need to enter the account address.
Displays all the collections available in the NFT marketplace.
Displays a list of items available for sale. After you select an item, it will be purchased if you are not the owner of the item.
Enables you to mint a new item in the marketplace.
Adds an item to the marketplace from one of your collections. Users need to select a collection and then an item from that collection to add.
Enables you to list an item for sale in the marketplace.
Allows you to make an offer on an item. Displays a list of items for which offers can be made. You need to select an item and enter the amount you want to offer in ETH.
View all the offers you have made.
Accept an offer made for one of your items.
Create a new NFT collection.
View the current balance of the marketplace.
As the marketplace owner, this option allows you to withdraw funds from the marketplace contract.
Exit the CLI tool.
Once you select an option, you may need to enter additional information depending on the operation. Follow the prompts to perform the desired actions.
Contributions are welcome! Feel free to open a pull request or raise an issue if you find any bugs or have suggestions for improvements.
This project is licensed under the MIT License.
FAQs
This command-line interface (CLI) tool is designed to interact with an NFT Marketplace contract using the NFTMarketplaceSDK. The CLI allows you to perform various operations such as listing items, buying items, and minting NFTs.
The npm package nft-marketplace-cli receives a total of 21 weekly downloads. As such, nft-marketplace-cli popularity was classified as not popular.
We found that nft-marketplace-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.