{
  "serviceId": "near",
  "displayName": "NEAR JSON-RPC",
  "description": "Read-only JSON-RPC access to NEAR Protocol mainnet, served by the Pocket Network decentralised supplier set. Pay per request in USDC; no account, no API key.",
  "category": "blockchain",
  "resourceUrl": "https://agent.pocket.network/v1/near",
  "priceUsd": "0.005000",
  "priceVersion": 1,
  "rails": [
    {
      "id": "base",
      "network": "eip155:8453",
      "chainId": 8453,
      "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "tokenDecimals": 6,
      "payToAddress": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
    }
  ],
  "protocols": [
    "jsonrpc"
  ],
  "inputSchema": {
    "type": "object",
    "properties": {
      "method": {
        "type": "string",
        "description": "JSON-RPC read method, e.g. query",
        "examples": [
          "EXPERIMENTAL_changes",
          "EXPERIMENTAL_changes_in_block",
          "EXPERIMENTAL_congestion_level",
          "EXPERIMENTAL_genesis_config",
          "EXPERIMENTAL_light_client_block_proof",
          "EXPERIMENTAL_light_client_proof",
          "EXPERIMENTAL_maintenance_windows",
          "EXPERIMENTAL_protocol_config",
          "EXPERIMENTAL_receipt",
          "EXPERIMENTAL_split_storage_info",
          "EXPERIMENTAL_tx_status",
          "EXPERIMENTAL_validators_ordered",
          "block",
          "changes",
          "chunk",
          "client_config",
          "gas_price",
          "genesis_config",
          "health",
          "light_client_proof",
          "maintenance_windows",
          "network_info",
          "next_light_client_block",
          "query",
          "status",
          "tx",
          "validators"
        ]
      },
      "params": {
        "description": "Parameters per the NEAR RPC spec (positional or named)"
      }
    },
    "required": [
      "method"
    ]
  },
  "outputSchema": {
    "type": "object",
    "description": "JSON-RPC 2.0 response envelope. Exactly one of `result` or `error` is present. `result` takes the shape the called method defines per the NEAR RPC specification; NEAR conventionally echoes a string id.",
    "properties": {
      "jsonrpc": {
        "type": "string",
        "description": "The protocol version, always \"2.0\""
      },
      "id": {
        "type": [
          "string",
          "number",
          "null"
        ],
        "description": "The request id, echoed back"
      },
      "result": {
        "description": "The method's result, in the shape the called method defines. Present when the call succeeded; absent when `error` is."
      },
      "error": {
        "type": "object",
        "description": "Present instead of `result` when the call failed",
        "properties": {
          "code": {
            "type": "integer",
            "description": "A JSON-RPC 2.0 error code"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "description": "Method-specific detail, when the node supplies it"
          }
        }
      }
    },
    "examples": [
      {
        "jsonrpc": "2.0",
        "id": "dontcare",
        "result": {
          "gas_price": "100000000"
        }
      }
    ]
  },
  "methods": {
    "EXPERIMENTAL_changes": "read",
    "EXPERIMENTAL_changes_in_block": "read",
    "EXPERIMENTAL_congestion_level": "read",
    "EXPERIMENTAL_genesis_config": "read",
    "EXPERIMENTAL_light_client_block_proof": "read",
    "EXPERIMENTAL_light_client_proof": "read",
    "EXPERIMENTAL_maintenance_windows": "read",
    "EXPERIMENTAL_protocol_config": "read",
    "EXPERIMENTAL_receipt": "read",
    "EXPERIMENTAL_split_storage_info": "read",
    "EXPERIMENTAL_tx_status": "read",
    "EXPERIMENTAL_validators_ordered": "read",
    "block": "read",
    "changes": "read",
    "chunk": "read",
    "client_config": "read",
    "gas_price": "read",
    "genesis_config": "read",
    "health": "read",
    "light_client_proof": "read",
    "maintenance_windows": "read",
    "network_info": "read",
    "next_light_client_block": "read",
    "query": "read",
    "status": "read",
    "tx": "read",
    "validators": "read"
  },
  "firstParty": true,
  "networks": [
    "eip155:8453"
  ],
  "serving": true,
  "page": "https://agent.pocket.network/services/near",
  "descriptor": "https://agent.pocket.network/services/near/descriptor.json"
}