@@ -22,7 +22,6 @@ async function fetchAnalytics(
22
22
init ?: RequestInit ,
23
23
) : Promise < Response > {
24
24
const token = await getAuthToken ( ) ;
25
-
26
25
if ( ! token ) {
27
26
throw new Error ( "You are not authorized to perform this action" ) ;
28
27
}
@@ -48,22 +47,11 @@ async function fetchAnalytics(
48
47
decodeURIComponent ( value ) ,
49
48
) ;
50
49
}
51
- // client id DEBUG OVERRIDE
52
- // analyticsServiceUrl.searchParams.delete("projectId");
53
- // analyticsServiceUrl.searchParams.delete("teamId");
54
- // analyticsServiceUrl.searchParams.append(
55
- // "teamId",
56
- // "team_cm0lde33r02344w129k5hm2xz",
57
- // );
58
- // analyticsServiceUrl.searchParams.append(
59
- // "projectId",
60
- // "prj_cm4rqwx9b002qrnsnr37wqpo6",
61
- // );
62
50
63
51
return fetch ( analyticsServiceUrl , {
64
52
...init ,
65
53
headers : {
66
- "content-type" : "application/json" ,
54
+ Authorization : `Bearer ${ token } ` ,
67
55
...init ?. headers ,
68
56
} ,
69
57
} ) ;
@@ -99,7 +87,6 @@ export async function getWalletConnections(
99
87
`v2/sdk/wallet-connects?${ searchParams . toString ( ) } ` ,
100
88
{
101
89
method : "GET" ,
102
- headers : { "Content-Type" : "application/json" } ,
103
90
} ,
104
91
) ;
105
92
@@ -123,7 +110,6 @@ export async function getInAppWalletUsage(
123
110
`v2/wallet/connects?${ searchParams . toString ( ) } ` ,
124
111
{
125
112
method : "GET" ,
126
- headers : { "Content-Type" : "application/json" } ,
127
113
} ,
128
114
) ;
129
115
@@ -147,7 +133,6 @@ export async function getUserOpUsage(
147
133
`v2/bundler/usage?${ searchParams . toString ( ) } ` ,
148
134
{
149
135
method : "GET" ,
150
- headers : { "Content-Type" : "application/json" } ,
151
136
} ,
152
137
) ;
153
138
@@ -205,7 +190,6 @@ export async function getClientTransactions(
205
190
`v2/sdk/contract-transactions?${ searchParams . toString ( ) } ` ,
206
191
{
207
192
method : "GET" ,
208
- headers : { "Content-Type" : "application/json" } ,
209
193
} ,
210
194
) ;
211
195
@@ -229,7 +213,6 @@ export async function getRpcMethodUsage(
229
213
`v2/rpc/evm-methods?${ searchParams . toString ( ) } ` ,
230
214
{
231
215
method : "GET" ,
232
- headers : { "Content-Type" : "application/json" } ,
233
216
} ,
234
217
) ;
235
218
@@ -250,7 +233,6 @@ export async function getWalletUsers(
250
233
`v2/sdk/wallet-connects/users?${ searchParams . toString ( ) } ` ,
251
234
{
252
235
method : "GET" ,
253
- headers : { "Content-Type" : "application/json" } ,
254
236
} ,
255
237
) ;
256
238
@@ -287,7 +269,6 @@ export async function isProjectActive(params: {
287
269
`v2/active-usage?${ searchParams . toString ( ) } ` ,
288
270
{
289
271
method : "GET" ,
290
- headers : { "Content-Type" : "application/json" } ,
291
272
} ,
292
273
) ;
293
274
@@ -357,9 +338,6 @@ export async function getEcosystemWalletUsage(args: {
357
338
`v2/wallet/connects?${ searchParams . toString ( ) } ` ,
358
339
{
359
340
method : "GET" ,
360
- headers : {
361
- "Content-Type" : "application/json" ,
362
- } ,
363
341
} ,
364
342
) ;
365
343
@@ -386,9 +364,6 @@ export async function getUniversalBridgeUsage(args: {
386
364
const searchParams = buildSearchParams ( args ) ;
387
365
const res = await fetchAnalytics ( `v2/universal?${ searchParams . toString ( ) } ` , {
388
366
method : "GET" ,
389
- headers : {
390
- "Content-Type" : "application/json" ,
391
- } ,
392
367
} ) ;
393
368
394
369
if ( res ?. status !== 200 ) {
@@ -415,9 +390,6 @@ export async function getUniversalBridgeWalletUsage(args: {
415
390
`v2/universal/wallets?${ searchParams . toString ( ) } ` ,
416
391
{
417
392
method : "GET" ,
418
- headers : {
419
- "Content-Type" : "application/json" ,
420
- } ,
421
393
} ,
422
394
) ;
423
395
@@ -441,7 +413,6 @@ export async function getEngineCloudMethodUsage(
441
413
`v2/engine-cloud/requests?${ searchParams . toString ( ) } ` ,
442
414
{
443
415
method : "GET" ,
444
- headers : { "Content-Type" : "application/json" } ,
445
416
} ,
446
417
) ;
447
418
0 commit comments