From f115b4d2db0bea5e7364ead504a6aa979d36323b Mon Sep 17 00:00:00 2001 From: iuwqyir Date: Tue, 27 May 2025 17:02:25 +0000 Subject: [PATCH] new tokens route (#7170) ## [Dashboard] Feature: Add new tokens endpoint and deprecate ERC-20 balances endpoint ## Notes for the reviewer This PR adds a new endpoint for getting tokens at `/v1/tokens` and marks the existing ERC-20 balances endpoint (`/v1/tokens/erc20/{ownerAddress}`) as deprecated. ## How to test Verify that the new endpoint is accessible and that the deprecated flag is correctly set for both endpoints in the insight blueprints. ## Summary by CodeRabbit - **New Features** - Introduced a new "Get tokens" endpoint for accessing token data. - **Bug Fixes** - Marked the older ERC-20 balances endpoint as deprecated to guide users toward the updated endpoint. --- apps/playground-web/src/app/insight/insightBlueprints.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/playground-web/src/app/insight/insightBlueprints.ts b/apps/playground-web/src/app/insight/insightBlueprints.ts index 69add9a31fe..d6b99b5c793 100644 --- a/apps/playground-web/src/app/insight/insightBlueprints.ts +++ b/apps/playground-web/src/app/insight/insightBlueprints.ts @@ -77,6 +77,11 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [ { name: "Get ERC-20 balances by address", path: "/v1/tokens/erc20/{ownerAddress}", + deprecated: true, + }, + { + name: "Get tokens", + path: "/v1/tokens", deprecated: false, }, {