Aavegotchi 3D Renderer
Render gotchi assets from token data and renderer batch APIs.
Inputs
- - Accept either
tokenId or inventory URL with id=<tokenId>. - Target Base by default (
chainId=8453).
Outputs
- - Return derived renderer hash.
- Return
/api/renderer/batch HTTP status. - Save raw batch JSON to disk.
- Save
PNG_Full and PNG_Headshot to disk when available. - Return
GLB_3DModel availability and URL when present.
Execute
- 1. Extract
tokenId from direct input or inventory URL. - Query Goldsky Base core subgraph:
https://api.goldsky.com/api/public/project_cmh3flagm0001r4p25foufjtt/subgraphs/aavegotchi-core-base/prod/gn
- 3. Derive hash in renderer format:
<Collateral>-<EyeShape>-<EyeColor>-<Body>-<Face>-<Eyes>-<Head>-<RightHand>-<LeftHand>-<Pet>
- 4. Kick off render with
POST https://www.aavegotchi.com/api/renderer/batch using:
- - INLINECODE11
- INLINECODE12
- INLINECODE13
- 5. Poll
POST /api/renderer/batch with verify: true until availability.exists=true for all requested render types or timeout. - Download
proxyUrls.PNG_Full and proxyUrls.PNG_Headshot only when corresponding availability.exists=true. - Return the hash, kickoff + verify responses, poll summary, and saved artifact paths.
Command
Run the bundled script:
CODEBLOCK0
Or pass an inventory URL:
CODEBLOCK1
Use --out-dir /tmp to control artifact location (default: /tmp).
Optional polling controls:
CODEBLOCK2
Return format
Always return:
- 1. INLINECODE22
- INLINECODE23
- Kickoff status, verify status, and raw JSON paths
- Poll summary (
pollAttempts, pollIntervalMs, renderReady) - INLINECODE27 and
PNG_Headshot output paths (or missing reason) - INLINECODE29 availability and URL when present
Troubleshooting
- - If Goldsky returns no gotchi, verify
tokenId and Base context. - If batch returns hash-format
400, verify eye mappings and right/left wearable order (index4 then index5). - If
availability.exists is false, ensure kickoff used force:true, then keep polling verify:true until timeout. - If endpoint returns
404, verify production deployment state.
Aavegotchi 3D 渲染器
根据代币数据和渲染器批量API渲染gotchi资产。
输入
- - 接受 tokenId 或包含 id= 的库存URL。
- 默认目标链为Base(chainId=8453)。
输出
- - 返回派生的渲染器哈希值。
- 返回 /api/renderer/batch HTTP状态。
- 将原始批量JSON保存到磁盘。
- 在可用时保存 PNGFull 和 PNGHeadshot 到磁盘。
- 当存在时返回 GLB_3DModel 的可用性和URL。
执行
- 1. 从直接输入或库存URL中提取 tokenId。
- 查询Goldsky Base核心子图:
https://api.goldsky.com/api/public/project_cmh3flagm0001r4p25foufjtt/subgraphs/aavegotchi-core-base/prod/gn
- 3. 以渲染器格式派生哈希值:
---------
- 4. 使用以下参数通过 POST https://www.aavegotchi.com/api/renderer/batch 启动渲染:
- - force: true
- verify: false
- renderTypes: [PNGFull, PNGHeadshot, GLB_3DModel]
- 5. 使用 verify: true 轮询 POST /api/renderer/batch,直到所有请求的渲染类型的 availability.exists=true 或超时。
- 仅在对应 availability.exists=true 时下载 proxyUrls.PNGFull 和 proxyUrls.PNGHeadshot。
- 返回哈希值、启动+验证响应、轮询摘要以及保存的产物路径。
命令
运行捆绑脚本:
bash
node scripts/render-gotchi-bypass.mjs --token-id 6741
或传入库存URL:
bash
node scripts/render-gotchi-bypass.mjs \
--inventory-url https://www.aavegotchi.com/u/0x.../inventory?itemType=aavegotchis&chainId=8453&id=6741
使用 --out-dir /tmp 控制产物位置(默认:/tmp)。
可选的轮询控制:
bash
--poll-attempts 18 --poll-interval-ms 10000
返回格式
始终返回:
- 1. tokenId
- hash
- 启动状态、验证状态和原始JSON路径
- 轮询摘要(pollAttempts、pollIntervalMs、renderReady)
- PNGFull 和 PNGHeadshot 输出路径(或缺失原因)
- 当存在时返回 GLB_3DModel 的可用性和URL
故障排除
- - 如果Goldsky未返回gotchi,请验证 tokenId 和Base上下文。
- 如果批量返回哈希格式 400,请验证眼睛映射以及左右可穿戴物品顺序(index4 然后是 index5)。
- 如果 availability.exists 为 false,确保启动时使用了 force:true,然后继续使用 verify:true 轮询直到超时。
- 如果端点返回 404,请验证生产部署状态。