The NEAR Protocol provides a JavaScript API, known as near-api-js, that allows developers to interact with the Smart Contract and perform various operations related to Non-Fungible Tokens (NFTs).
near-api-js
is a complete library to interact with the NEAR blockchain. You can use it in the browser, or in Node.js runtime.
Using near-api-js
, developers can deploy smart contracts , mint new NFTs and transfer ownership of NFTs.
In the NFT kit we are using near-api-js to do interactions with the Near Protocol Blockchain
When developing it's a best practice to create a subaccount and deploy the contract to it. This function allows the subaccount creation and transfering Near token from the main account to use them for gas fees and storage.
Every NFT smart contract should be initialized , here we can deploy it with walt.id default metadata.
For more flexibility we offer a custom metadata initialization to the deployed smart contract.
Finally we mint the non-fungible token with the custom metadata .