# NEAR Portfolio

> NEAR Portfolio is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-19).

Returns the net worth of a NEAR account in USD, including liquid and staked NEAR plus all NEP-141 token balances supported by NEAR Intents, each individually priced and sorted by value.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/near-portfolio?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/near-portfolio-c2683096
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cxpaugqOs9HnuvKo3f8Nd

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 near-portfolio-c2683096
```

Example prompt: What is the total USD net worth of the NEAR account myaccount.near, including staked NEAR and all token balances like USDC, wNEAR, and bridged ETH?

## When to prefer this

Choose this endpoint when you need a quick, aggregated USD net worth for a NEAR Protocol account that includes both native NEAR (liquid and staked) and the full set of NEP-141 tokens priced by NEAR Intents. It is ideal for portfolio dashboards, pre-trade checks, or fund accounting on NEAR. It is not suitable for Ethereum/EVM wallets, for tokens outside the NEAR Intents-supported list, or when you need raw on-chain token lists without pricing.

## Known failure modes

- Invalid or non-existent NEAR account returns an error or empty portfolio
- NEAR RPC unavailability causes timeout or degraded response
- Tokens not supported by NEAR Intents are silently excluded from the total
- Stale price feeds from NEAR Intents may cause slightly inaccurate USD valuations
- Accounts with no token balances return zero or near-zero totals

## How this service works

Net worth of a NEAR account: its NEAR (liquid and staked) plus balances in every NEP-141 token NEAR Intents routes with a live price — USDC, USDT, wNEAR, bridged BTC and ETH and more — each valued in USD and sorted by value, with the total. Says how many tokens were scanned; tokens outside that list are not included. Live from the NEAR RPC, priced by NEAR Intents.

## Output

Returns a JSON object containing: the queried NEAR account ID, total USD net worth, a sorted list of token holdings (each with token name/symbol, raw and USD-valued balance), count of tokens scanned, and timestamp or source metadata. Liquid and staked NEAR are broken out separately. Only tokens supported by NEAR Intents pricing are included.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "account"
     ],
     "properties": {
      "account": {
       "type": "string",
       "description": "NEAR account"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/near-portfolio-c2683096/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
