Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions website/src/pages/ar/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/cs/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/de/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/en/token-api/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/en/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand Down Expand Up @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/es/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/fr/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/hi/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/it/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/ja/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/ko/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/mr/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/nl/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/pl/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
6 changes: 3 additions & 3 deletions website/src/pages/pt/token-api/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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 <token>'
```
Expand All @@ -69,7 +69,7 @@ Make sure to replace `<token>` 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()
Expand Down
Loading