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

# Get Token Info

Retrieve detailed token data for a specific contract address via the Codex (Defined.fi) API. Returns price, market cap, liquidity, volume, holder count, buy/sell activity, supply info, and token metadata. Ideal for: token research, portfolio monitoring, due diligence on specific tokens before trading.

![Get Token Info logo](https://ai-icon.b3.fun/logo/codex)
Catalog action Blockchain Data

Retrieve detailed token data for a specific contract address via the Codex (Defined.fi) API. Returns price, market cap, liquidity, volume, holder count, buy/sell activity, supply info, and token metadata. Ideal for: token research, portfolio monitoring, due diligence on specific tokens before trading.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `codex-get-token-info` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `onchain`, `blockchain`, `token`, `analytics`, `market`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | `string` | Yes | Token contract address to look up. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
| `networkId` | `number` | No | Network ID where the token exists. Common values: 1 \(Ethereum\), 8453 \(Base\), 137 \(Polygon\), 42161 \(Arbitrum\), 10 \(Optimism\). Default: 8453 \(Base\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `found` | `boolean` | Yes | Whether the token was found |
| `address` | `string` | No | Token contract address |
| `name` | `string` | No | Token name |
| `symbol` | `string` | No | Token ticker symbol |
| `decimals` | `number` | No | Token decimal places |
| `networkId` | `number` | No | Network ID where the token exists |
| `priceUSD` | `number` | No | Current price in USD |
| `marketCap` | `number` | No | Market capitalization in USD |
| `liquidity` | `number` | No | Total liquidity in USD |
| `volume24` | `number` | No | 24-hour trading volume in USD |
| `change24` | `number` | No | 24-hour price change percentage |
| `holders` | `number` | No | Number of token holders |
| `buyCount24` | `number` | No | Number of buy transactions in 24 hours |
| `sellCount24` | `number` | No | Number of sell transactions in 24 hours |
| `txnCount24` | `number` | No | Total number of transactions in 24 hours |
| `uniqueBuys24` | `number` | No | Number of unique buyers in 24 hours |
| `uniqueSells24` | `number` | No | Number of unique sellers in 24 hours |
| `imageUrl` | `string` | No | Token logo image URL |
| `circulatingSupply` | `string` | No | Circulating supply of the token |
| `totalSupply` | `string` | No | Total supply of the token |

## Examples

**Workflow node**

```json
{
  "type": "codex-get-token-info",
  "payload": {
    "address": "0x0000000000000000000000000000000000000000"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/codex-get-token-info/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "address": "0x0000000000000000000000000000000000000000"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.