Archives: Docs

Docs

Creating a Frontend

Login with NEARNow that we have successfully created a contract, it’s time to build a frontend to provide a user-friendly interface for interacting with it. Up until now, we have been using the CLI to send transactions and view the contract’s state. However, frontends offer a more intuitive way for end users to interact with …

Creating a Frontend Read More »

Indexing Historical Data

Login with NEARIn our frontend, we can easily display the previous bid since it’s stored in the contract’s state. However, we’re unable to see previous bids to the auction. An indexer is used to fetch historical data from the blockchain and store it in a database. Since indexers can take a while to set up …

Indexing Historical Data Read More »

Sandbox Testing

Login with NEARIn the previous section, we went through the contract’s code, analyzing how it worked. Now, we need to test it and make sure it works as expected! For contracts, there are two types of testing you can do: unit testing and sandbox testing. Here, we will focus on sandbox testing, as it enables …

Sandbox Testing Read More »

Deploying to Testnet

Login with NEARIn the previous sections, we saw how a simple auction smart contract is implemented, and checked its correctness using sandbox testing. The time has come to release it on the actual blockchain and interact with it! In this section, we will show you how to create a simple testnet account, deploy the contract, …

Deploying to Testnet Read More »

Basic Auction

Login with NEARIn this section, we will analyze a simple auction contract, which allows users to place bids, track the highest bidder and claim tokens at the end of the auction. After, we will cover how to test the contract, as well as how to deploy it on testnet. info Documentation During this tutorial, we …

Basic Auction Read More »

Scroll to Top