# Solana Token-2022 Extensions Lookup

> Solana Token-2022 Extensions Lookup is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Fetches Token-2022 (Token Extensions Program) metadata and extension flags for a given Solana mint address

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/solana-token-extensions?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-token-2022-extensions-lookup-c7567150
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aLICU66SMr9OT4q1Yi08T

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 solana-token-2022-extensions-lookup-c7567150
```

Example prompt: Can you pull the Token-2022 extension details for the Solana mint 2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo — I want to know if it has a permanent delegate, transfer hook, or any other special extensions enabled?

## When to prefer this

Use this endpoint when you need authoritative on-chain Token-2022 extension data directly from Solana mainnet without requiring an API key or signup. Ideal for agents performing token safety audits, DeFi routing decisions, wallet integrations, or smart contract compatibility checks where knowing exact extension flags (permanent delegate, transfer hooks, transfer fees, freeze state) is critical. Prefer over generic token metadata APIs when you specifically need Token-2022 program details rather than price or market data.

## Known failure modes

- Invalid or malformed mint address (not valid base58 or wrong length) returns an error
- Mint address does not exist on Solana mainnet returns not-found error
- Mint uses legacy SPL Token program rather than Token-2022 — may return empty extensions
- Solana RPC node temporarily unavailable causes timeout or 5xx response
- Network issues between Cloudflare Worker and Solana mainnet may cause transient failures

## How this service works

Solana SPL mint audit from the chain: program (Token or Token-2022), authorities, supply and decimals, plus Token-2022 extensions with risk flags for permanent delegate, transfer hook, transfer fee, default frozen state and mint close. Reads the mint account only; it does not check holders or liquidity.

## Output

Returns a JSON object containing the mint address, token program name (e.g. Token-2022), decimals, total supply, mint authority, freeze authority, the timestamp of the check, the source RPC URL, a list of active extension names, and a flags object with boolean and value fields for each possible extension (transferHook, permanentDelegate, mintCloseAuthority, transferFeeBasisPoints, defaultAccountStateFrozen, transferHookProgram, permanentDelegateAddress).

## 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": [
      "mint"
     ],
     "properties": {
      "mint": {
       "type": "string",
       "description": "Solana mint address (base58, 32 to 44 characters)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mint": "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
  "flags": {
   "transferHook": false,
   "permanentDelegate": true,
   "mintCloseAuthority": true,
   "transferHookProgram": null,
   "transferFeeBasisPoints": 0,
   "permanentDelegateAddress": "2apBGMsS6ti9RyF5TwQTDswXBWskiJP2LD4cUEDqYJjk",
   "defaultAccountStateFrozen": false
  },
  "source": "https://api.mainnet-beta.solana.com",
  "supply": "730901064051690",
  "program": "Token-2022",
  "decimals": 6,
  "checkedAt": "2026-10-23T09:35:54.443Z",
  "extensions": [
   "mintCloseAuthority",
   "permanentDelegate"
  ],
  "mintAuthority": "AxJkHRY3puoofyj7Pn512M1SGBgWroXMkEdNPQypkzbu",
  "freezeAuthority": "2apBGMsS6ti9RyF5TwQTDswXBWskiJP2LD4cUEDqYJjk"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-token-2022-extensions-lookup-c7567150/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
