@quicknode/sdk 0.5.1 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,826 @@
1
+ import { Client, GraphQLRequestParams } from '@urql/core';
2
+ export { gql } from '@urql/core';
3
+ import * as _urql_core_dist_urql_core_chunk from '@urql/core/dist/urql-core-chunk';
4
+
5
+ type Maybe<T> = T | null;
6
+ type InputMaybe<T> = Maybe<T>;
7
+ type Exact<T extends {
8
+ [key: string]: unknown;
9
+ }> = {
10
+ [K in keyof T]: T[K];
11
+ };
12
+ /** All built-in and custom scalars, mapped to their actual values */
13
+ type Scalars = {
14
+ ID: string;
15
+ String: string;
16
+ Boolean: boolean;
17
+ Int: number;
18
+ Float: number;
19
+ BigInt: any;
20
+ DateTime: any;
21
+ JSON: any;
22
+ JSONObject: any;
23
+ };
24
+ type CodegenContractStandard = 'ERC20' | 'ERC721' | 'ERC1155';
25
+ type CodegenContractStandardInput = {
26
+ eq?: InputMaybe<CodegenContractStandard>;
27
+ in?: InputMaybe<Array<CodegenContractStandard>>;
28
+ notIn?: InputMaybe<Array<CodegenContractStandard>>;
29
+ };
30
+ type CodegenDateTimeInput = {
31
+ eq?: InputMaybe<Scalars['DateTime']>;
32
+ gt?: InputMaybe<Scalars['DateTime']>;
33
+ gte?: InputMaybe<Scalars['DateTime']>;
34
+ lt?: InputMaybe<Scalars['DateTime']>;
35
+ lte?: InputMaybe<Scalars['DateTime']>;
36
+ };
37
+ /** Gas Prices for a given block. Gas values are returned in Wei. */
38
+ type CodegenGasPrice = {
39
+ __typename?: 'GasPrice';
40
+ average: Scalars['Float'];
41
+ blockNumber: Scalars['Int'];
42
+ ceiling: Scalars['Float'];
43
+ floor: Scalars['Float'];
44
+ median: Scalars['Float'];
45
+ total: Scalars['Float'];
46
+ };
47
+ /** Filter input for gas prices */
48
+ type CodegenGasPriceFilterInput = {
49
+ blockNumber?: InputMaybe<CodegenIntegerInput>;
50
+ };
51
+ type CodegenIntegerInput = {
52
+ eq?: InputMaybe<Scalars['Int']>;
53
+ gt?: InputMaybe<Scalars['Int']>;
54
+ gte?: InputMaybe<Scalars['Int']>;
55
+ in?: InputMaybe<Array<Scalars['Int']>>;
56
+ lt?: InputMaybe<Scalars['Int']>;
57
+ lte?: InputMaybe<Scalars['Int']>;
58
+ };
59
+ /** Marketplace where the token was sold */
60
+ type CodegenMarketplace = 'BLUR' | 'CRYPTOPUNKS' | 'LOOKSRARE' | 'NIFTY_GATEWAY' | 'OPENSEA' | 'SEAPORT' | 'X2Y2' | 'ZEROX';
61
+ type CodegenMarketplaceInput = {
62
+ eq?: InputMaybe<CodegenMarketplace>;
63
+ in?: InputMaybe<Array<CodegenMarketplace>>;
64
+ notIn?: InputMaybe<Array<CodegenMarketplace>>;
65
+ };
66
+ type CodegenStringInput = {
67
+ eq?: InputMaybe<Scalars['String']>;
68
+ in?: InputMaybe<Array<Scalars['String']>>;
69
+ notIn?: InputMaybe<Array<Scalars['String']>>;
70
+ };
71
+ /** Filter input for token events */
72
+ type CodegenTokenEventsFilterInput = {
73
+ /** Filter token events by their block number */
74
+ blockNumber?: InputMaybe<CodegenIntegerInput>;
75
+ /** Filter token events by contract address */
76
+ contractAddress?: InputMaybe<CodegenStringInput>;
77
+ /** Filter token events by their contract standard */
78
+ contractStandard?: InputMaybe<CodegenContractStandardInput>;
79
+ /** Filter token events by the "from" wallet */
80
+ fromAddress?: InputMaybe<CodegenStringInput>;
81
+ /** Filter token events by the marketplace. It's only valid for SALE types */
82
+ marketplace?: InputMaybe<CodegenMarketplaceInput>;
83
+ /** Filter token events by their estimated confirmation date */
84
+ timestamp?: InputMaybe<CodegenDateTimeInput>;
85
+ /** Filter token events by the "to" wallet */
86
+ toAddress?: InputMaybe<CodegenStringInput>;
87
+ /** Filter token events by transaction hash */
88
+ transactionHash?: InputMaybe<CodegenStringInput>;
89
+ /** Filter token events by their type */
90
+ type?: InputMaybe<CodegenTokenTransferTypeInput>;
91
+ /** Filter token events by the "to" and "from" wallet */
92
+ walletAddress?: InputMaybe<CodegenStringInput>;
93
+ };
94
+ type CodegenTokenTransferType = 'BURN' | 'MINT' | 'SALE' | 'SWAP' | 'TRANSFER';
95
+ type CodegenTokenTransferTypeInput = {
96
+ eq?: InputMaybe<CodegenTokenTransferType>;
97
+ in?: InputMaybe<Array<CodegenTokenTransferType>>;
98
+ notIn?: InputMaybe<Array<CodegenTokenTransferType>>;
99
+ };
100
+ /** Filter input for transactions */
101
+ type CodegenTransactionsFilterInput = {
102
+ blockNumber?: InputMaybe<CodegenIntegerInput>;
103
+ fromAddress?: InputMaybe<Scalars['String']>;
104
+ timestamp?: InputMaybe<CodegenDateTimeInput>;
105
+ toAddress?: InputMaybe<Scalars['String']>;
106
+ };
107
+ /** Filter of nfts in a wallet */
108
+ type CodegenWalletNFTsFilterInput = {
109
+ contractAddressIn?: InputMaybe<Array<Scalars['String']>>;
110
+ };
111
+ type CodegenEthMainnetContractDetailsQueryVariables = Exact<{
112
+ contractAddress: Scalars['String'];
113
+ }>;
114
+ type CodegenEthereumMainnetEventsGetAllQueryVariables = Exact<{
115
+ filter?: InputMaybe<CodegenTokenEventsFilterInput>;
116
+ after?: InputMaybe<Scalars['String']>;
117
+ first?: InputMaybe<Scalars['Int']>;
118
+ }>;
119
+ type CodegenEthereumMainnetEventsByContractQueryVariables = Exact<{
120
+ contractAddress: Scalars['String'];
121
+ filter?: InputMaybe<CodegenTokenEventsFilterInput>;
122
+ after?: InputMaybe<Scalars['String']>;
123
+ first?: InputMaybe<Scalars['Int']>;
124
+ }>;
125
+ type CodegenEthMainnetEventsByCollectionQueryVariables = Exact<{
126
+ contractAddress: Scalars['String'];
127
+ filter?: InputMaybe<CodegenTokenEventsFilterInput>;
128
+ after?: InputMaybe<Scalars['String']>;
129
+ first?: InputMaybe<Scalars['Int']>;
130
+ }>;
131
+ type CodegenEthereumMainnetEventsByNftQueryVariables = Exact<{
132
+ contractAddress: Scalars['String'];
133
+ tokenId: Scalars['String'];
134
+ filter?: InputMaybe<CodegenTokenEventsFilterInput>;
135
+ after?: InputMaybe<Scalars['String']>;
136
+ first?: InputMaybe<Scalars['Int']>;
137
+ }>;
138
+ type CodegenEthMainnetWalletNFTsByContractAddressQueryVariables = Exact<{
139
+ contractAddress: Scalars['String'];
140
+ after?: InputMaybe<Scalars['String']>;
141
+ first?: InputMaybe<Scalars['Int']>;
142
+ }>;
143
+ type CodegenEthMainnetWalletNFTsByAddressQueryVariables = Exact<{
144
+ address: Scalars['String'];
145
+ after?: InputMaybe<Scalars['String']>;
146
+ first?: InputMaybe<Scalars['Int']>;
147
+ filter?: InputMaybe<CodegenWalletNFTsFilterInput>;
148
+ }>;
149
+ type CodegenEthMainnetWalletNFTsByEnsQueryVariables = Exact<{
150
+ ensName: Scalars['String'];
151
+ after?: InputMaybe<Scalars['String']>;
152
+ first?: InputMaybe<Scalars['Int']>;
153
+ filter?: InputMaybe<CodegenWalletNFTsFilterInput>;
154
+ }>;
155
+ type CodegenEthMainnetNFTDetailsQueryVariables = Exact<{
156
+ contractAddress: Scalars['String'];
157
+ tokenId: Scalars['String'];
158
+ }>;
159
+ type CodegenEthMainnetNftCollectionDetailsQueryVariables = Exact<{
160
+ contractAddress: Scalars['String'];
161
+ }>;
162
+ type CodegenEthMainnetTrendingCollectionsQueryVariables = Exact<{
163
+ first?: InputMaybe<Scalars['Int']>;
164
+ after?: InputMaybe<Scalars['String']>;
165
+ }>;
166
+ type CodegenEthMainnetBalancesByWalletAddressQueryVariables = Exact<{
167
+ address: Scalars['String'];
168
+ first?: InputMaybe<Scalars['Int']>;
169
+ after?: InputMaybe<Scalars['String']>;
170
+ }>;
171
+ type CodegenEthMainnetBalancesByWalletENSQueryVariables = Exact<{
172
+ ensName: Scalars['String'];
173
+ first?: InputMaybe<Scalars['Int']>;
174
+ after?: InputMaybe<Scalars['String']>;
175
+ }>;
176
+ type CodegenEthMainnetTransactionsByHashQueryVariables = Exact<{
177
+ hash: Scalars['String'];
178
+ }>;
179
+ type CodegenEthMainnetTransactionsBySearchQueryVariables = Exact<{
180
+ filter: CodegenTransactionsFilterInput;
181
+ first?: InputMaybe<Scalars['Int']>;
182
+ after?: InputMaybe<Scalars['String']>;
183
+ }>;
184
+ type CodegenEthMainnetTransactionsByWalletAddressQueryVariables = Exact<{
185
+ address: Scalars['String'];
186
+ first?: InputMaybe<Scalars['Int']>;
187
+ after?: InputMaybe<Scalars['String']>;
188
+ }>;
189
+ type CodegenEthMainnetTransactionsByWalletENSQueryVariables = Exact<{
190
+ ensName: Scalars['String'];
191
+ first?: InputMaybe<Scalars['Int']>;
192
+ after?: InputMaybe<Scalars['String']>;
193
+ }>;
194
+ type CodegenEthMainnetGasPricesQueryVariables = Exact<{
195
+ filter?: InputMaybe<CodegenGasPriceFilterInput>;
196
+ }>;
197
+ type CodegenNftCollectionInfoFragment = {
198
+ __typename?: 'EVMSchemaType';
199
+ collection?: {
200
+ __typename?: 'ERC721Collection';
201
+ address: string;
202
+ baseTokenUri?: string | null;
203
+ circulatingSupply?: any | null;
204
+ description?: string | null;
205
+ externalUrl?: string | null;
206
+ name?: string | null;
207
+ slug?: string | null;
208
+ symbol?: string | null;
209
+ totalSupply?: any | null;
210
+ twitterUsername?: string | null;
211
+ bannerImage?: Array<{
212
+ __typename?: 'TokenUpload';
213
+ height?: number | null;
214
+ mimeType?: string | null;
215
+ url: string;
216
+ width?: number | null;
217
+ }> | null;
218
+ contract?: {
219
+ __typename?: 'NFTContract';
220
+ address: string;
221
+ isVerified?: boolean | null;
222
+ name?: string | null;
223
+ symbol?: string | null;
224
+ supportedErcInterfaces?: Array<string> | null;
225
+ } | null;
226
+ image?: Array<{
227
+ __typename?: 'TokenUpload';
228
+ height?: number | null;
229
+ mimeType?: string | null;
230
+ url: string;
231
+ width?: number | null;
232
+ }> | null;
233
+ ohlcvChart?: Array<{
234
+ __typename?: 'CollectionOHLCVChart';
235
+ average?: number | null;
236
+ close?: number | null;
237
+ count: number;
238
+ high?: number | null;
239
+ low?: number | null;
240
+ open?: number | null;
241
+ volume?: number | null;
242
+ timestamp: any;
243
+ }> | null;
244
+ openseaMetadata?: {
245
+ __typename?: 'OpenSeaMetadata';
246
+ isHidden?: boolean | null;
247
+ isVerified?: boolean | null;
248
+ unsafeSlug?: string | null;
249
+ } | null;
250
+ } | {
251
+ __typename?: 'ERC1155Collection';
252
+ address: string;
253
+ baseTokenUri?: string | null;
254
+ circulatingSupply?: any | null;
255
+ description?: string | null;
256
+ externalUrl?: string | null;
257
+ name?: string | null;
258
+ slug?: string | null;
259
+ symbol?: string | null;
260
+ totalSupply?: any | null;
261
+ twitterUsername?: string | null;
262
+ bannerImage?: Array<{
263
+ __typename?: 'TokenUpload';
264
+ height?: number | null;
265
+ mimeType?: string | null;
266
+ url: string;
267
+ width?: number | null;
268
+ }> | null;
269
+ contract?: {
270
+ __typename?: 'NFTContract';
271
+ address: string;
272
+ isVerified?: boolean | null;
273
+ name?: string | null;
274
+ symbol?: string | null;
275
+ supportedErcInterfaces?: Array<string> | null;
276
+ } | null;
277
+ image?: Array<{
278
+ __typename?: 'TokenUpload';
279
+ height?: number | null;
280
+ mimeType?: string | null;
281
+ url: string;
282
+ width?: number | null;
283
+ }> | null;
284
+ ohlcvChart?: Array<{
285
+ __typename?: 'CollectionOHLCVChart';
286
+ average?: number | null;
287
+ close?: number | null;
288
+ count: number;
289
+ high?: number | null;
290
+ low?: number | null;
291
+ open?: number | null;
292
+ volume?: number | null;
293
+ timestamp: any;
294
+ }> | null;
295
+ openseaMetadata?: {
296
+ __typename?: 'OpenSeaMetadata';
297
+ isHidden?: boolean | null;
298
+ isVerified?: boolean | null;
299
+ unsafeSlug?: string | null;
300
+ } | null;
301
+ } | null;
302
+ };
303
+ type CodegenNftDetailsFragment = {
304
+ __typename?: 'EVMSchemaType';
305
+ nft?: {
306
+ __typename?: 'ERC721NFT';
307
+ animationUrl?: string | null;
308
+ collectionSlug?: string | null;
309
+ contractAddress: string;
310
+ description?: string | null;
311
+ externalUrl?: string | null;
312
+ metadata?: any | null;
313
+ name?: string | null;
314
+ tokenId: any;
315
+ wallet?: {
316
+ __typename?: 'Wallet';
317
+ address: string;
318
+ ensName?: string | null;
319
+ } | null;
320
+ } | {
321
+ __typename?: 'ERC1155NFT';
322
+ animationUrl?: string | null;
323
+ collectionSlug?: string | null;
324
+ contractAddress: string;
325
+ description?: string | null;
326
+ externalUrl?: string | null;
327
+ metadata?: any | null;
328
+ name?: string | null;
329
+ tokenId: any;
330
+ wallets: {
331
+ __typename?: 'ERC1155NFTWalletsConnection';
332
+ edges: Array<{
333
+ __typename?: 'ERC1155NFTWalletsConnectionEdge';
334
+ node: {
335
+ __typename?: 'Wallet';
336
+ address: string;
337
+ ensName?: string | null;
338
+ };
339
+ }>;
340
+ };
341
+ } | null;
342
+ };
343
+ type CodegenERC1155NFTNodeFragment = {
344
+ __typename?: 'ERC1155NFT';
345
+ animationUrl?: string | null;
346
+ collectionSlug?: string | null;
347
+ contractAddress: string;
348
+ description?: string | null;
349
+ externalUrl?: string | null;
350
+ metadata?: any | null;
351
+ name?: string | null;
352
+ tokenId: any;
353
+ wallets: {
354
+ __typename?: 'ERC1155NFTWalletsConnection';
355
+ edges: Array<{
356
+ __typename?: 'ERC1155NFTWalletsConnectionEdge';
357
+ node: {
358
+ __typename?: 'Wallet';
359
+ address: string;
360
+ ensName?: string | null;
361
+ };
362
+ }>;
363
+ };
364
+ };
365
+ type CodegenERC721NFTNodeFragment = {
366
+ __typename?: 'ERC721NFT';
367
+ animationUrl?: string | null;
368
+ collectionSlug?: string | null;
369
+ contractAddress: string;
370
+ description?: string | null;
371
+ externalUrl?: string | null;
372
+ metadata?: any | null;
373
+ name?: string | null;
374
+ tokenId: any;
375
+ attributes?: Array<{
376
+ __typename?: 'TokenAttribute';
377
+ name: string;
378
+ value: string;
379
+ }> | null;
380
+ wallet?: {
381
+ __typename?: 'Wallet';
382
+ address: string;
383
+ ensName?: string | null;
384
+ } | null;
385
+ };
386
+ type CodegenTransactionsNodeFragment = {
387
+ __typename?: 'Transaction';
388
+ blockNumber: number;
389
+ blockTimestamp: any;
390
+ contractAddress?: string | null;
391
+ fromAddress: string;
392
+ cumulativeGasUsed: any;
393
+ effectiveGasPrice?: any | null;
394
+ gas?: any | null;
395
+ gasPrice?: any | null;
396
+ gasUsed: any;
397
+ hash: string;
398
+ maxFeePerGas?: any | null;
399
+ maxPriorityFeePerGas?: any | null;
400
+ toAddress?: string | null;
401
+ type?: string | null;
402
+ input?: string | null;
403
+ transactionIndex: number;
404
+ value?: any | null;
405
+ };
406
+ type CodegenTrendingCollectionInfo_CodegenERC721Collection_CodegenFragment = {
407
+ __typename?: 'ERC721Collection';
408
+ address: string;
409
+ baseTokenUri?: string | null;
410
+ circulatingSupply?: any | null;
411
+ description?: string | null;
412
+ externalUrl?: string | null;
413
+ name?: string | null;
414
+ symbol?: string | null;
415
+ totalSupply?: any | null;
416
+ twitterUsername?: string | null;
417
+ image?: Array<{
418
+ __typename?: 'TokenUpload';
419
+ height?: number | null;
420
+ mimeType?: string | null;
421
+ url: string;
422
+ width?: number | null;
423
+ }> | null;
424
+ openseaMetadata?: {
425
+ __typename?: 'OpenSeaMetadata';
426
+ isHidden?: boolean | null;
427
+ isVerified?: boolean | null;
428
+ unsafeSlug?: string | null;
429
+ } | null;
430
+ };
431
+ type CodegenTrendingCollectionInfo_CodegenERC1155Collection_CodegenFragment = {
432
+ __typename?: 'ERC1155Collection';
433
+ address: string;
434
+ baseTokenUri?: string | null;
435
+ circulatingSupply?: any | null;
436
+ description?: string | null;
437
+ externalUrl?: string | null;
438
+ name?: string | null;
439
+ symbol?: string | null;
440
+ totalSupply?: any | null;
441
+ twitterUsername?: string | null;
442
+ image?: Array<{
443
+ __typename?: 'TokenUpload';
444
+ height?: number | null;
445
+ mimeType?: string | null;
446
+ url: string;
447
+ width?: number | null;
448
+ }> | null;
449
+ openseaMetadata?: {
450
+ __typename?: 'OpenSeaMetadata';
451
+ isHidden?: boolean | null;
452
+ isVerified?: boolean | null;
453
+ unsafeSlug?: string | null;
454
+ } | null;
455
+ };
456
+ type CodegenTrendingCollectionInfoFragment = CodegenTrendingCollectionInfo_CodegenERC721Collection_CodegenFragment | CodegenTrendingCollectionInfo_CodegenERC1155Collection_CodegenFragment;
457
+ type CodegenWalletNFTNodeFragment = {
458
+ __typename?: 'WalletNFT';
459
+ nft?: {
460
+ __typename?: 'ERC721NFT';
461
+ animationUrl?: string | null;
462
+ collectionSlug?: string | null;
463
+ contractAddress: string;
464
+ description?: string | null;
465
+ externalUrl?: string | null;
466
+ metadata?: any | null;
467
+ name?: string | null;
468
+ tokenId: any;
469
+ } | {
470
+ __typename?: 'ERC1155NFT';
471
+ animationUrl?: string | null;
472
+ collectionSlug?: string | null;
473
+ contractAddress: string;
474
+ description?: string | null;
475
+ externalUrl?: string | null;
476
+ metadata?: any | null;
477
+ name?: string | null;
478
+ tokenId: any;
479
+ } | null;
480
+ };
481
+ type CodegenContractInfo_CodegenNFTContract_CodegenFragment = {
482
+ __typename?: 'NFTContract';
483
+ abi?: any | null;
484
+ address: string;
485
+ isVerified?: boolean | null;
486
+ name?: string | null;
487
+ supportedErcInterfaces?: Array<string> | null;
488
+ symbol?: string | null;
489
+ };
490
+ type CodegenContractInfo_CodegenTokenContract_CodegenFragment = {
491
+ __typename?: 'TokenContract';
492
+ decimals?: any | null;
493
+ abi?: any | null;
494
+ address: string;
495
+ isVerified?: boolean | null;
496
+ name?: string | null;
497
+ supportedErcInterfaces?: Array<string> | null;
498
+ symbol?: string | null;
499
+ };
500
+ type CodegenContractInfoFragment = CodegenContractInfo_CodegenNFTContract_CodegenFragment | CodegenContractInfo_CodegenTokenContract_CodegenFragment;
501
+ type CodegenTokenBalanceNodeFragment = {
502
+ __typename?: 'WalletTokenBalance';
503
+ totalBalance: any;
504
+ contract?: {
505
+ __typename?: 'TokenContract';
506
+ address: string;
507
+ decimals?: any | null;
508
+ name?: string | null;
509
+ symbol?: string | null;
510
+ } | null;
511
+ };
512
+ type CodegenTokenEventInfo_CodegenTokenBurnEvent_CodegenFragment = {
513
+ __typename?: 'TokenBurnEvent';
514
+ tokenId?: any | null;
515
+ tokenQuantity: any;
516
+ blockNumber: number;
517
+ fromAddress: string;
518
+ timestamp: any;
519
+ toAddress: string;
520
+ transactionHash?: string | null;
521
+ transferIndex: number;
522
+ type: CodegenTokenTransferType;
523
+ };
524
+ type CodegenTokenEventInfo_CodegenTokenMintEvent_CodegenFragment = {
525
+ __typename?: 'TokenMintEvent';
526
+ tokenQuantity: any;
527
+ blockNumber: number;
528
+ fromAddress: string;
529
+ timestamp: any;
530
+ toAddress: string;
531
+ transactionHash?: string | null;
532
+ transferIndex: number;
533
+ type: CodegenTokenTransferType;
534
+ };
535
+ type CodegenTokenEventInfo_CodegenTokenSaleEvent_CodegenFragment = {
536
+ __typename?: 'TokenSaleEvent';
537
+ marketplace?: CodegenMarketplace | null;
538
+ receivedTokenContractAddress?: string | null;
539
+ receivedTokenId?: any | null;
540
+ sentTokenId?: any | null;
541
+ blockNumber: number;
542
+ fromAddress: string;
543
+ timestamp: any;
544
+ toAddress: string;
545
+ transactionHash?: string | null;
546
+ transferIndex: number;
547
+ type: CodegenTokenTransferType;
548
+ };
549
+ type CodegenTokenEventInfo_CodegenTokenSwapEvent_CodegenFragment = {
550
+ __typename?: 'TokenSwapEvent';
551
+ blockNumber: number;
552
+ fromAddress: string;
553
+ timestamp: any;
554
+ toAddress: string;
555
+ transactionHash?: string | null;
556
+ transferIndex: number;
557
+ type: CodegenTokenTransferType;
558
+ };
559
+ type CodegenTokenEventInfo_CodegenTokenTransferEvent_CodegenFragment = {
560
+ __typename?: 'TokenTransferEvent';
561
+ tokenId?: any | null;
562
+ contractAddress: string;
563
+ tokenQuantity: any;
564
+ blockNumber: number;
565
+ fromAddress: string;
566
+ timestamp: any;
567
+ toAddress: string;
568
+ transactionHash?: string | null;
569
+ transferIndex: number;
570
+ type: CodegenTokenTransferType;
571
+ };
572
+ type CodegenTokenEventInfoFragment = CodegenTokenEventInfo_CodegenTokenBurnEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenMintEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenSaleEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenSwapEvent_CodegenFragment | CodegenTokenEventInfo_CodegenTokenTransferEvent_CodegenFragment;
573
+ type CodegenPaginationFragment = {
574
+ __typename?: 'PageInfo';
575
+ endCursor?: string | null;
576
+ hasNextPage: boolean;
577
+ hasPreviousPage: boolean;
578
+ startCursor?: string | null;
579
+ };
580
+
581
+ type ResultOutput = Record<string | number | symbol, any>;
582
+
583
+ interface InternalOptions {
584
+ keepTypename?: boolean;
585
+ }
586
+ declare class CustomUrqlClient {
587
+ urqlClient: Client;
588
+ constructor(urqlClient: Client);
589
+ query<TVariables extends Record<string, any>, KResults extends Record<string, any>, KResultsOutput extends ResultOutput>(options: GraphQLRequestParams<any, TVariables> & InternalOptions): Promise<{
590
+ data: any;
591
+ operation: _urql_core_dist_urql_core_chunk.Operation<any, Record<string, any> | TVariables>;
592
+ error?: _urql_core_dist_urql_core_chunk.CombinedError | undefined;
593
+ extensions?: Record<string, any> | undefined;
594
+ stale: boolean;
595
+ hasNext: boolean;
596
+ }>;
597
+ }
598
+
599
+ type ChainName = 'ethereum' | 'polygon' | 'ethereumSepolia';
600
+
601
+ type NonQueryInput = {
602
+ chain?: ChainName;
603
+ };
604
+
605
+ type WalletNFTsByAddressQueryVariables = CodegenEthMainnetWalletNFTsByAddressQueryVariables;
606
+ type WalletNFTsByAddressInput = WalletNFTsByAddressQueryVariables & NonQueryInput;
607
+ type WalletNFTsByAddressResult = {
608
+ address: string;
609
+ ensName: string;
610
+ results: CodegenWalletNFTNodeFragment['nft'][];
611
+ pageInfo: CodegenPaginationFragment;
612
+ };
613
+
614
+ type NFTDetailsQueryVariables = CodegenEthMainnetNFTDetailsQueryVariables;
615
+ type NFTDetailsInput = NFTDetailsQueryVariables & NonQueryInput;
616
+ type NFTDetailsResult = {
617
+ nft: CodegenNftDetailsFragment['nft'];
618
+ };
619
+
620
+ type NftCollectionDetailsQueryVariables = CodegenEthMainnetNftCollectionDetailsQueryVariables;
621
+ type NftCollectionDetailsInput = NftCollectionDetailsQueryVariables & NonQueryInput;
622
+ type NftCollectionDetailsResult = {
623
+ collection: CodegenNftCollectionInfoFragment['collection'];
624
+ };
625
+
626
+ type NFTTrendingCollectionsQueryVariables = CodegenEthMainnetTrendingCollectionsQueryVariables;
627
+ type NFTTrendingCollectionsInput = NFTTrendingCollectionsQueryVariables & NonQueryInput;
628
+ type NFTTrendingCollectionResult = {
629
+ results: CodegenTrendingCollectionInfoFragment[];
630
+ pageInfo: CodegenPaginationFragment;
631
+ };
632
+
633
+ type NftErcStandards = 'ERC721' | 'ERC1155';
634
+
635
+ type NFTsByContractAddressQueryVariables = CodegenEthMainnetWalletNFTsByContractAddressQueryVariables;
636
+ type NFTsByContractAddressInput = NFTsByContractAddressQueryVariables & NonQueryInput;
637
+ type NFTsByContractAddressResult = {
638
+ standard: NftErcStandards | null;
639
+ results: [CodegenERC721NFTNodeFragment | CodegenERC1155NFTNodeFragment][];
640
+ pageInfo: CodegenPaginationFragment;
641
+ };
642
+
643
+ declare class NftsController {
644
+ private client;
645
+ private defaultChain;
646
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
647
+ getByWallet(variables: WalletNFTsByAddressInput): Promise<WalletNFTsByAddressResult>;
648
+ private getByWalletENS;
649
+ private getByWalletAddress;
650
+ getTrendingCollections(variables: NFTTrendingCollectionsInput): Promise<NFTTrendingCollectionResult>;
651
+ getByContractAddress(variables: NFTsByContractAddressInput): Promise<NFTsByContractAddressResult>;
652
+ getNFTDetails(variables: NFTDetailsInput): Promise<NFTDetailsResult>;
653
+ getCollectionDetails(variables: NftCollectionDetailsInput): Promise<NftCollectionDetailsResult>;
654
+ }
655
+
656
+ type BalancesByWalletENSInput = CodegenEthMainnetBalancesByWalletENSQueryVariables & NonQueryInput;
657
+ type BalancesByWalletENSResult = {
658
+ address: string;
659
+ ensName: string;
660
+ results: CodegenTokenBalanceNodeFragment[];
661
+ pageInfo: CodegenPaginationFragment;
662
+ };
663
+
664
+ type BalancesByWalletAddressQueryVariables = CodegenEthMainnetBalancesByWalletAddressQueryVariables;
665
+ type BalancesByWalletAddressInput = BalancesByWalletAddressQueryVariables & NonQueryInput;
666
+ type BalancesByWalletAddressResult = {
667
+ address: string;
668
+ ensName: string;
669
+ results: CodegenTokenBalanceNodeFragment[];
670
+ pageInfo: CodegenPaginationFragment;
671
+ };
672
+
673
+ declare class TokensController {
674
+ private client;
675
+ private defaultChain;
676
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
677
+ getBalancesByWallet(variables: BalancesByWalletAddressInput): Promise<BalancesByWalletENSResult>;
678
+ private getBalancesByWalletENS;
679
+ private getBalancesByWalletAddress;
680
+ private flattenBalanceResponses;
681
+ }
682
+
683
+ type GasPricesQueryVariables = CodegenEthMainnetGasPricesQueryVariables & {
684
+ returnInGwei?: boolean;
685
+ };
686
+ type GasPricesInput = GasPricesQueryVariables & NonQueryInput;
687
+ type GasPricesResult = {
688
+ gasPrices: CodegenGasPrice[];
689
+ };
690
+
691
+ declare class UtilsController {
692
+ private client;
693
+ private defaultChain;
694
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
695
+ getGasPrices(variables: GasPricesInput): Promise<GasPricesResult>;
696
+ }
697
+
698
+ type ContractDetailsQueryVariables = CodegenEthMainnetContractDetailsQueryVariables;
699
+ type ContractDetailsInput = ContractDetailsQueryVariables & NonQueryInput;
700
+ type ContractDetailsResult = {
701
+ contract: CodegenContractInfoFragment | null;
702
+ };
703
+
704
+ declare class ContractsController {
705
+ private client;
706
+ private defaultChain;
707
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
708
+ getDetails(variables: ContractDetailsInput): Promise<ContractDetailsResult>;
709
+ }
710
+
711
+ type ContractEventsQueryVariables = CodegenEthereumMainnetEventsByContractQueryVariables;
712
+ type ContractEventsInput = ContractEventsQueryVariables & NonQueryInput;
713
+ type ContractEventsResult = {
714
+ results: CodegenTokenEventInfoFragment[];
715
+ pageInfo: CodegenPaginationFragment;
716
+ };
717
+
718
+ type CollectionEventsQueryVariables = CodegenEthMainnetEventsByCollectionQueryVariables;
719
+ type CollectionEventsInput = CollectionEventsQueryVariables & NonQueryInput;
720
+ type CollectionEventsResult = {
721
+ results: CodegenTokenEventInfoFragment[];
722
+ pageInfo: CodegenPaginationFragment;
723
+ };
724
+
725
+ type NFTEventsQueryVariables = CodegenEthereumMainnetEventsByNftQueryVariables;
726
+ type NFTEventsInput = NFTEventsQueryVariables & NonQueryInput;
727
+ type NFTEventsResult = {
728
+ results: CodegenTokenEventInfoFragment[];
729
+ pageInfo: CodegenPaginationFragment;
730
+ };
731
+
732
+ type AllEventsQueryVariables = CodegenEthereumMainnetEventsGetAllQueryVariables;
733
+ type AllEventsInput = AllEventsQueryVariables & NonQueryInput;
734
+ type AllEventsResult = {
735
+ results: CodegenTokenEventInfoFragment[];
736
+ pageInfo: CodegenPaginationFragment;
737
+ };
738
+
739
+ declare class EventsController {
740
+ private client;
741
+ private defaultChain;
742
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
743
+ getByContract(variables: ContractEventsInput): Promise<ContractEventsResult>;
744
+ getByNFTCollection(variables: CollectionEventsInput): Promise<CollectionEventsResult>;
745
+ getByNFT(variables: NFTEventsInput): Promise<NFTEventsResult>;
746
+ getAll(variables: AllEventsInput): Promise<AllEventsResult>;
747
+ }
748
+
749
+ type TransactionsByWalletAddressQueryVariables = CodegenEthMainnetTransactionsByWalletAddressQueryVariables;
750
+ type TransactionsByWalletAddressInput = TransactionsByWalletAddressQueryVariables & NonQueryInput;
751
+ type TransactionsByWalletAddressResult = {
752
+ address: string;
753
+ ensName: string;
754
+ results: CodegenTransactionsNodeFragment[];
755
+ pageInfo: CodegenPaginationFragment;
756
+ };
757
+
758
+ type TransactionsByWalletENSQueryVariables = CodegenEthMainnetTransactionsByWalletENSQueryVariables;
759
+ type TransactionsByWalletENSInput = TransactionsByWalletENSQueryVariables & NonQueryInput;
760
+ type TransactionsByWalletENSResult = {
761
+ address: string;
762
+ ensName: string;
763
+ results: CodegenTransactionsNodeFragment[];
764
+ pageInfo: CodegenPaginationFragment;
765
+ };
766
+
767
+ type TransactionsBySearchQueryVariables = CodegenEthMainnetTransactionsBySearchQueryVariables;
768
+ type TransactionsBySearchInput = TransactionsBySearchQueryVariables & NonQueryInput;
769
+ type TransactionsBySearchResult = {
770
+ results: CodegenTransactionsNodeFragment[];
771
+ pageInfo: CodegenPaginationFragment;
772
+ };
773
+
774
+ type TransactionsByHashQueryVariables = CodegenEthMainnetTransactionsByHashQueryVariables;
775
+ type TransactionsByHashInput = TransactionsByHashQueryVariables & NonQueryInput;
776
+ type TransactionsByHashResult = {
777
+ transaction: CodegenTransactionsNodeFragment | null;
778
+ };
779
+
780
+ declare class TransactionsController {
781
+ private client;
782
+ private defaultChain;
783
+ constructor(client: CustomUrqlClient, defaultChain?: ChainName);
784
+ getByWallet(variables: TransactionsByWalletAddressInput): Promise<TransactionsByWalletAddressResult | TransactionsByWalletENSResult>;
785
+ private getByWalletAddress;
786
+ private getByWalletENS;
787
+ getAll(variables: TransactionsBySearchInput): Promise<TransactionsBySearchResult>;
788
+ getByHash(variables: TransactionsByHashInput): Promise<TransactionsByHashResult>;
789
+ }
790
+
791
+ interface ApiArguments {
792
+ graphApiKey?: string;
793
+ additionalHeaders?: Record<string, string>;
794
+ defaultChain?: ChainName;
795
+ }
796
+ declare class API {
797
+ readonly urqlClient: Client;
798
+ private customUrqlClient;
799
+ private graphApiKey?;
800
+ private additionalHeaders?;
801
+ readonly defaultChain: ChainName;
802
+ readonly nfts: NftsController;
803
+ readonly tokens: TokensController;
804
+ readonly utils: UtilsController;
805
+ readonly contracts: ContractsController;
806
+ readonly transactions: TransactionsController;
807
+ readonly events: EventsController;
808
+ readonly graphApiClient: Client;
809
+ constructor({ graphApiKey, additionalHeaders, defaultChain, }?: ApiArguments);
810
+ private createUrqlClient;
811
+ }
812
+
813
+ declare const QuickNode: {
814
+ API: typeof API;
815
+ };
816
+
817
+ type WalletNFTsByEnsQueryVariables = CodegenEthMainnetWalletNFTsByEnsQueryVariables;
818
+ type WalletNFTsByEnsInput = WalletNFTsByEnsQueryVariables & NonQueryInput;
819
+ type WalletNFTsByEnsResult = {
820
+ address: string;
821
+ ensName: string;
822
+ results: CodegenWalletNFTNodeFragment['nft'][];
823
+ pageInfo: CodegenPaginationFragment;
824
+ };
825
+
826
+ export { API, AllEventsInput, AllEventsResult, BalancesByWalletAddressInput, BalancesByWalletAddressResult, BalancesByWalletENSInput, BalancesByWalletENSResult, CollectionEventsInput, CollectionEventsResult, ContractDetailsInput, ContractDetailsResult, ContractEventsInput, ContractEventsResult, GasPricesInput, GasPricesResult, NFTDetailsInput, NFTDetailsResult, NFTEventsInput, NFTEventsResult, NFTTrendingCollectionResult, NFTTrendingCollectionsInput, NFTsByContractAddressInput, NFTsByContractAddressResult, NftCollectionDetailsInput, NftCollectionDetailsResult, TransactionsByHashInput, TransactionsByHashResult, TransactionsBySearchInput, TransactionsBySearchResult, TransactionsByWalletAddressInput, TransactionsByWalletAddressResult, TransactionsByWalletENSInput, TransactionsByWalletENSResult, WalletNFTsByAddressInput, WalletNFTsByAddressResult, WalletNFTsByEnsInput, WalletNFTsByEnsResult, QuickNode as default };