Skip to content

Commit 79eb0fb

Browse files
committed
change insight auth in docs
1 parent 27d3a6e commit 79eb0fb

File tree

1 file changed

+6
-1
lines changed
  • apps/portal/src/app/insight/get-started

1 file changed

+6
-1
lines changed

apps/portal/src/app/insight/get-started/page.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ In this guide we will learn how to use the events blueprint in insight.
1717
## Pre-requisites
1818

1919
- [Create a project](https://thirdweb.com/team) and navigate to the project settings to get a clientId
20+
- Use that client ID in the `x-client-id` header to authenticate
2021
- Use insight API with the base URL below
2122

2223
```
@@ -27,7 +28,11 @@ https://<chain-id>.insight.thirdweb.com
2728
```typescript
2829
const getUsdtTransfers = async () => {
2930
try {
30-
const response = await fetch('https://1.insight.thirdweb.com/v1/<client-id>/events/0xdAC17F958D2ee523a2206206994597C13D831ec7/Transfer(address,address,uint256)?limit=5');
31+
const response = await fetch('https://1.insight.thirdweb.com/v1/events/0xdAC17F958D2ee523a2206206994597C13D831ec7/Transfer(address,address,uint256)?limit=5', {
32+
headers: {
33+
'x-client-id': <YOUR_THIRDWEB_CLIENT_ID>
34+
}
35+
});
3136
const transfersInfo = await response.json();
3237
return transfersInfo
3338
} catch (error) {

0 commit comments

Comments
 (0)