File tree Expand file tree Collapse file tree 23 files changed +45
-45
lines changed Expand file tree Collapse file tree 23 files changed +45
-45
lines changed Original file line number Diff line number Diff 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.
6969If 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 ()
Original file line number Diff line number Diff 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.
6969If 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 ()
Original file line number Diff line number Diff 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.
6969If 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 ()
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
8787If 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 ()
Original file line number Diff line number Diff 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.
6969If 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 ()
Original file line number Diff line number Diff 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.
6969If 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 ()
Original file line number Diff line number Diff 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.
6969If 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 ()
Original file line number Diff line number Diff 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.
6969If 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 ()
Original file line number Diff line number Diff 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.
6969If 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 ()
You can’t perform that action at this time.
0 commit comments