Learning about the advanced concepts of NEAR
In this section, we’ll delve into the advanced concepts of the NEAR blockchain, expanding our understanding of its inner workings and exploring key topics that enable developers to build robust and scalable dApps. We will cover essential concepts such as transactions and gas, data flow, token management, storage optimization, validator networks, and the NEAR SDK.
First, we’ll talk about transactions and gas.
Transactions and gas
Transactions are the fundamental units of activity in the NEAR blockchain. They represent actions performed by accounts, such as transferring tokens, calling contract methods, or updating account data. To execute a transaction, users need to allocate gas, a unit of computation and storage resource, which determines the complexity and cost of the transaction.
Let’s explore a code example of a simple transaction using the NEAR SDK for Rust:
use near_sdk::borsh::{self, BorshDeserialize...