This project is an NFT (Non-Fungible Token) auction application built on the NEAR Protocol using near-sdk-js
. The application allows users to mint NFTs, view their NFT collection, and participate in NFT auctions by placing bids. Here is the Video Demo
The contract is initialized with the following parameters:
-
owner_id
: The NEAR account ID of the contract owner. -
metadata
: (Optional) Metadata for the NFT auction contract, including specification version, name, and symbol.
-
Function:
nft_mint
-
Purpose: Mint a new NFT and transfer it to the specified recipient.
-
Parameters:
-
token_id
: Unique identifier for the NFT. -
metadata
: Metadata associated with the NFT. -
receiver_id
: NEAR account ID of the recipient.
-
Function:
nft_tokens_for_owner
-
Purpose: Retrieve a list of NFTs owned by a specific account.
-
Parameters:
-
account_id
: NEAR account ID of the owner. -
from_index
: (Optional) Index to start retrieving NFTs from. -
limit
: (Optional) Maximum number of NFTs to retrieve.
-
Function:
make_bid
-
Purpose: Allow users to place bids on NFT auctions.
-
Parameters:
-
auction_id
: Identifier for the NFT auction.
To run the NFT auction app locally, follow these steps:
-
Install Node.js and npm: Node.js Installation
-
Clone the repository:
git clone https://github.com/your-username/nft-auction-app.git
- Navigate to the project directory:
cd nft-auction-app
- Install dependencies:
npm install
-
Create a NEAR account for testing purposes: NEAR Wallet
-
Build and get the
wasm
file:
npm run build
- Deploy:
npm run deploy
- Interact with the deployed contract by calling the exposed functions.