get_punk_traits
Retrieve detailed trait information for any CryptoPunk, including type, attributes array, and rarity count. Use this tool to analyze individual punk characteristics for research or collection purposes.
Instructions
Get the traits (attributes) for a specific CryptoPunk: type, type name, attributes array, and count. Returns accurate type data for all punk types including Aliens, Apes, and Zombies.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| punk_index | Yes | CryptoPunk index (0–9999) |
Implementation Reference
- src/api.ts:115-117 (handler)The API function that implements the logic to fetch punk traits from the CryptoPunks API.
export async function getPunkTraits(punkId: number) { return get(DATA_BASE, `/api/traits/${punkId}`); }