# NEAR Token Safety

> NEAR Token Safety 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).

Evaluates the safety of a NEP-141 token contract on NEAR by checking full-access keys, owner methods, and pause state, then returns a GO/HOLD/STOP signal plus token metadata and NEAR Intents liquidity/price.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/near-token-safety?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-token-safety-b5759e02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0_K98pxTXa52hegHWk-M2

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-token-safety-b5759e02
```

Example prompt: Before we swap into wrap.near, check the NEAR token safety on it — tell me if it gets a GO, HOLD, or STOP and why, including whether there are any full-access keys or an owner that could rug the contract.

## When to prefer this

Use this endpoint when an AI agent needs to autonomously decide whether to interact with, trade, or accept a NEP-141 token on NEAR Protocol — especially before any swap, bridge, or payment involving an unfamiliar token. It is the right choice when you need a single structured safety verdict (GO/HOLD/STOP) rather than raw on-chain data, and when you want NEAR-specific risk signals like full-access key counts and owner-method control checks alongside market context (liquidity, price) in one call.

## Known failure modes

- Token contract account does not exist → STOP signal returned
- Contract is not NEP-141 compliant → STOP signal returned
- Contract is currently paused → STOP signal returned
- NEAR RPC unavailable or rate-limited → request fails with connectivity error
- Invalid or malformed contract account ID → input validation error
- Token has no NEAR Intents listing → liquidity/price fields absent or null

## How this service works

Before an agent takes a NEP-141 token on NEAR: who can change it? Counts full-access keys that can redeploy the contract, and asks the contract for an owner and a pause switch — issued tokens like USDt keep control through owner methods, not keys. No key and no owner → GO; key- or owner-controlled → HOLD; paused, no contract or not NEP-141 → STOP. Plus name, symbol, supply, and NEAR Intents liquidity and price. Live from the NEAR RPC.

## Output

Returns a safety signal (GO, HOLD, or STOP) with reasoning: count of full-access keys that could redeploy the contract, detected contract owner, pause status, whether the contract is a valid NEP-141 token, plus token name, symbol, total supply, NEAR Intents liquidity, and current price — all sourced live from the NEAR RPC.

## 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": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "NEAR token contract 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-token-safety-b5759e02/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)
