NEAR - JSON-RPC

JSON-RPC methods supported on NEAR Mainnet and NEAR Testnet through Tatum RPC Gateway, with base URLs and an example request.

Call NEAR JSON-RPC methods through Tatum RPC Gateway. Send an HTTP POST request with a JSON-RPC 2.0 body to the network's base URL, with your API key in the x-api-key header. See Authentication.

Base URLs

NetworkBase URL
NEAR Mainnethttps://near-mainnet.gateway.tatum.io
NEAR Testnethttps://near-testnet.gateway.tatum.io

Example request

curl 'https://near-mainnet.gateway.tatum.io' \
  --header 'content-type: application/json' \
  --header 'x-api-key: {YOUR_API_KEY}' \
  --data '{"jsonrpc":"2.0","method":"status","params":[],"id":1}'

Methods

17 methods. Parameters and responses are described in the NEAR RPC API reference.

MethodDescription
blockReturns a block by height or hash, or the latest block.
chunkReturns a chunk by its hash, or by block and shard ID.
EXPERIMENTAL_changesReturns account, access key, contract code or contract state changes for given accounts.
EXPERIMENTAL_changes_in_blockLists the accounts whose state changed in a given block.
EXPERIMENTAL_genesis_configReturns the genesis configuration of the network.
EXPERIMENTAL_light_client_block_proofReturns a light client proof that a block is part of the chain.
EXPERIMENTAL_protocol_configReturns the protocol configuration at a given block.
EXPERIMENTAL_receiptReturns a receipt by its ID, without its status or execution outcome.
EXPERIMENTAL_receipt_to_txReturns the transaction that produced a given receipt.
EXPERIMENTAL_tx_statusReturns the status of a transaction by hash, including all its receipts.
gas_priceReturns the gas price at a given block height or hash.
network_infoReturns the state of the node's network connections, including active peers.
queryReturns account, access key, contract code or state data, or calls a view function.
send_txSends a signed transaction and waits until the requested execution status.
statusReturns the general status of the node, including sync status, version and validators.
txReturns the status and final result of a transaction by hash.
validatorsReturns the validators and proposals for a given epoch.

The gateway lists its supported methods at runtime:

Method unavailable?

If you need a method we don't support yet, contact support.