LEARN · DOCUMENTATION
Documentation
Pages from 3 sources, kept in sync: the official NEAR documentation, documentation from teams building on NEAR, and readmes from their code. Search all of it, or start from a path below.
514pages
synced 50m ago3 sources
1 more source12 pages
Official
NEAR Data Flow
Learn how data flows in NEAR Protocol, including transactions, receipts, shards, and cross-shard communication. NEAR Protocol blockchain data flow might be a bit tricky at a glance…
Nov 1, 2026
Official
API Libraries
…R accounts 2. Call functions on smart contracts 3. Transfer tokens, including native NEAR, Fungible Tokens, Non-Fungible Tokens 4. Sign transactions/meta-transactions/messages and …
Nov 1, 2026
Official
Reference Contracts
…ref-farming | Rhea finance | DeFi | DEX LP Farming | | Meta Token | Metapool | FT | FT contract | | metapool | Metapool | staking | Liquid staking | | donation | PotLock | FT, dona…
Nov 1, 2026
Official
What is Chain Abstraction?
…fficient cross-chain transfers. The bridge serves as both a token factory and custodian, managing native and bridged tokens through a unified interface *** Why Chain Abstraction Ma…
Nov 1, 2026
Official
Sybil attacks
…que people | Privacy, accessibility, and external trust | | Token-weighted participation | Economic cost proportional to influence | Concentrates influence among large holders | | …
Nov 1, 2026
Official
Types and Interface
Learn how to define your contract's interface and use Rust and SDK types in its inputs, outputs, and state. Smart contracts expose functions so users can interact with them. There …
Nov 1, 2026
Official
Using our Basic Examples
…ntal concepts such as state management, function calls, and token interactions. Each example is designed to be simple and easy to understand, making them perfect for beginners. > […
Nov 1, 2026
Official
NEAR Networks
…et mainnet is for production ready smart contracts and live token transfers. Contracts ready for mainnet should have gone through rigorous testing and independent security reviews …
Nov 1, 2026
Official
Handling NEAR Types
Learn how to handle common data types when interacting with NEAR When calling methods in a contract or receiving results from them, you will need to encode/decode parameters correc…
Nov 1, 2026
Official
Auction factory
Create new auctions through a factory using a shared global contract. Since an auction contract hosts a single auction, each time you would like to host a new auction you will need…
Nov 1, 2026
Official
NEAR Docs
… You can easily create testnet accounts and request testnet tokens to the faucet. create-near-app theme={"theme":{"light":"github-light","dark":"github-dark"}} npx create-near-app@…
Nov 1, 2026
Official
Staking & Delegation
…vailable funds to the delegator's account. See Staking NEAR Tokens for commands and Balances & Reconciliation for account balance queries. *** Validator Participation Anyone can be…
Nov 1, 2026
Official
Deploying to Testnet
…t network behaves exactly as the main network but uses test tokens with no real value *** Testnet Account To deploy a contract, you need a testnet account. If you don't have one, y…
Nov 1, 2026
Official
NEAR Accounts
…unt, users can: 1. Send and receive digital assets (such as tokens or collectibles) 2. Create and interact with on-chain applications known as smart contracts 3. Control accounts i…
Nov 1, 2026
Official
Exchange Integration
…rty | Value / behavior | Reference | | - | - | - | | Native token precision | 24 decimals; 1 NEAR = 10²⁴ yoctoNEAR. RPC balances and transfer amounts use integer strings in yoctoNE…
Nov 1, 2026
Official
Sending Withdrawals
Learn how to create, sign, and send transactions on NEAR protocol, including transaction structure, actions, and best practices for integration. You can send a transfer on NEAR usi…
Nov 1, 2026
Official
Validators
… blockchain. This ensures no one steals funds, double-spend tokens, or manipulates the system. NEAR validators use Proof-of-Stake (PoS), a consensus mechanism that secures the netw…
Nov 1, 2026
Official
Your First Smart Contract
…ws users to place bids, track the highest bidder, and claim tokens at the end of the auction. > [accordion] Prefer an online IDE? > > Want to jump right into the code without setti…
Nov 1, 2026
Official
Data Types
… type Balance = u128 Balance is type for storing amounts of tokens. Gas = u64 Gas is a type for storing amount of gas.
Nov 2, 2026
Official
Global Contracts
…raries: Reusable components for math, string operations, or token interfaces. * DeFi Protocols: Global contracts can anchor DEXs, lending markets, oracles—shared across all applica…
Nov 1, 2026
Official
Transactions
…s units. These gas units are translated into a cost in NEAR tokens, which the user must pay for the transaction to be processed. > [!TIP] > > You can use an Explorer to inspect tra…
Nov 1, 2026
Official
Transfers & Actions
…github-dark"}} use near_sdk::{near, AccountId, Promise, NearToken}; #[near(contract_state)] #[derive(Default)] pub struct Contract { } #[near] impl Contract { pub fn transfer(&self…
Nov 1, 2026
Official
Data APIs
…l assets of an account (including fungible and non-fungible tokens) * Querying the last block produced * Mapping Public Key to Account ID * Mapping Full Access Public Key to Accoun…
Nov 1, 2026
Official
Refunds
… free for the user. The runtime does not charge or burn any tokens to generate or execute them. Their execution outcome still reports gas_burnt, which is the execution fee of an ac…
Nov 4, 2026
Official
Smart contract security checklist
Learn the main security risks in NEAR smart contracts and review them before deployment. Smart contracts handle assets and shared state in an adversarial environment. A secure cont…
Nov 1, 2026
Official
Wallet Login
Enable users to login with their NEAR wallet The @hot-labs/near-connect library provides a secure, zero-dependency wallet connector for NEAR blockchain with a unique sandbox-based …
Nov 1, 2026
Official
Actions
Actions There are a several action types in Near: #![allow(unused)] fn main() { pub enum Action { CreateAccount(CreateAccountAction), DeployContract(DeployContractAction), Function…
Nov 4, 2026
Official
Best Practices
A collection of best practices for writing smart contracts on NEAR. This page provides a collection of best practices for writing smart contracts on NEAR. These practices are desig…
Nov 1, 2026
Official
Environment
Know which account called you, how much gas and tokens were attached, and more. The environment is a set of variables and functions that are available to your smart con…
Nov 1, 2026
Official
Applying chunk
Applying chunk Inputs and outputs Runtime.apply takes following inputs: • trie and current state root • validator_accounts_update • incoming_receipts • transactions and produces fo…
Nov 2, 2026
Showing 61 to 90 of 119Search all sources →