# Saylor Innovations Data Desk – NEAR Account Lookup

> Saylor Innovations Data Desk – NEAR Account Lookup is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-02).

Looks up a NEAR blockchain account by ID, returning balance, locked stake, storage cost, available NEAR, contract detection, and full-access key count via a NEAR RPC node.

## Facts

- Endpoint: GET https://saylorinnovations.com/api/explorer/near/account?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-data-desk-near-account-lookup-4bb0d1dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UeaDMZ36XD21TkYyIf3j_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-data-desk-near-account-lookup-4bb0d1dc
```

Example prompt: Can you look up the NEAR account info for alice.near and tell me the total balance, how much is locked in staking, how much is actually available to spend, and whether it has a smart contract deployed?

## When to prefer this

Use this endpoint when you need on-chain NEAR account data — balance, staking state, storage cost, or contract presence — in a single lightweight call without running your own NEAR RPC node. Prefer this over raw RPC calls for agents that need structured JSON output without parsing raw blockchain responses. Ideal for wallets, portfolio trackers, audit tools, and DeFi agents operating on the NEAR Protocol.

## Known failure modes

- Account does not exist on NEAR — returns exists:false with null fields for contract/keys
- Invalid account ID format — malformed account string may result in an error or empty response
- NEAR RPC node unavailability — upstream node downtime causes request failure
- Rate limiting or payment failure — x402 payment required; invalid or missing payment returns 402
- Implicit account with no on-chain state — returns exists:false even for valid 64-hex addresses that have never received NEAR

## How this service works

NEAR account lookup: balance, locked stake, storage cost and available NEAR, contract detection and full-access key count, from a NEAR RPC node.

## Output

A JSON object containing: the chain identifier ('near'), the queried account ID, a boolean indicating whether the account exists, the account kind, balance in NEAR, locked NEAR (staked), available NEAR, storage cost in NEAR, storage usage in bytes, the contract code hash (null if no contract), total access key count, full-access key count, a data source label, and a contextual note about interpreting the result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "account"
     ],
     "properties": {
      "account": {
       "type": "string",
       "description": "the NEAR account id (alice.near) or 64-hex implicit account"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "account",
      "exists",
      "kind",
      "balance_near",
      "note",
      "source"
     ],
     "properties": {
      "kind": {
       "type": "string",
       "description": "Kind of record"
      },
      "note": {
       "type": "string",
       "description": "Caveat or context for reading the result"
      },
      "chain": {
       "type": "string",
       "description": "Blockchain the data is for"
      },
      "exists": {
       "type": "boolean"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "account": {
       "type": "string"
      },
      "code_hash": {
       "type": [
        "string",
        "null"
       ],
       "description": "Code hash"
      },
      "checked_at": {
       "type": "string",
       "description": "Time the check was run (UTC)"
      },
      "locked_near": {
       "type": "number",
       "description": "Locked near"
      },
      "balance_near": {
       "type": "number",
       "description": "Balance near"
      },
      "available_near": {
       "type": "number",
       "description": "Available near"
      },
      "access_key_count": {
       "type": [
        "number",
        "null"
       ],
       "description": "Number of access key"
      },
      "full_access_keys": {
       "type": [
        "number",
        "null"
       ],
       "description": "Full access keys"
      },
      "storage_cost_near": {
       "type": "number",
       "description": "Storage cost near"
      },
      "storage_usage_bytes": 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-data-desk-near-account-lookup-4bb0d1dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
