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
| Network | Base URL |
|---|---|
| NEAR Mainnet | https://near-mainnet.gateway.tatum.io |
| NEAR Testnet | https://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.
| Method | Description |
|---|---|
block | Returns a block by height or hash, or the latest block. |
chunk | Returns a chunk by its hash, or by block and shard ID. |
EXPERIMENTAL_changes | Returns account, access key, contract code or contract state changes for given accounts. |
EXPERIMENTAL_changes_in_block | Lists the accounts whose state changed in a given block. |
EXPERIMENTAL_genesis_config | Returns the genesis configuration of the network. |
EXPERIMENTAL_light_client_block_proof | Returns a light client proof that a block is part of the chain. |
EXPERIMENTAL_protocol_config | Returns the protocol configuration at a given block. |
EXPERIMENTAL_receipt | Returns a receipt by its ID, without its status or execution outcome. |
EXPERIMENTAL_receipt_to_tx | Returns the transaction that produced a given receipt. |
EXPERIMENTAL_tx_status | Returns the status of a transaction by hash, including all its receipts. |
gas_price | Returns the gas price at a given block height or hash. |
network_info | Returns the state of the node's network connections, including active peers. |
query | Returns account, access key, contract code or state data, or calls a view function. |
send_tx | Sends a signed transaction and waits until the requested execution status. |
status | Returns the general status of the node, including sync status, version and validators. |
tx | Returns the status and final result of a transaction by hash. |
validators | Returns 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.