NEAR Protocol RPC: Node Metrics (1.0.0)

Retrieve performance metrics and statistics from a NEAR Protocol node

Download OpenAPI description
Languages
Servers
Mainnet
https://rpc.mainnet.fastnear.com/
Testnet
https://rpc.testnet.fastnear.com/

Get node metrics

Request

Retrieves performance metrics and operational statistics from the node

Bodyapplication/jsonrequired
jsonrpcstringrequired
Value"2.0"
idstringrequired
Example: "fastnear"
methodstringrequired
Value"metrics"
paramsArray of arrays<= 0 itemsrequired

Empty array as this method takes no parameters

curl -i -X POST \
  https://rpc.mainnet.fastnear.com/ \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": "fastnear",
    "method": "metrics",
    "params": []
  }'

Responses

Successful response

Bodyapplication/json
jsonrpcstringrequired
Value"2.0"
idstring or numberrequired
One of:
string
resultobject

Detailed metrics on node performance, resource usage, and operational statistics

errorobject
Response
application/json
{ "jsonrpc": "2.0", "id": "string", "result": {}, "error": { "code": 0, "message": "string", "data": {} } }