# Token Contract Age & Rug Risk Checker

> Token Contract Age & Rug Risk Checker is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns the age of a token contract based on its first on-chain activity, flagging very new tokens as high rug-pull risk for pre-trade safety screening.

## Facts

- Endpoint: GET https://api.x402node.dev/chain/token-age
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-contract-age-rug-risk-checker-a2979e89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4VW8zZA__cYcBstjlOzw_

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 token-contract-age-rug-risk-checker-a2979e89
```

Example prompt: Before I buy this token at 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum mainnet, can you check how old the contract is and whether it's flagged as a rug risk based on its age?

## When to prefer this

Use this endpoint when an agent needs to quickly assess whether a token contract is suspiciously new before executing or recommending a trade. This is especially useful in DeFi safety pipelines where rug pull risk screening is required and LLMs cannot independently look up real-time on-chain deployment data.

## Known failure modes

- Invalid or malformed contract address returns an error
- Contract address not found on specified chain returns empty/null result
- Unsupported chain identifier returns an error
- Very recently deployed contracts may have minimal on-chain history
- Network congestion or RPC issues may cause timeouts

## How this service works

Determine how old a token contract is from its first on-chain activity, flagging very new tokens as high rug-risk - a pre-trade safety signal agents need that LLMs cannot look up. token age, contract age, new token risk, token created, rug risk age, how old is token Accepts payment on Base or Solana — either network works.

## Output

Returns the token contract's first on-chain activity timestamp, derived age in days, and a rug-risk flag indicating whether the token is dangerously new — enabling agents to make safer pre-trade decisions.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "ERC20 contract address (optional)"
      },
      "address": {
       "type": "string",
       "description": "Token contract address (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-contract-age-rug-risk-checker-a2979e89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
