From 2fc083f1f29d7225bfb3fa3479ed10dc54c6670b Mon Sep 17 00:00:00 2001 From: iuwqyir Date: Wed, 28 May 2025 23:26:30 +0000 Subject: [PATCH] token owners endpoint in insight playground (#7184) ## [Dashboard] Feature: Update Token and NFT API Endpoints ## Notes for the reviewer This PR adds a new token endpoint and updates the name of an existing NFT endpoint: 1. Added a new endpoint for getting token owners by contract: `/v1/tokens/owners` 2. Renamed the "Get NFTs by owner" endpoint to simply "Get NFTs" to better reflect its functionality ## How to test Verify the updated endpoint names appear correctly in the Insight section of the playground. ## Summary by CodeRabbit - **New Features** - Added a new API endpoint for retrieving token owners by contract. - **Refactor** - Renamed the "Get NFTs by owner" endpoint to "Get NFTs" for improved clarity. --- apps/playground-web/src/app/insight/insightBlueprints.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/playground-web/src/app/insight/insightBlueprints.ts b/apps/playground-web/src/app/insight/insightBlueprints.ts index d6b99b5c793..2c5b3a4b680 100644 --- a/apps/playground-web/src/app/insight/insightBlueprints.ts +++ b/apps/playground-web/src/app/insight/insightBlueprints.ts @@ -59,6 +59,11 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [ id: "tokens", name: "Tokens", paths: [ + { + name: "Get token owners by contract", + path: "/v1/tokens/owners", + deprecated: false, + }, { name: "Get token transfers by transaction", path: "/v1/tokens/transfers/transaction/{transaction_hash}", @@ -126,7 +131,7 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [ deprecated: false, }, { - name: "Get NFTs by owner", + name: "Get NFTs", path: "/v1/nfts", deprecated: false, },