General usage
Account balance
Account details
Account state
All access keys
Parse Seed Phrase
View Method
Call Method

CODA plugins tutorials for NEAR protocol in your projects

In this brief overview you will learn general information about using plagins and how you can use them in your projects

▸ Why is it needed?

First of all, it may well be a question - why do we need it? This is the right question because we have moved into a new era of the Internet, which today is called WEB3 - based on blockchain, which includes such concepts as decentralization and token-based economy. Web3 market is already worth trillions, and is expected to 10x by 2030. What does this mean for developers like you?
Massive opportunities, much like those of the iPhone app era and early days of Web2. Web3 needs your skills now.
If you missed the mobile and Web2 revolutions - this is your chance.

Powered by blockchain, Web3 is already more open, fair, and empowering for individual users than Web2 can ever be.
It solves the problems we face in Web2.

How?

By removing the need for trust, and by removing the need for permission.To interact with Web3 applications, all you need is a wallet. This wallet contains your private key, which is used to sign transactions. Those transactions are then checked, confirmed and processed by the blockchain. Blockchains are really just databases, but the crucial difference is they are split across thousands of different nodes, rather than centralized on a few servers. Each node holds a complete copy of all data stored on the blockchain. Once data is verified, accepted, and written to the blockchain, it cannot be altered.

This means blockchains enable secure, peer-to-peer transactions without human intermediaries.It also means anyone with a wallet can program and interact with them.

For this reason we have created the basic elements that you can use today and connect your projects with the NEAR protocol.

▸ What is NEAR?

NEAR is a decentralized application platform that makes blockchain accessible to everyday people who are excited for the future of the Open Web. A web that is more private, more secure, and puts people in control of their money, data, and identity. NEAR’s purpose is to enable community-driven innovation to benefit people around the world.

What makes NEAR special?

1. NEAR is the inevitable evolution of existing platforms

▸ Bitcoin made digital currency a reality, a global transfer of value programmed on a blockchain. Ethereum took it a step further and made it possible to create basic applications leveraging digital currency on blockchains, but has faced issues with scaling and prohibitive fees.
▸ NEAR solves these challenges and finally makes building the Open Web possible by introducing a breakthrough sharding design that creates opportunities for innovation never possible in blockchain before.

2. NEAR is made for the real world

▸ NEAR is the fastest path to market for builders to create blockchain applications that are as easy to use as they are to build. It uses common development patterns and programming languages that are immediately familiar to web developers.
▸ NEAR was built with pragmatism of a Silicon Valley tech startup by engineers who have shipped scalable solutions for the world’s leading technology companies.
▸ NEAR is secure enough for high value assets like Digital Currencies or Identities and performant enough to scale for DeFi or Gaming applications without prohibitively expensive fees or network latency.

3. NEAR is designed to be interoperable

▸ NEAR is designed to work with existing blockchain platforms and is easy for existing applications to migrate to.
▸ NEAR uses the Ethereum Virtual Machine and Web Assembly so that builders can seamlessly swap from Ethereum to NEAR (and back) on the NEAR Rainbow Bridge to leverage the performance, security, and favorable economics of NEAR without having to rebuild their applications or smart contracts.
▸ With NEAR, you don’t have to choose between NEAR and Ethereum or commit to only one blockchain. Interoperability and usability across platforms will be key to the mass adoption of blockchain.

NEAR is the first blockchain platform truly built for the real world. It is a builder's fastest path to market to create blockchain applications that are as easy to use as they are to build. Using NEAR technology you can start building your new projects in the new economy today, and the plugins that we have developed can greatly facilitate your way to WEB3.

Learn more about NEAR 🠒

▸ How the plugins work?

At the moment 7 plugins using basic NEAR functionality have been developed. Further collection will be expanded as the demanded functionality is implemented. Plugins are developed and can be used for projects created on the AppGyver platform.

Plugins are installed from the Marketplace in the form of a page, as well as a database component. All you need to do is install the plugin on a blank page of your project and configure the database. Interaction with the Near protocol is based on the
NAER-API-JS library, using REST API requests, which you can read more about here.

For more details on how to install the plugin separately, you can read by selecting the plugin you are interested in, as well as watch video tutorials.

Authentication Plugin

In this tutorial you'll learn how to install a plugin on your project in CODA. To plug a plugin into your document created in CODA, you will need to follow three simple steps, each of which is very important, follow them in sequence. You can watch the video tutorial for a better understanding.

▸ Step One - Installing the plugin in the document

To install this plugin, you will need to create a document. In which you need to install the table. Create a table with one row and two columns. After creating the table go to the insert menu.

Select Packs from the menu, then enter Near Authentication in the search box and then install the Pack in your account. Then go to the installed Packs and add the button to the first column. That's it at this point the Pack installation is complete. Now go to step two to configure the basic settings.

For a more detailed explanation you can watch the video lesson.

▸ Step Two - Setting basic parameters

For this Pack to work fully, you need to set the basic settings.
To do this, right-click on the installed plugin (button).

▸ In the ACCOUNT ID line, enter the name of the account registered in the Near network to be authorized.
▸ In the NET line, enter the name of the Near protocol network in which the authorization will be used (it can be testnet or mainnet).
▸ In the example document, the default network (testnet) is set.
▸ On the RESULT line, select the second column of your table where the authorization link will be generated. (be careful, this column should have the type - Link)

That's all the Authorization plugin is installed and configured. We turn to step three - using the plugin.

▸ Step Three - Using the plugin

After the basic settings are set, you can now use this plugin. To do this, click on the button "Near Authentication" after which the link will be generated and the globe in the Link column will become active.

Click on the Globe and the authorization process will start. If your account is authorized, you will go directly to the smart contact connection page. If not authorized, you will be prompted by the system to create a new account (you can do this if you do not have an account) or restore an authorized account using the Near tools. After successful authorization you will get to the personal cabinet of your wallet.

▸  Authentication Plugin Video tutorial

Account Balance Plugin  

In this tutorial you'll learn how to install a plugin on your project in CODA. To plug a plugin into your document created in CODA, you will need to follow three simple steps, each of which is very important, follow them in sequence. You can watch the video tutorial for a better understanding.

▸ Step One - Installing the plugin in the document

To install this plugin, you will need to create a document. In which you need to install the table. Create a table with one row and two columns. After creating the table go to the insert menu.

Select Packs from the menu, then enter Near Account Balance in the search box and then install the Pack in your account.

Then go to the installed Packs and add the button to the first column. That's it at this point the Pack installation is complete. Now go to step two to configure the basic settings.

For a more detailed explanation you can watch the video lesson.

▸ Step Two - Setting basic parameters

For this Pack to work fully, you need to set the basic settings.
To do this, right-click on the installed plugin (button).

▸ In the ACCOUNT ID line, enter the name of the account registered in the Near network to be authorized.
On the RESULT line, select the second column of your table where the balance will be displayed after the button is pressed.

That's all the Authorization plugin is installed and configured. We turn to step three - using the plugin.

▸ Step Three - Using the plugin

After setting the basic settings, you can use this plugin. To do this, click on the button "Near account balance", after which a request to the blockchain will be generated and the current account balance will be displayed in the second column.

▸ Account Balance Plugin Video tutorial

Account Details Plugin  

In this tutorial you'll learn how to install a plugin on your project in CODA. To plug a plugin into your document created in CODA, you will need to follow three simple steps, each of which is very important, follow them in sequence. You can watch the video tutorial for a better understanding.

▸ Step One - Installing the plugin in the document

To install this plugin, you will need to create a document. In which you need to install the table. Create a table with one row and two columns. After creating the table go to the insert menu.

Select Packs from the menu, then enter Near Account Details in the search box and then install the Pack in your account.

Then go to the installed Packs and add the button to the first column. That's it at this point the Pack installation is complete. Now go to step two to configure the basic settings.

For a more detailed explanation you can watch the video lesson.

▸ Step Two - Setting basic parameters

For this Pack to work fully, you need to set the basic settings.
To do this, right-click on the installed plugin (button).

▸ In the ACCOUNT ID line, enter the name of the account registered in the Near network to be authorized.
On the RESULT line, select the second column of your table where the balance will be displayed after the button is pressed.

That's all the Authorization plugin is installed and configured. We turn to step three - using the plugin.

▸ Step Three - Using the plugin

After installing the basic settings, you can use this plugin. To do this, click on the "Near account details" button, after which a request to the blockchain will be generated and in the second column information about your account

▸ Account Details Plugin Video tutorial

Account State Plugin  

In this tutorial you'll learn how to install a plugin on your project in CODA. To plug a plugin into your document created in CODA, you will need to follow three simple steps, each of which is very important, follow them in sequence. You can watch the video tutorial for a better understanding.

▸ Step One - Installing the plugin in the document

To install this plugin, you will need to create a document. In which you need to install the table. Create a table with one row and two columns. After creating the table go to the insert menu.

Select Packs from the menu, then enter Near Account State in the search box and then install the Pack in your account.

Then go to the installed Packs and add the button to the first column. That's it at this point the Pack installation is complete. Now go to step two to configure the basic settings.

For a more detailed explanation you can watch the video lesson.

▸ Step Two - Setting basic parameters

For this Pack to work fully, you need to set the basic settings.
To do this, right-click on the installed plugin (button).

▸ In the ACCOUNT ID line, enter the name of the account registered in the Near network to be authorized.
On the RESULT line, select the second column of your table where the balance will be displayed after the button is pressed.

That's all the Authorization plugin is installed and configured. We turn to step three - using the plugin.

▸ Step Three - Using the plugin

After installing the basic settings, you can use this plugin. To do this, click on the "Near account state" button, after which a request to the blockchain will be generated and in the second column information about your account

▸ Account Details Plugin Video tutorial

All Access Keys Plugin  

In this tutorial you'll learn how to install a plugin on your project in CODA. To plug a plugin into your document created in CODA, you will need to follow three simple steps, each of which is very important, follow them in sequence. You can watch the video tutorial for a better understanding.

▸ Step One - Installing the plugin in the document

To install this plugin, you will need to create a document. In which you need to install the table. Create a table with one row and two columns. After creating the table go to the insert menu.

Select Packs from the menu, then enter Near All Access Keys in the search box and then install the Pack in your account.

Then go to the installed Packs and add the button to the first column. That's it at this point the Pack installation is complete. Now go to step two to configure the basic settings.

For a more detailed explanation you can watch the video lesson.

▸ Step Two - Setting basic parameters

For this Pack to work fully, you need to set the basic settings.
To do this, right-click on the installed plugin (button).

▸ In the ACCOUNT ID line, enter the name of the account registered in the Near network to be authorized.
On the RESULT line, select the second column of your table where the balance will be displayed after the button is pressed.

That's all the Authorization plugin is installed and configured. We turn to step three - using the plugin.

▸ Step Three - Using the plugin

After installing the basic settings, you can use this plugin. To do this, click on the "Near all access keys" button, after which a request to the blockchain will be generated and in the second column information about your account

▸ All Access Keys Plugin Video tutorial

Parse Seed Prase Plugin  

In this tutorial you'll learn how to install a plugin on your project in CODA. To plug a plugin into your document created in CODA, you will need to follow three simple steps, each of which is very important, follow them in sequence. You can watch the video tutorial for a better understanding.

▸ Step One - Installing the plugin in the document

To install this plugin, you will need to create a document. In which you need to install the table. Create a table with one row and two columns. After creating the table go to the insert menu.

Select Packs from the menu, then enter Near Parse Seed Phrase in the search box and then install the Pack in your account.

Then go to the installed Packs and add the button to the first column. That's it at this point the Pack installation is complete. Now go to step two to configure the basic settings.

For a more detailed explanation you can watch the video lesson.

▸ Step Two - Setting basic parameters

For this Pack to work fully, you need to set the basic settings.
To do this, right-click on the installed plugin (button).

▸ In the ACCOUNT ID line, enter the name of the account registered in the Near network to be authorized.
▸ In the NET line, enter the name of the Near protocol network in which the authorization will be used (it can be testnet or mainnet).
▸ In the example document, the default network (testnet) is set.
▸ On the RESULT line, select the second column of your table where the secret key and public key will be displayed

That's all the  plugin is installed and configured. We turn to step three - using the plugin.

▸ Step Three - Using the plugin

After installing the basic settings, you can use this plugin. To do this, click on the "Near parse seed phrase" button, after which a request to the blockchain will be generated and in the second column information about your secret ket and public key.

▸ Parse Seed Phrase Plugin Video Tutorial

View Method  Plugin  

In this tutorial you'll learn how to install a plugin on your project in CODA. To plug a plugin into your document created in CODA, you will need to follow three simple steps, each of which is very important, follow them in sequence. You can watch the video tutorial for a better understanding.

▸ Step One - Install Plugin on the page

To install this plugin, you will need to create a document. In which you need to install the table. Create a table with one row and two columns. After creating the table go to the insert menu.

Select Packs from the menu, then enter Near view method in the search box and then install the Pack in your account.

Then go to the installed Packs and add the button to the first column. That's it at this point the Pack installation is complete. Now go to step two to configure the basic settings.

For a more detailed explanation you can watch the video lesson.

▸ Step Two - Setting basic parameters

For full functionality of this package it is necessary to set the basic settings.To do this, right-click on the installed plugin (button).

▸ In the line CONTRACT NAME enter the name of the smart contract to be accessed.

▸ In the line METHOD NAME enter the method name that is specified in the contract for viewing (if you do not know the methods prescribed for the smart contract, use the Get Contract Method Plugin which can be opened by following the link)

▸ On the RESULT line select the second column of your table, which will display the information requested by this method. Let's move on to the third step - using the plugin.

▸ Step Three - Using the plugin

After installing the basic settings, you can use this plugin. To do this, click on the "Near view method" button, and then a request to the blockchain will be generated and the second column will display information according to the viewed method.

▸ View Method Plugin Video Tutorial

▸ Step Two - Building a code snippet

Call Method Plugin  

In this tutorial you'll learn how to install a plugin on your project in CODA. To plug a plugin into your document created in CODA, you will need to follow three simple steps, each of which is very important, follow them in sequence. You can watch the video tutorial for a better understanding.

▸ Step One - Install Plugin on the page

To install this plugin, you will need to create a document. In which you need to install the table. Create a table with one row and two columns. After creating the table go to the insert menu.

Select Packs from the menu, then enter Near call method in the search box and then install the Pack in your account.

Then go to the installed Packs and add the button to the first column. That's it at this point the Pack installation is complete. Now go to step two to configure the basic settings.

For a more detailed explanation you can watch the video lesson.

▸ Step Two - Setting basic parameters

For this Pack to work fully, you need to set the basic settings.
To do this, right-click on the installed plugin (button).

▸ In the CONTRACT NAME line, enter the name of the contract you will connect to (in our example, the smart contract is guest-book.testnet)

▸ In the METHOD NAME line enter the name of the method specified in the contract (if you don't know what methods there are in the smart contract, use the plugin GET CONTRACT METHOD on this link, which will help you define the methods of the smart contract)

▸ In the line PRIVATE KEY enter the key that belongs to the account (to determine the private key, use the plugin NEAR PARSE SEED PHRASE)

▸ In the TEXT CONTENT line, enter any message to be sent to the blockchain and recorded in the database.

▸ In the RESULT column, select the column that will display information about the method transaction.

That's all the  plugin is installed and configured. We turn to step three - using the plugin.

▸ Step Three - Setting basic parameters

Warning. This plugin is built as an example and implements interaction via CALL METHOD with smart contract
guest-book.testnet (for details about contract click the link)

After installing the basic settings, you can use this plugin. To do this, click on the "Near call method" button, and then a request to the blockchain will be generated and the second column will display information according to the call method.

To view the changes made through the calling method, I recommend putting Near View Method which allows you to view the new record in the smart contract.

▸ Call Method Plugin Video Tutorial