From 7e1d3f47b8ab9e74641c31c4c9874099470bdbe2 Mon Sep 17 00:00:00 2001 From: jhjhjh94 Date: Thu, 30 Oct 2025 22:10:49 +0800 Subject: [PATCH 1/2] updated docs --- website/src/pages/ar/token-api/quick-start.mdx | 4 ++-- website/src/pages/cs/token-api/quick-start.mdx | 4 ++-- website/src/pages/de/token-api/quick-start.mdx | 4 ++-- website/src/pages/en/token-api/faq.mdx | 2 +- website/src/pages/en/token-api/quick-start.mdx | 4 ++-- website/src/pages/es/token-api/quick-start.mdx | 4 ++-- website/src/pages/fr/token-api/quick-start.mdx | 4 ++-- website/src/pages/hi/token-api/quick-start.mdx | 4 ++-- website/src/pages/it/token-api/quick-start.mdx | 4 ++-- website/src/pages/ja/token-api/quick-start.mdx | 4 ++-- website/src/pages/ko/token-api/quick-start.mdx | 4 ++-- website/src/pages/mr/token-api/quick-start.mdx | 4 ++-- website/src/pages/nl/token-api/quick-start.mdx | 4 ++-- website/src/pages/pl/token-api/quick-start.mdx | 4 ++-- website/src/pages/pt/token-api/quick-start.mdx | 4 ++-- website/src/pages/ro/token-api/quick-start.mdx | 4 ++-- website/src/pages/ru/token-api/quick-start.mdx | 4 ++-- website/src/pages/sv/token-api/quick-start.mdx | 4 ++-- website/src/pages/tr/token-api/quick-start.mdx | 4 ++-- website/src/pages/uk/token-api/quick-start.mdx | 4 ++-- website/src/pages/ur/token-api/quick-start.mdx | 4 ++-- website/src/pages/vi/token-api/quick-start.mdx | 4 ++-- website/src/pages/zh/token-api/quick-start.mdx | 4 ++-- 23 files changed, 45 insertions(+), 45 deletions(-) diff --git a/website/src/pages/ar/token-api/quick-start.mdx b/website/src/pages/ar/token-api/quick-start.mdx index c5fa07fa9371..ed2b89df1bee 100644 --- a/website/src/pages/ar/token-api/quick-start.mdx +++ b/website/src/pages/ar/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/cs/token-api/quick-start.mdx b/website/src/pages/cs/token-api/quick-start.mdx index 4083154b5a8b..0170f28bf4cc 100644 --- a/website/src/pages/cs/token-api/quick-start.mdx +++ b/website/src/pages/cs/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/de/token-api/quick-start.mdx b/website/src/pages/de/token-api/quick-start.mdx index b84fad5f665a..f67e8d6b59ab 100644 --- a/website/src/pages/de/token-api/quick-start.mdx +++ b/website/src/pages/de/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/en/token-api/faq.mdx b/website/src/pages/en/token-api/faq.mdx index fe0fab25df7d..5f9f065db7bb 100644 --- a/website/src/pages/en/token-api/faq.mdx +++ b/website/src/pages/en/token-api/faq.mdx @@ -104,7 +104,7 @@ We determine a collection’s spam score using a variety of features drawn from ### How can I report an issue with a collection that was incorrectly labeled as spam or not spam? -Reach out on [Discord](https://discord.gg/graphprotocol) in the Token API channel. +Reach out on [Discord](https://discord.gg/graphprotocol) in the [Token API](https://discord.com/channels/438038660412342282/1354235849532903625) channel. ## Advanced Topics diff --git a/website/src/pages/en/token-api/quick-start.mdx b/website/src/pages/en/token-api/quick-start.mdx index 2651dfabb32d..9b3607352636 100644 --- a/website/src/pages/en/token-api/quick-start.mdx +++ b/website/src/pages/en/token-api/quick-start.mdx @@ -43,7 +43,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -87,7 +87,7 @@ A full list of chain support for The Graph services can be found [here](/support If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/es/token-api/quick-start.mdx b/website/src/pages/es/token-api/quick-start.mdx index 8488268e1356..623357f04880 100644 --- a/website/src/pages/es/token-api/quick-start.mdx +++ b/website/src/pages/es/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/fr/token-api/quick-start.mdx b/website/src/pages/fr/token-api/quick-start.mdx index 4a38a878fd7c..9555d2dc836e 100644 --- a/website/src/pages/fr/token-api/quick-start.mdx +++ b/website/src/pages/fr/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/hi/token-api/quick-start.mdx b/website/src/pages/hi/token-api/quick-start.mdx index a381a3c8565c..0bef26d7b315 100644 --- a/website/src/pages/hi/token-api/quick-start.mdx +++ b/website/src/pages/hi/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/it/token-api/quick-start.mdx b/website/src/pages/it/token-api/quick-start.mdx index 4653c3d41ac6..3f25e0d3356d 100644 --- a/website/src/pages/it/token-api/quick-start.mdx +++ b/website/src/pages/it/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/ja/token-api/quick-start.mdx b/website/src/pages/ja/token-api/quick-start.mdx index 0b64515243cb..1131a9cafd5f 100644 --- a/website/src/pages/ja/token-api/quick-start.mdx +++ b/website/src/pages/ja/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/ko/token-api/quick-start.mdx b/website/src/pages/ko/token-api/quick-start.mdx index 4653c3d41ac6..3f25e0d3356d 100644 --- a/website/src/pages/ko/token-api/quick-start.mdx +++ b/website/src/pages/ko/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/mr/token-api/quick-start.mdx b/website/src/pages/mr/token-api/quick-start.mdx index 427bd0f2a59b..689fb78fed94 100644 --- a/website/src/pages/mr/token-api/quick-start.mdx +++ b/website/src/pages/mr/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/nl/token-api/quick-start.mdx b/website/src/pages/nl/token-api/quick-start.mdx index b1b07812ba97..12589d127aaf 100644 --- a/website/src/pages/nl/token-api/quick-start.mdx +++ b/website/src/pages/nl/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/pl/token-api/quick-start.mdx b/website/src/pages/pl/token-api/quick-start.mdx index 05884b06caab..f140529e3f32 100644 --- a/website/src/pages/pl/token-api/quick-start.mdx +++ b/website/src/pages/pl/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/pt/token-api/quick-start.mdx b/website/src/pages/pt/token-api/quick-start.mdx index 32882f96458c..4f0d2c74e872 100644 --- a/website/src/pages/pt/token-api/quick-start.mdx +++ b/website/src/pages/pt/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/ro/token-api/quick-start.mdx b/website/src/pages/ro/token-api/quick-start.mdx index 4653c3d41ac6..3f25e0d3356d 100644 --- a/website/src/pages/ro/token-api/quick-start.mdx +++ b/website/src/pages/ro/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/ru/token-api/quick-start.mdx b/website/src/pages/ru/token-api/quick-start.mdx index a878bea36a20..b1cd63759acb 100644 --- a/website/src/pages/ru/token-api/quick-start.mdx +++ b/website/src/pages/ru/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/sv/token-api/quick-start.mdx b/website/src/pages/sv/token-api/quick-start.mdx index db512ba0d7f8..288f326b1ffd 100644 --- a/website/src/pages/sv/token-api/quick-start.mdx +++ b/website/src/pages/sv/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/tr/token-api/quick-start.mdx b/website/src/pages/tr/token-api/quick-start.mdx index 18629312033a..93b4793ec5e1 100644 --- a/website/src/pages/tr/token-api/quick-start.mdx +++ b/website/src/pages/tr/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/uk/token-api/quick-start.mdx b/website/src/pages/uk/token-api/quick-start.mdx index 69a5a4d298d3..1e57c3297dc2 100644 --- a/website/src/pages/uk/token-api/quick-start.mdx +++ b/website/src/pages/uk/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/ur/token-api/quick-start.mdx b/website/src/pages/ur/token-api/quick-start.mdx index 0efd314e3281..b0cbed9776b0 100644 --- a/website/src/pages/ur/token-api/quick-start.mdx +++ b/website/src/pages/ur/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/vi/token-api/quick-start.mdx b/website/src/pages/vi/token-api/quick-start.mdx index 4a426052097d..560747705774 100644 --- a/website/src/pages/vi/token-api/quick-start.mdx +++ b/website/src/pages/vi/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ Make sure to replace `` with the JWT Token generated from your API key. If the API call fails, try printing out the full response object for additional error details. For example: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() diff --git a/website/src/pages/zh/token-api/quick-start.mdx b/website/src/pages/zh/token-api/quick-start.mdx index f55201103dc4..dab524673487 100644 --- a/website/src/pages/zh/token-api/quick-start.mdx +++ b/website/src/pages/zh/token-api/quick-start.mdx @@ -41,7 +41,7 @@ const options = { }, } -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => response.json()) .then((response) => console.log(response)) .catch((err) => console.error(err)) @@ -69,7 +69,7 @@ curl --request GET \ 如果API调用失败,请尝试打印完整的响应对象以获取额外的错误详细信息。例如: ```js label="index.js" -fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) +fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`) .then((response) => { console.log('Status Code:', response.status) return response.json() From 722821690490d88dcf45ee410a62b0809029c845 Mon Sep 17 00:00:00 2001 From: jhjhjh94 Date: Thu, 30 Oct 2025 22:37:34 +0800 Subject: [PATCH 2/2] fixed outdated endpoint for Quick Start (Using cURL (Command Line) --- website/src/pages/ar/token-api/quick-start.mdx | 2 +- website/src/pages/cs/token-api/quick-start.mdx | 2 +- website/src/pages/de/token-api/quick-start.mdx | 2 +- website/src/pages/en/token-api/quick-start.mdx | 2 +- website/src/pages/es/token-api/quick-start.mdx | 2 +- website/src/pages/fr/token-api/quick-start.mdx | 2 +- website/src/pages/hi/token-api/quick-start.mdx | 2 +- website/src/pages/it/token-api/quick-start.mdx | 2 +- website/src/pages/ja/token-api/quick-start.mdx | 2 +- website/src/pages/ko/token-api/quick-start.mdx | 2 +- website/src/pages/mr/token-api/quick-start.mdx | 2 +- website/src/pages/nl/token-api/quick-start.mdx | 2 +- website/src/pages/pl/token-api/quick-start.mdx | 2 +- website/src/pages/pt/token-api/quick-start.mdx | 2 +- website/src/pages/ro/token-api/quick-start.mdx | 2 +- website/src/pages/ru/token-api/quick-start.mdx | 2 +- website/src/pages/sv/token-api/quick-start.mdx | 2 +- website/src/pages/tr/token-api/quick-start.mdx | 2 +- website/src/pages/uk/token-api/quick-start.mdx | 2 +- website/src/pages/ur/token-api/quick-start.mdx | 2 +- website/src/pages/vi/token-api/quick-start.mdx | 2 +- website/src/pages/zh/token-api/quick-start.mdx | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/website/src/pages/ar/token-api/quick-start.mdx b/website/src/pages/ar/token-api/quick-start.mdx index ed2b89df1bee..67c98fd5d644 100644 --- a/website/src/pages/ar/token-api/quick-start.mdx +++ b/website/src/pages/ar/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/cs/token-api/quick-start.mdx b/website/src/pages/cs/token-api/quick-start.mdx index 0170f28bf4cc..dbf444d1d68a 100644 --- a/website/src/pages/cs/token-api/quick-start.mdx +++ b/website/src/pages/cs/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/de/token-api/quick-start.mdx b/website/src/pages/de/token-api/quick-start.mdx index f67e8d6b59ab..fb439a48ff80 100644 --- a/website/src/pages/de/token-api/quick-start.mdx +++ b/website/src/pages/de/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/en/token-api/quick-start.mdx b/website/src/pages/en/token-api/quick-start.mdx index 9b3607352636..be9ec5c66518 100644 --- a/website/src/pages/en/token-api/quick-start.mdx +++ b/website/src/pages/en/token-api/quick-start.mdx @@ -57,7 +57,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/es/token-api/quick-start.mdx b/website/src/pages/es/token-api/quick-start.mdx index 623357f04880..41d5bace3c07 100644 --- a/website/src/pages/es/token-api/quick-start.mdx +++ b/website/src/pages/es/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/fr/token-api/quick-start.mdx b/website/src/pages/fr/token-api/quick-start.mdx index 9555d2dc836e..76ed894405c6 100644 --- a/website/src/pages/fr/token-api/quick-start.mdx +++ b/website/src/pages/fr/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/hi/token-api/quick-start.mdx b/website/src/pages/hi/token-api/quick-start.mdx index 0bef26d7b315..7afe85e38342 100644 --- a/website/src/pages/hi/token-api/quick-start.mdx +++ b/website/src/pages/hi/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/it/token-api/quick-start.mdx b/website/src/pages/it/token-api/quick-start.mdx index 3f25e0d3356d..d59d0fadfbbd 100644 --- a/website/src/pages/it/token-api/quick-start.mdx +++ b/website/src/pages/it/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/ja/token-api/quick-start.mdx b/website/src/pages/ja/token-api/quick-start.mdx index 1131a9cafd5f..b6f05fffbe40 100644 --- a/website/src/pages/ja/token-api/quick-start.mdx +++ b/website/src/pages/ja/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/ko/token-api/quick-start.mdx b/website/src/pages/ko/token-api/quick-start.mdx index 3f25e0d3356d..d59d0fadfbbd 100644 --- a/website/src/pages/ko/token-api/quick-start.mdx +++ b/website/src/pages/ko/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/mr/token-api/quick-start.mdx b/website/src/pages/mr/token-api/quick-start.mdx index 689fb78fed94..6e10a65b99c4 100644 --- a/website/src/pages/mr/token-api/quick-start.mdx +++ b/website/src/pages/mr/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/nl/token-api/quick-start.mdx b/website/src/pages/nl/token-api/quick-start.mdx index 12589d127aaf..ae048307463e 100644 --- a/website/src/pages/nl/token-api/quick-start.mdx +++ b/website/src/pages/nl/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/pl/token-api/quick-start.mdx b/website/src/pages/pl/token-api/quick-start.mdx index f140529e3f32..ba7606150964 100644 --- a/website/src/pages/pl/token-api/quick-start.mdx +++ b/website/src/pages/pl/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/pt/token-api/quick-start.mdx b/website/src/pages/pt/token-api/quick-start.mdx index 4f0d2c74e872..963ec773a8f7 100644 --- a/website/src/pages/pt/token-api/quick-start.mdx +++ b/website/src/pages/pt/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/ro/token-api/quick-start.mdx b/website/src/pages/ro/token-api/quick-start.mdx index 3f25e0d3356d..d59d0fadfbbd 100644 --- a/website/src/pages/ro/token-api/quick-start.mdx +++ b/website/src/pages/ro/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/ru/token-api/quick-start.mdx b/website/src/pages/ru/token-api/quick-start.mdx index b1cd63759acb..d86c20050e3a 100644 --- a/website/src/pages/ru/token-api/quick-start.mdx +++ b/website/src/pages/ru/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/sv/token-api/quick-start.mdx b/website/src/pages/sv/token-api/quick-start.mdx index 288f326b1ffd..df21ab39cec8 100644 --- a/website/src/pages/sv/token-api/quick-start.mdx +++ b/website/src/pages/sv/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/tr/token-api/quick-start.mdx b/website/src/pages/tr/token-api/quick-start.mdx index 93b4793ec5e1..abe3c6ad76b7 100644 --- a/website/src/pages/tr/token-api/quick-start.mdx +++ b/website/src/pages/tr/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/uk/token-api/quick-start.mdx b/website/src/pages/uk/token-api/quick-start.mdx index 1e57c3297dc2..a6694b9a5bc0 100644 --- a/website/src/pages/uk/token-api/quick-start.mdx +++ b/website/src/pages/uk/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/ur/token-api/quick-start.mdx b/website/src/pages/ur/token-api/quick-start.mdx index b0cbed9776b0..5444e9024188 100644 --- a/website/src/pages/ur/token-api/quick-start.mdx +++ b/website/src/pages/ur/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/vi/token-api/quick-start.mdx b/website/src/pages/vi/token-api/quick-start.mdx index 560747705774..608c62f29601 100644 --- a/website/src/pages/vi/token-api/quick-start.mdx +++ b/website/src/pages/vi/token-api/quick-start.mdx @@ -55,7 +55,7 @@ To make an API request using **cURL**, open your command line and run the follow ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ``` diff --git a/website/src/pages/zh/token-api/quick-start.mdx b/website/src/pages/zh/token-api/quick-start.mdx index dab524673487..2b2466225fc1 100644 --- a/website/src/pages/zh/token-api/quick-start.mdx +++ b/website/src/pages/zh/token-api/quick-start.mdx @@ -55,7 +55,7 @@ fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${ ```curl curl --request GET \ - --url https://token-api.thegraph.com/balances/evm/0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208 \ + --url https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address} \ --header 'Accept: application/json' \ --header 'Authorization: Bearer ' ```