> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inkyswap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Capabilities

> Discover the active creation deployment, historical trade deployments, feature flags, and runtime hashes.

Call this before preparing a launch. The response is chain-specific and is not cached for public reuse.

## Query parameters

<ParamField query="chainId" type="number" required>
  `57073` for Ink or `4663` for Robinhood.
</ParamField>

## Key response fields

<ResponseField name="chainId" type="number">
  Resolved chain ID.
</ResponseField>

<ResponseField name="releaseCommit" type="string">
  Application commit that produced this capability registry.
</ResponseField>

<ResponseField name="capabilityRevision" type="number">
  Schema revision for the capability object.
</ResponseField>

<ResponseField name="flags" type="object">
  Current read, create, trade, EOTI, and token-update switches.
</ResponseField>

<ResponseField name="activeCreationDeployment" type="object">
  Active native-quote deployment for new launches. Includes version, hook, ABI family, fee-withdrawal mode, runtime hash, V4 contracts, and start block.
</ResponseField>

<ResponseField name="tradeableDeployments" type="array">
  Active and historical deployments needed to route existing tokens.
</ResponseField>

## Request

```bash theme={null}
curl "https://inkypump.com/api/capabilities?chainId=57073"
```

## Safe use

```ts theme={null}
const response = await fetch(
  "https://inkypump.com/api/capabilities?chainId=57073",
  { cache: "no-store" },
)
if (!response.ok) throw new Error(`Capabilities failed: ${response.status}`)

const data = await response.json()
if (data.chainId !== 57073) throw new Error("Wrong response chain")
if (!data.flags?.create) throw new Error("Creation is disabled")
if (data.activeCreationDeployment?.status !== "active") {
  throw new Error("No active creation deployment")
}

const hook = data.activeCreationDeployment.hook
```

<Warning>
  `activeCreationDeployment` is for new native launches. Existing tokens use their own `hook_address`. xStocks hooks come from `/api/xstocks/quote-assets`, not this field.
</Warning>

Responses send `Cache-Control: private, no-store`. Keep only a short-lived server cache if your application needs one.
