NEAR RPC (NEAR)
Free public endpoints
NEAR is a sharded proof-of-stake Layer 1 blockchain that runs WebAssembly smart contracts and uses human-readable named accounts controlled by access keys.
Connect to NEAR
Free endpoints for every network below. Tatum Premium covers production traffic.
Connect to NEAR Gateway
Make your first RPC call on NEAR's Blockchain Gateway.
Testnet
Testnet* Rate limit 5 requests per minute, enough for testing and development. Need more? Get a free API key for a higher limit, or upgrade for production.
Get 200 requests/second, priority support and advanced blockchain features.
Global Load Balancer
Route to nearest node
Batch RPC Calls
Multiple requests at once
Archive Nodes
Historical blockchain data
Debug & Trace
Advanced debugging
Advanced Analytics
Usage & performance
Bring Your Own RPC
Custom RPC gateways
Increase your limit and access all network features in Tatum Development Platform.
Smart Contract Tools on NEAR
Deploy, create, and interact with smart contracts on NEAR.
No signup. No paywalls. Just RPC that works. Great ideas come from everywhere.
With love by Tatum
NEAR methods
Every method the NEAR gateway accepts, grouped by interface. 17 in total, read live from the node rather than kept by hand.
Mainnet is the live NEAR network. Every transaction it
accepts is final, and every NEAR balance it
reports is real money.
Testnet answers the same methods on a network funded with tokens that have no market value. Develop there, then change the URL to Mainnet when the code is stable. Nothing else about your integration has to change.
Everything below is served over JSON-RPC. Its endpoint differs per network, and all of them are in the gateway list above.
What sits between you and NEAR
A node is a machine running NEAR with a copy of the chain. Your code cannot ask the chain directly, it asks a node. The gateway picks a healthy one for every call, so you point at one URL instead of one machine.
- One URL, nothing to run or keep patched yourself.
- Calls routed to a node that is up and in sync.
- A failing node is skipped rather than returned to you as an error.
JSON-RPC
17 methodsThe default. Every wallet, library and framework speaks it, and it is what you want unless you specifically need something else.
One POST carries a method name, its parameters and an id, and the response comes back on the same connection carrying that same id. Requests are independent, so there is no session to keep alive and nothing to reconnect, which is why it runs unchanged behind a load balancer or inside a serverless function. Send an array instead of a single object and the node works through the whole batch in one round trip.
Where it fits
- Anything your client library already does for you. Libraries and SDKs for the chain target this.
- Batching reads. One array of twenty calls costs one round trip instead of twenty.
- Stateless and serverless deployments, because nothing has to stay connected between calls.
- Historical queries, by asking for an earlier block or slot where you would otherwise ask for the latest.
Trade-offs
- It cannot push. Finding out that a block landed means polling for it, or moving to WebSocket.
- Wide log queries get refused. Page through in fixed block windows and merge the results yourself.
- Batch responses may come back in any order. Match them on id, never on position.
Enabled and tested methods
Read live from the endpoint, so this is what it actually serves today rather than what the protocol allows in principle. Anything not on this list returns a method-not-found error.
- block
- Returns a block by height or hash.
- chunk
- Returns a chunk, which is the shard-level unit a NEAR block is built from.
- EXPERIMENTAL_changes
- Returns state changes matching a filter. Experimental and subject to change.
- EXPERIMENTAL_changes_in_block
- Returns every state change in a block. Experimental and subject to change.
- EXPERIMENTAL_genesis_config
- Returns the genesis configuration. Experimental and subject to change.
- EXPERIMENTAL_light_client_block_proof
- Returns the proof a light client needs to verify a block against a known head. Experimental and subject to change.
- EXPERIMENTAL_protocol_config
- Returns the protocol configuration at a block. Experimental and subject to change.
- EXPERIMENTAL_receipt
- Returns a receipt by its ID. Experimental and subject to change.
- EXPERIMENTAL_receipt_to_tx
- Returns the transaction that produced a given receipt. Experimental and subject to change.
- EXPERIMENTAL_tx_status
- Returns detailed transaction status including receipts. Experimental and subject to change.
- gas_price
- Returns the gas price at a given block.
- network_info
- Returns information about connected peers and the network.
- query
- Reads account, access key, contract code or contract state.
- send_tx
- Submits a signed transaction to the network.
- status
- Returns node status, including sync state and the latest block.
- tx
- Returns the status of a transaction by hash and sender.
- validators
- Returns the validator set at a given height.
Common JSON-RPC errors
What you are most likely to hit calling this interface, and what to do about it.
- -32700
- Parse error. The request body was not valid JSON. Check that the body is serialised JSON and that Content-Type is application/json.
- -32600
- Invalid request. The JSON parsed, but it is not a well-formed JSON-RPC call. Include jsonrpc, method and id fields. A batch must be a non-empty array.
- -32601
- Method not found. This node does not expose the method you called. Check the spelling and the namespace, and confirm the method is in the list above for this network. Tracing methods in particular are not enabled everywhere.
- -32602
- Invalid params. The method exists but the arguments are wrong. Check argument order and types. Most EVM methods want hex-encoded quantities, and a block parameter such as latest or a hex height.
- -32603
- Internal error. The node failed while handling an otherwise valid request. Retry with backoff. If it persists on one method, it is usually that method rather than the node.
- -32000
- Server error. A catch-all the node uses for execution failures, most often a reverted call or a request over a limit. Read the accompanying message. Execution reverted means your call failed on chain, not in transport. Narrow the block range if you are querying logs.
- HTTP 429
- Rate limited. You have exceeded the free tier request allowance. Back off and retry, batch reads into single calls, or move to a dedicated endpoint for production traffic.
- HTTP 413
- Payload too large. The request body exceeded what the node accepts. Split large batches into smaller ones.
Indexed NEAR Data Insights
Complete on-chain data access, no infrastructure to run yourself. Query wallets, tokens, NFTs, and transaction history through one API.
About NEAR
What it is, and guides for building on it.
NEAR splits state and execution across shards, and transactions produce receipts that execute asynchronously, possibly on other shards in later blocks. Smart contracts compile to WebAssembly, and the NEAR token pays gas and covers storage. Accounts can be named (alice.near), 64-character implicit accounts derived from ed25519 keys, or 0x Ethereum-like accounts, controlled by full-access or function-call access keys. The JSON-RPC API takes a finality value (optimistic, near-final, or final) or a block_id and does not support batch requests.
Frequently Asked Questions
Everything you need to know about NEAR RPC endpoints
Quick Answer: What is NEAR RPC?
RPC (Remote Procedure Call) is the standard way to interact with the network programmatically: reading on-chain data and submitting transactions through the chain's RPC methods. The free tier allows 5 requests per minute with no registration required, which covers most learning and testing workflows. Production applications typically move to Tatum Premium for 200 requests per second.
What is NEAR RPC?
How do I connect to NEAR using these RPC endpoints?
What are the rate limits for the free RPC tier?
Is NEAR RPC free forever?
What happens if I exceed the free tier rate limit?
Are these RPC endpoints secure?
What's the difference between mainnet and testnet RPC endpoints?
How do I troubleshoot RPC connection errors?
Can I use these endpoints in production?
Explore Other Blockchains
Discover RPC endpoints for other popular blockchain networks