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
2 changes: 1 addition & 1 deletion .github/workflows/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [opened, edited]

env:
VALID_ISSUE_PREFIXES: "CNCT|DASH|PROT"
VALID_ISSUE_PREFIXES: "CNCT|DASH|PROT|INSIGHT"

jobs:
linear:
Expand Down
11 changes: 8 additions & 3 deletions apps/portal/src/app/insight/get-started/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ In this guide we will learn how to use the events blueprint in insight.

## Pre-requisites

- [Create a project](https://thirdweb.com/team) and navigate to the project settings to get a clientId
- Use insight API with the base URL below
- [Create a project](https://thirdweb.com/team) and navigate to the project settings to get a client ID
- Use insight API with the base URL below.
- To authenticate use your client ID in the `x-client-id` header or `clientId` query parameter

```
https://<chain-id>.insight.thirdweb.com
Expand All @@ -27,7 +28,11 @@ https://<chain-id>.insight.thirdweb.com
```typescript
const getUsdtTransfers = async () => {
try {
const response = await fetch('https://1.insight.thirdweb.com/v1/<client-id>/events/0xdAC17F958D2ee523a2206206994597C13D831ec7/Transfer(address,address,uint256)?limit=5');
const response = await fetch('https://1.insight.thirdweb.com/v1/events/0xdAC17F958D2ee523a2206206994597C13D831ec7/Transfer(address,address,uint256)?limit=5', {
headers: {
'x-client-id': <YOUR_THIRDWEB_CLIENT_ID>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The x-client-id header value needs to be a string literal. Please wrap <YOUR_THIRDWEB_CLIENT_ID> in quotes:

'x-client-id': '<YOUR_THIRDWEB_CLIENT_ID>'

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

}
});
const transfersInfo = await response.json();
return transfersInfo
} catch (error) {
Expand Down
Loading