Skip to content

Commit 2fc083f

Browse files
committed
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. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 75ae536 commit 2fc083f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/playground-web/src/app/insight/insightBlueprints.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
5959
id: "tokens",
6060
name: "Tokens",
6161
paths: [
62+
{
63+
name: "Get token owners by contract",
64+
path: "/v1/tokens/owners",
65+
deprecated: false,
66+
},
6267
{
6368
name: "Get token transfers by transaction",
6469
path: "/v1/tokens/transfers/transaction/{transaction_hash}",
@@ -126,7 +131,7 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
126131
deprecated: false,
127132
},
128133
{
129-
name: "Get NFTs by owner",
134+
name: "Get NFTs",
130135
path: "/v1/nfts",
131136
deprecated: false,
132137
},

0 commit comments

Comments
 (0)