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 2h ago3 sources
1 more source12 pages
Official
Accessing On-chain Data
…er | Track incoming transfers, process receipt outcomes and token events, and maintain a history for reconciliation | | Hosted data API | Look up an account's assets, retrieve tran…
Nov 1, 2026
Official
Tokenized Vaults
Learn how Tokenized Vaults (NEP-621) are defined on NEAR A tokenized vault is a smart contract that accepts deposits of an underly…
Nov 1, 2026
Official
Updating the Frontend
Update the frontend to display the new token information. Now we've updated the contract to include an NFT as a reward and changed the contract such that it ac…
Nov 1, 2026
Official
Do not panic in callbacks
…call failed pending_mints.remove(user) transfer amount NEAR tokens to user panic("mint failed") // [!code --] The panic aborts the callback. The pending mint is restored because it…
Nov 1, 2026
Official
Storage
…ient and secure by requiring smart contract owners to stake tokens based on the amount of data their contracts store. This helps maintain the integrity of the network while providi…
Nov 1, 2026
Official
How Omni Bridge Works
Learn how Omni Bridge uses Chain Signatures to enable cross-chain transfers. The journey toward truly trustless cross-chain communication took a significant leap forward when the N…
Nov 1, 2026
Official
Bidding with FTs
Learn how to enable bidding with fungible tokens To further develop this contract we will introduce another primitive: fungible tokens. Instead of placing bids in…
Nov 1, 2026
Official
Receiving Deposits
…hrough successful, finalized receipt outcomes. For fungible-token deposits, see Fungible Tokens. *** Detecting Deposits Find Incoming Receipts Exchange can query finalized blocks a…
Nov 1, 2026
Official
Transfer Near tokens on behalf of a controlled account
…rguments, request MPC signatures, and broadcast signed NEAR token transfers securely. In this part of the tutorial, we'll dig into how transaction arguments are built, how to reque…
Nov 1, 2026
Official
Balances & Reconciliation
…ck account balances in NEAR protocol, including native NEAR tokens, fungible tokens, and balance management for integrations. Balance changes on accounts can be tracked by using ou…
Nov 1, 2026
Official
Token Drops
Learn how NEAR Drop enables token drops (NEAR, FT, NFT) claimable via private keys. NEAR Drop is a smart contract that allows users to create token …
Nov 1, 2026
Official
Decentralized Autonomous Organizations
Learn about Decentralized Autonomous Organizations (DAOs) on NEAR - self-organized groups that coordinate membership, decision-making, and funding through smart contract voting. De…
Nov 1, 2026
Official
Error Handling
…ees, and refunds before retrying an operation. *** Avoiding Token Loss This document provides an overview of potential scenarios that can lead to token loss on the NEAR Protocol an…
Nov 1, 2026
Official
Validating Recipient Accounts
…ecipient account IDs before sending transactions to prevent token loss. When building an application that lets users send tokens, NFTs, or any other assets to another NEAR account,…
Nov 1, 2026
Official
Basic Auction
…ows 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.…
Nov 1, 2026
Official
Using Linkdrops
Learn about linkdrops following NEP-452 standard - distribute assets and onboard users to Web3 apps through simple web links using access keys and the Keypom platform. Wanting to u…
Nov 1, 2026
Official
NEAR Intents
…o provide the best solution. This works for everything from token swaps to pizza delivery, creating a universal marketplace across crypto and traditional services. > [card] Read In…
Nov 1, 2026
Official
The Standard
…ey_balance (*read-only*) Allows to query the amount of NEAR tokens assigned to a specific linkdrop key theme={"theme":{"light":"github-light","dark":"github-dark"}} get_key_balance…
Nov 1, 2026
Official
Financial Transaction
Financial Transaction Suppose Alice wants to transfer 100 tokens to Bob. In this case we are talking about native Near Protocol tokens, oppose to user-defined tokens implemented …
Nov 4, 2026
Official
Sunsetting a Staking Pool
…ing pool, pause staking, and help delegators withdraw their tokens. If you are a stake pool owner and want to wind down your validator service, follow these steps to ensure delegat…
Nov 1, 2026
Official
NEAR CLI
…he NEAR CLI enables you to create and manage accounts, send tokens such as NEAR, FTs and NFTs, deploy smart contracts, call functions on those contracts, and manage access keys. In…
Nov 1, 2026
Official
Meta Transactions
…, allowing users to execute transactions without owning gas tokens by using relayers to cover transaction fees. NEP-366 introduced the concept of meta transactions to Near Protocol…
Nov 1, 2026
Official
Testing an Integration
…on before enabling mainnet operations. > [!TIP] > > Testnet tokens are free to use and can be easily obtained from the testnet faucet. *** Testnet Setup Generate test accounts usin…
Nov 1, 2026
Official
Tools for AI Agents
…agent has terminal access and needs to query accounts, send tokens, or interact with contracts. > [card] llms.txt > > When you need to provide your agent with a quick reference to …
Nov 1, 2026
Official
A Step-by-Step Guide to Mastering NEAR
…cal bids * Making cross-contract calls * Using Non-Fungible Tokens * Using Fungible Tokens * Modifying a factory contract to deploy your own contracts *** Prerequisites Before star…
Nov 1, 2026
Official
Private Callbacks
…nerable pattern Imagine a contract that stakes and unstakes tokens on behalf of a user: title="Rust: vulnerable flow" theme={"theme":{"light":"github-light","dark":"github-dark"}} …
Nov 1, 2026
Official
Sandbox Testing
…annot test chain interactions - like sending accounts $NEAR tokens - since they need to be processed by the network. *** We use near-sandbox to start a local blockchain and near-ap…
Nov 1, 2026
Official
Production Builds
Reduce contract size and create reproducible builds that users can verify against the deployed code. In this page, we will explore strategies for reducing the size of smart contrac…
Nov 1, 2026
Official
Cross-ContractCall
…"{\"city\": \"Venice\", \"date\": 20191201}", gas: 1000000, tokens: 100, }) ], } Here the public key corresponds to the full access key of alice_near account. All other fields in T…
Nov 4, 2026
Official
What are Web3 Apps?
…ownership of digital assets within their accounts. Fungible Tokens can be used as reward systems, Non-Fungible Tokens can denote holdings, and wallets can represent digital identit…
Nov 1, 2026
Showing 31 to 60 of 119Search all sources →