diff --git a/website/src/pages/ar/token-api/quick-start.mdx b/website/src/pages/ar/token-api/quick-start.mdx index c5fa07fa9371..67c98fd5d644 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)) @@ -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 ' ``` @@ -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..dbf444d1d68a 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)) @@ -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 ' ``` @@ -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..fb439a48ff80 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)) @@ -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 ' ``` @@ -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..be9ec5c66518 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)) @@ -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 ' ``` @@ -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..41d5bace3c07 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)) @@ -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 ' ``` @@ -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..76ed894405c6 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)) @@ -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 ' ``` @@ -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..7afe85e38342 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)) @@ -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 ' ``` @@ -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..d59d0fadfbbd 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)) @@ -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 ' ``` @@ -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..b6f05fffbe40 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)) @@ -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 ' ``` @@ -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..d59d0fadfbbd 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)) @@ -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 ' ``` @@ -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..6e10a65b99c4 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)) @@ -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 ' ``` @@ -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..ae048307463e 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)) @@ -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 ' ``` @@ -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..ba7606150964 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)) @@ -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 ' ``` @@ -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..963ec773a8f7 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)) @@ -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 ' ``` @@ -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..d59d0fadfbbd 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)) @@ -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 ' ``` @@ -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..d86c20050e3a 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)) @@ -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 ' ``` @@ -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..df21ab39cec8 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)) @@ -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 ' ``` @@ -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..abe3c6ad76b7 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)) @@ -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 ' ``` @@ -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..a6694b9a5bc0 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)) @@ -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 ' ``` @@ -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..5444e9024188 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)) @@ -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 ' ``` @@ -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..608c62f29601 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)) @@ -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 ' ``` @@ -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..2b2466225fc1 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)) @@ -55,7 +55,7 @@ fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options) ```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 ' ``` @@ -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()