NEAR Protocol API Reference

website·Indexed 40 days ago

https://docs.near.org

Comprehensive documentation for the NEAR RPC API, including endpoints for querying block and chunk details, managing transactions via send_tx, retrieving account and contract state, and accessing network information such as validator status and gas prices.

Tokens
106.7K
Snippets
455
Records
820
Agent score
73%

What's inside NEAR

  1. Overview of the NEAR Indexer framework

    The NEAR Indexer is a micro-framework designed to handle real-time events on the blockchain. It allows developers to capture and index streams of blocks in a customized manner, enabling both high-level data aggregation and low-level introspection of blockchain events. It is particularly useful for dApps that need to access state from smart contracts more efficiently than querying the network RPC.
  2. Overview of NEAR Protocol Validators

    NEAR Protocol uses a Proof-of-Stake (PoS) consensus mechanism where independent participants called validators process transactions and secure the network. Validators are responsible for reaching consensus on valid transactions to prevent double-spending and fund theft. Security is maintained through economic incentives: users delegate NEAR tokens to validators via staking. If a validator is caught performing malicious activity, they are 'slashed,' meaning their stake is burned.
  3. Overview of Omni Bridge Technical Architecture

    Omni Bridge is a cross-chain infrastructure enabling token transfers between NEAR Protocol and other blockchain networks. It utilizes a combination of Multi-Party Computation (MPC), chain-specific light clients, and a permissionless relayer network to balance security and decentralization.
  4. Overview of Liquid Staking on NEAR

    Liquid staking on NEAR uses a smart contract to issue a fungible token representing staked NEAR. Unlike regular staking, which requires a 4-epoch (approx. 24-28 hours) wait to unstake and withdraw, liquid staking allows users to maintain liquidity by swapping the liquid token for NEAR on a DEX or by following the standard unstake/withdraw process. The contract distributes stakes across multiple high-performing validators to reduce the risk of downtime and reward loss, though this may result in a slightly lower average reward rate compared to direct delegation to a single validator.
  5. Overview of NEAR Meta Transaction Relayers

    A meta transaction relayer is a web service that houses a funded NEAR account. It allows users to transact on the NEAR blockchain without owning tokens or paying gas fees. The user signs a transaction (creating a SignedDelegateAction) and sends it to the relayer; the relayer then pays the gas and submits the transaction on-chain. This maintains security because the user still signs the transaction, but the relayer covers the cost.
  6. Overview of NEAR Protocol architecture

    NEAR is a Layer-1, sharded, proof-of-stake blockchain.

    • Layer-1: Serves as the foundational layer that maintains secure and immutable transaction records.
    • Sharded: The network is split into pieces that operate in parallel to increase transaction processing speed and efficiency.
    • Proof-of-Stake (PoS): A consensus mechanism that is more energy-efficient than proof-of-work, where users stake NEAR tokens to secure and run the network.
  7. Overview of the NEAR native token

    The NEAR Protocol utilizes a native token, NEAR (Ⓝ), which serves as the primary utility and governance asset within the ecosystem. It is used for various purposes including network security, transaction fees, and ecosystem operations.
  8. Overview of NEAR Connect wallet connector

    NEAR Connect is a robust, secure, and lightweight wallet connector for the NEAR blockchain. Unlike traditional connectors that bundle all wallet code into a single package, NEAR Connect executes wallet integration code in isolated sandboxed environments (iframes) to reduce supply chain risk. It uses a shared manifest to load wallet code at runtime, ensuring wallets remain up-to-date without requiring package updates. It supports 10+ wallets, including HOT Wallet, Meteor Wallet, Nightly, and WalletConnect, and has zero external dependencies.
  9. Overview of NEAR Lake Indexer

    NEAR Lake is an indexer built on the NEAR Indexer microframework that specializes in storing blockchain events as JSON files in AWS S3 buckets. It operates as a regular NEAR Protocol peer-to-peer node.

    Deprecation Warning: NEAR Lake is deprecated as of March 24, 2026. For new projects, use Neardata, Data APIs, Goldsky, or the Nearcore Indexer.

  10. Overview of Linkdrops (NEP-452)

    Linkdrops follow the NEP-452 standard, allowing developers to distribute assets and onboard users to Web3 applications using simple web links. This is achieved by utilizing access keys and the Keypom platform. The process generally involves generating a key pair, creating a drop on the Keypom contract, and providing the private key to the recipient via a link.
  11. Overview of NEP-621 Tokenized Vaults

    A tokenized vault (NEP-621) is a smart contract that accepts deposits of an underlying NEP-141 compliant fungible token (FT) and issues shares representing proportional ownership of the vault's assets. These shares are also NEP-141 compliant, allowing them to be traded or used as collateral. The standard is inspired by Ethereum's ERC-4626 but adapted for NEAR's asynchronous model, using ft_on_transfer for deposits and mints instead of direct method calls.
  12. Overview of the NEP-452 Linkdrop Standard

    The NEP-452 standard defines the minimum interface and expected behavior for Linkdrop contracts on NEAR. Linkdrops enable the distribution of assets and user onboarding by linking AccessKeys to specific assets. These keys are distributed as web links; when a user visits the link, the associated key is used to call the claim or create_account_and_claim methods on the contract to transfer the assets to the user.