Skip to content

Commit f115b4d

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ export const insightBlueprints: MinimalBlueprintSpec[] = [
7777
{
7878
name: "Get ERC-20 balances by address",
7979
path: "/v1/tokens/erc20/{ownerAddress}",
80+
deprecated: true,
81+
},
82+
{
83+
name: "Get tokens",
84+
path: "/v1/tokens",
8085
deprecated: false,
8186
},
8287
{

0 commit comments

Comments
 (0)