From 1a69417afa94e6ef1e0cc1a41e353a326ebd21d1 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Wed, 25 Feb 2026 16:13:59 -0500 Subject: [PATCH] Fix API reference examples to use correct camelCase properties MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only three fields actually have camelCase converters in the SDK: - collection.totalSupply (via collectionFromJSON) - account.profileImageUrl (via accountFromJSON) - token.usdPrice (via paymentTokenFromJSON) Other fields (nft.image_url, contract.contract_standard, stats.total.floor_price, event.event_timestamp) are returned as-is from the API without conversion. Based on #1911 by @pineapplepeak — corrected to only fix the fields that actually have camelCase converters. Co-Authored-By: Claude Opus 4.6 --- developerDocs/api-reference.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/developerDocs/api-reference.md b/developerDocs/api-reference.md index 743c54ef1..33d3d595a 100644 --- a/developerDocs/api-reference.md +++ b/developerDocs/api-reference.md @@ -206,7 +206,7 @@ Fetch detailed information about a single collection including fees, traits, and const collection = await openseaSDK.api.getCollection("boredapeyachtclub"); console.log(collection.name); -console.log(collection.total_supply); +console.log(collection.totalSupply); console.log(collection.fees); ``` @@ -888,7 +888,7 @@ const account = await openseaSDK.api.getAccount( console.log(account.address); console.log(account.username); -console.log(account.profile_image_url); +console.log(account.profileImageUrl); ``` **Parameters:** @@ -913,7 +913,7 @@ const token = await openseaSDK.api.getPaymentToken( console.log(token.symbol); // "WETH" console.log(token.decimals); // 18 -console.log(token.usd_price); // Current USD price +console.log(token.usdPrice); // Current USD price ``` **Parameters:**