To acquire information from the Near Blockchain, we have incorporated the near-java-api
into our NFTKit. This allows us to effectively interact with the rpc-api
, providing us with the ability to retrieve and process data from the blockchain in a efficient and streamlined manner.
Near Protocol + NFT-Kit Integration Diagramm
The NFT Kit is designed to make the process of creating, managing and transferring NFTs easy and accessible to anyone.
Our NFT kit implements the NEP-171 standard for NFTs on the NEAR Protocol that provides the core functionalities of creating, transferring and managing ownership of unique digital assets .
Creation | Management Controller
One of the main ways we integrate the Near Protocol ecosystem is through the use of the NEAR JavaScript API. This API allows us to interact with the NEAR blockchain and perform a variety of operations such as deploying contracts and minting NFTs. By using the NEAR JavaScript API, we are able to easily and securely interact with the Near Protocol and perform the necessary actions to create and manage NFTs.
Querying NFT information controller
Another way we integrate the Near Protocol ecosystem is through the use of the Near Java API. This is a library that allows for interaction with the NEAR Protocol through the use of the RPC API. This means that we are able to query information from the NEAR blockchain and retrieve data such as NFTs metadata. By using the Near Java API, we are able to easily access the data stored on the Near Protocol and use it within our NFT Kit.
All of these functionalities are exposed through a Rest API in our NFT Kit.
Smart contracts are simple programs that live in a NEAR network. As any modern application, smart contracts store data and expose methods to interact with them.
NEP-171 is the standard for creating and managing NFTs on the NEAR blockchain. It specifies the data structure and smart contract interface for NFTs, allowing developers to create and manage NFTs in a consistent and interoperable way.
The NEAR Pathway utilizes AssemblyScript as the primary programming language for its smart contracts, which are then compiled to WebAssembly (WASM) for execution on the blockchain.
However, NEAR also supports the use of Rust, a language that is particularly well-suited for server applications and has gained popularity for its built-in safety checks and testing infrastructure.
The NEAR team highly recommends the use of Rust for any smart contracts of a financial nature.
which is a framework of how Dapps work
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 .