Skip to content
by Unity Nodes
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 43m ago3 sources
This week514pages updated upstreamNewestNEAR Agent Market: AgentsNov 4, 2026Official245pages from the official docs

Recently updated

47 pages
ShowingNomicon
OfficialNomicon · GenesisConfig
ExtCostsConfig
ExtCostsConfig base type: Gas Base cost for calling a host function. readmemorybase type: Gas Base cost for guest memory read readmemorybyte type: Gas Cost for guest memory read writememorybase type:
Nov 2, 2026
OfficialNomicon · GenesisConfig › RuntimeFeeConfig
Fee
Fee Costs associated with an object that can only be sent over the network (and executed by the receiver). sendsir Fee for sending an object from the sender to itself, guaranteeing that it does not le
Nov 2, 2026
OfficialNomicon · RuntimeSpec
Function Call
Function Call In this section we provide an explanation how the FunctionCall action execution works, what are the inputs and what are the outputs. Suppose runtime received the following ActionReceipt:
Nov 2, 2026
OfficialNomicon · RuntimeSpec › Components › BindingsSpec
Math API
Math API randomseed ![allow(unused)] fn main() { randomseed(registerid: u64) } Returns random seed that can be used for pseudo-random number generation in deterministic way. Panics • If the size of th
Nov 2, 2026
OfficialNomicon · DataStructures › MerkleProof
Merkle Proofs
Merkle Proofs Many components of NEAR Protocol rely on Merkle root and Merkle proofs. For an array of sha256 hashes, we define its merkle root as: CRYPTOHASHDEFAULT = [0] 32 def combinehash(hash1, has
Nov 2, 2026
OfficialNomicon · RuntimeSpec › Components › BindingsSpec
Miscellaneous API
Miscellaneous API ![allow(unused)] fn main() { valuereturn(valuelen: u64, valueptr: u64) } Sets the blob of data as the return value of the contract. Panics • If valuelen + valueptr exceeds the memory
Nov 2, 2026
OfficialNomicon · RuntimeSpec › Components › BindingsSpec
Promises API
Promises API promisecreate ![allow(unused)] fn main() { promisecreate(accountidlen: u64, accountidptr: u64, methodnamelen: u64, methodnameptr: u64, argumentslen: u64, argumentsptr: u64, amountptr: u64
Nov 2, 2026
OfficialNomicon · RuntimeSpec › Components › BindingsSpec
Registers API
Registers API Registers allow the host function to return the data into a buffer located inside the host oppose to the buffer located on the client. A special operation can be used to copy the content
Nov 2, 2026
OfficialNomicon · NetworkSpec
Routing Table Exchange Algorithm
Routing table exchange algorithm Every node on the network stores its own copy of the Routing Graph . nearcore exchanges this graph in two steps. When a connection is set up, the two nodes do a full s
Nov 2, 2026
OfficialNomicon · RuntimeSpec
Runtime
Runtime Runtime layer is used to execute smart contracts and other actions created by the users and preserve the state between the executions. It can be described from three different angles: going st
Nov 2, 2026
OfficialNomicon · RuntimeSpec
Runtime Specification
Overview This chapter covers the NEAR Protocol runtime specification. Runtime Specification • Account Receipt Storage • Actions • Applying chunk • Components • Runtime Crate • Bindings Specification •
Nov 2, 2026
OfficialNomicon · GenesisConfig
StateRecord
StateRecord type: Enum Enum that describes one of the records in the state storage. Account type: Unnamed struct Record that contains account information for a given account ID. accountid type: Accoun
Nov 2, 2026
OfficialNomicon · DataStructures
Transaction
Transaction See Transactions documentation in the Runtime Specification section.
Nov 2, 2026
OfficialNomicon · RuntimeSpec
Transactions
Transactions A transaction in Near is a list of actions and additional information. There are two versions of a transaction: ![allow(unused)] fn main() { pub enum Transaction { V0(TransactionV0), V1(T
Nov 2, 2026
OfficialNomicon · ChainSpec › Transactions
Transactions in the Blockchain Layer
Transactions in the Blockchain Layer A client creates a transaction, computes the transaction hash and signs this hash to get a signed transaction. Now this signed transaction can be sent to a node. W
Nov 2, 2026
OfficialNomicon · RuntimeSpec › Components › BindingsSpec
Trie API
Trie API Here we provide a specification of trie API. After this NEP is merged, the cases where our current implementation does not follow the specification are considered to be bugs that need to be f
Nov 2, 2026
OfficialNomicon · ChainSpec
Upgradability
Upgradability This part of specification describes specifics of upgrading the protocol, and touches on few different parts of the system. Three different levels of upgradability are: • Updating withou
Nov 2, 2026
Showing 31 to 47 of 47Search all sources →