Skip to content

Commit 7e1d3f4

Browse files
committed
updated docs
1 parent f2974fb commit 7e1d3f4

File tree

23 files changed

+45
-45
lines changed

23 files changed

+45
-45
lines changed

website/src/pages/ar/token-api/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const options = {
4141
},
4242
}
4343

44-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
44+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
4545
.then((response) => response.json())
4646
.then((response) => console.log(response))
4747
.catch((err) => console.error(err))
@@ -69,7 +69,7 @@ Make sure to replace `<token>` with the JWT Token generated from your API key.
6969
If the API call fails, try printing out the full response object for additional error details. For example:
7070

7171
```js label="index.js"
72-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
72+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
7373
.then((response) => {
7474
console.log('Status Code:', response.status)
7575
return response.json()

website/src/pages/cs/token-api/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const options = {
4141
},
4242
}
4343

44-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
44+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
4545
.then((response) => response.json())
4646
.then((response) => console.log(response))
4747
.catch((err) => console.error(err))
@@ -69,7 +69,7 @@ Make sure to replace `<token>` with the JWT Token generated from your API key.
6969
If the API call fails, try printing out the full response object for additional error details. For example:
7070

7171
```js label="index.js"
72-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
72+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
7373
.then((response) => {
7474
console.log('Status Code:', response.status)
7575
return response.json()

website/src/pages/de/token-api/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const options = {
4141
},
4242
}
4343

44-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
44+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
4545
.then((response) => response.json())
4646
.then((response) => console.log(response))
4747
.catch((err) => console.error(err))
@@ -69,7 +69,7 @@ Make sure to replace `<token>` with the JWT Token generated from your API key.
6969
If the API call fails, try printing out the full response object for additional error details. For example:
7070

7171
```js label="index.js"
72-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
72+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
7373
.then((response) => {
7474
console.log('Status Code:', response.status)
7575
return response.json()

website/src/pages/en/token-api/faq.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ We determine a collection’s spam score using a variety of features drawn from
104104

105105
### How can I report an issue with a collection that was incorrectly labeled as spam or not spam?
106106

107-
Reach out on [Discord](https://discord.gg/graphprotocol) in the Token API channel.
107+
Reach out on [Discord](https://discord.gg/graphprotocol) in the [Token API](https://discord.com/channels/438038660412342282/1354235849532903625) channel.
108108

109109
## Advanced Topics
110110

website/src/pages/en/token-api/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const options = {
4343
},
4444
}
4545

46-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
46+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
4747
.then((response) => response.json())
4848
.then((response) => console.log(response))
4949
.catch((err) => console.error(err))
@@ -87,7 +87,7 @@ A full list of chain support for The Graph services can be found [here](/support
8787
If the API call fails, try printing out the full response object for additional error details. For example:
8888

8989
```js label="index.js"
90-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
90+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
9191
.then((response) => {
9292
console.log('Status Code:', response.status)
9393
return response.json()

website/src/pages/es/token-api/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const options = {
4141
},
4242
}
4343

44-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
44+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
4545
.then((response) => response.json())
4646
.then((response) => console.log(response))
4747
.catch((err) => console.error(err))
@@ -69,7 +69,7 @@ Make sure to replace `<token>` with the JWT Token generated from your API key.
6969
If the API call fails, try printing out the full response object for additional error details. For example:
7070

7171
```js label="index.js"
72-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
72+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
7373
.then((response) => {
7474
console.log('Status Code:', response.status)
7575
return response.json()

website/src/pages/fr/token-api/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const options = {
4141
},
4242
}
4343

44-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
44+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
4545
.then((response) => response.json())
4646
.then((response) => console.log(response))
4747
.catch((err) => console.error(err))
@@ -69,7 +69,7 @@ Make sure to replace `<token>` with the JWT Token generated from your API key.
6969
If the API call fails, try printing out the full response object for additional error details. For example:
7070

7171
```js label="index.js"
72-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
72+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
7373
.then((response) => {
7474
console.log('Status Code:', response.status)
7575
return response.json()

website/src/pages/hi/token-api/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const options = {
4141
},
4242
}
4343

44-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
44+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
4545
.then((response) => response.json())
4646
.then((response) => console.log(response))
4747
.catch((err) => console.error(err))
@@ -69,7 +69,7 @@ Make sure to replace `<token>` with the JWT Token generated from your API key.
6969
If the API call fails, try printing out the full response object for additional error details. For example:
7070

7171
```js label="index.js"
72-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
72+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
7373
.then((response) => {
7474
console.log('Status Code:', response.status)
7575
return response.json()

website/src/pages/it/token-api/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const options = {
4141
},
4242
}
4343

44-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
44+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
4545
.then((response) => response.json())
4646
.then((response) => console.log(response))
4747
.catch((err) => console.error(err))
@@ -69,7 +69,7 @@ Make sure to replace `<token>` with the JWT Token generated from your API key.
6969
If the API call fails, try printing out the full response object for additional error details. For example:
7070

7171
```js label="index.js"
72-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
72+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
7373
.then((response) => {
7474
console.log('Status Code:', response.status)
7575
return response.json()

website/src/pages/ja/token-api/quick-start.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const options = {
4141
},
4242
}
4343

44-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
44+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
4545
.then((response) => response.json())
4646
.then((response) => console.log(response))
4747
.catch((err) => console.error(err))
@@ -69,7 +69,7 @@ Make sure to replace `<token>` with the JWT Token generated from your API key.
6969
If the API call fails, try printing out the full response object for additional error details. For example:
7070

7171
```js label="index.js"
72-
fetch(`https://token-api.thegraph.com/balances/evm/${address}`, options)
72+
fetch(`https://token-api.thegraph.com/v1/evm/balances?network=mainnet&address=${address}`)
7373
.then((response) => {
7474
console.log('Status Code:', response.status)
7575
return response.json()

0 commit comments

Comments
 (0)