@hirosystems/token-metadata-api-client 1.0.2 → 1.1.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/api.ts +292 -83
- package/configuration.ts +1 -1
- package/dist/api.d.ts +218 -68
- package/dist/api.js +143 -47
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Token Metadata API
|
|
3
3
|
* Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
|
|
4
4
|
*
|
|
5
|
-
* OpenAPI spec version: v0.
|
|
5
|
+
* OpenAPI spec version: v0.3.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto generated by the swagger code generator program.
|
|
@@ -102,7 +102,7 @@ export interface ApiStatusResponse {
|
|
|
102
102
|
* @type {string}
|
|
103
103
|
* @memberof ApiStatusResponse
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
server_version: string;
|
|
106
106
|
/**
|
|
107
107
|
*
|
|
108
108
|
* @type {string}
|
|
@@ -120,13 +120,13 @@ export interface ApiStatusResponse {
|
|
|
120
120
|
* @type {ApiTokenContractCount}
|
|
121
121
|
* @memberof ApiStatusResponse
|
|
122
122
|
*/
|
|
123
|
-
|
|
123
|
+
token_contracts?: ApiTokenContractCount;
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
126
|
* @type {ApiJobCount}
|
|
127
127
|
* @memberof ApiStatusResponse
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
job_queue?: ApiJobCount;
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
@@ -139,19 +139,19 @@ export interface ApiTokenContractCount {
|
|
|
139
139
|
* @type {number}
|
|
140
140
|
* @memberof ApiTokenContractCount
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
sip_009?: number;
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
145
|
* @type {number}
|
|
146
146
|
* @memberof ApiTokenContractCount
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
sip_010?: number;
|
|
149
149
|
/**
|
|
150
150
|
*
|
|
151
151
|
* @type {number}
|
|
152
152
|
* @memberof ApiTokenContractCount
|
|
153
153
|
*/
|
|
154
|
-
|
|
154
|
+
sip_013?: number;
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
157
|
*
|
|
@@ -178,6 +178,80 @@ export interface ApiTokenCount {
|
|
|
178
178
|
*/
|
|
179
179
|
sft?: number;
|
|
180
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @export
|
|
184
|
+
* @interface ErrorResponse
|
|
185
|
+
*/
|
|
186
|
+
export interface ErrorResponse {
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @export
|
|
191
|
+
* @interface FtBasicMetadataResponse
|
|
192
|
+
*/
|
|
193
|
+
export interface FtBasicMetadataResponse {
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof FtBasicMetadataResponse
|
|
198
|
+
*/
|
|
199
|
+
name?: string;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof FtBasicMetadataResponse
|
|
204
|
+
*/
|
|
205
|
+
symbol?: string;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {number}
|
|
209
|
+
* @memberof FtBasicMetadataResponse
|
|
210
|
+
*/
|
|
211
|
+
decimals?: number;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {string}
|
|
215
|
+
* @memberof FtBasicMetadataResponse
|
|
216
|
+
*/
|
|
217
|
+
total_supply?: string;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof FtBasicMetadataResponse
|
|
222
|
+
*/
|
|
223
|
+
token_uri?: string;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {string}
|
|
227
|
+
* @memberof FtBasicMetadataResponse
|
|
228
|
+
*/
|
|
229
|
+
description?: string;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @type {string}
|
|
233
|
+
* @memberof FtBasicMetadataResponse
|
|
234
|
+
*/
|
|
235
|
+
image_uri?: string;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @memberof FtBasicMetadataResponse
|
|
240
|
+
*/
|
|
241
|
+
image_canonical_uri?: string;
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {string}
|
|
245
|
+
* @memberof FtBasicMetadataResponse
|
|
246
|
+
*/
|
|
247
|
+
tx_id: string;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @type {string}
|
|
251
|
+
* @memberof FtBasicMetadataResponse
|
|
252
|
+
*/
|
|
253
|
+
sender_address: string;
|
|
254
|
+
}
|
|
181
255
|
/**
|
|
182
256
|
*
|
|
183
257
|
* @export
|
|
@@ -207,13 +281,13 @@ export interface FtMetadataResponse {
|
|
|
207
281
|
* @type {string}
|
|
208
282
|
* @memberof FtMetadataResponse
|
|
209
283
|
*/
|
|
210
|
-
|
|
284
|
+
total_supply?: string;
|
|
211
285
|
/**
|
|
212
286
|
*
|
|
213
287
|
* @type {string}
|
|
214
288
|
* @memberof FtMetadataResponse
|
|
215
289
|
*/
|
|
216
|
-
|
|
290
|
+
token_uri?: string;
|
|
217
291
|
/**
|
|
218
292
|
*
|
|
219
293
|
* @type {string}
|
|
@@ -225,25 +299,25 @@ export interface FtMetadataResponse {
|
|
|
225
299
|
* @type {string}
|
|
226
300
|
* @memberof FtMetadataResponse
|
|
227
301
|
*/
|
|
228
|
-
|
|
302
|
+
image_uri?: string;
|
|
229
303
|
/**
|
|
230
304
|
*
|
|
231
305
|
* @type {string}
|
|
232
306
|
* @memberof FtMetadataResponse
|
|
233
307
|
*/
|
|
234
|
-
|
|
308
|
+
image_canonical_uri?: string;
|
|
235
309
|
/**
|
|
236
310
|
*
|
|
237
311
|
* @type {string}
|
|
238
312
|
* @memberof FtMetadataResponse
|
|
239
313
|
*/
|
|
240
|
-
|
|
314
|
+
tx_id: string;
|
|
241
315
|
/**
|
|
242
316
|
*
|
|
243
317
|
* @type {string}
|
|
244
318
|
* @memberof FtMetadataResponse
|
|
245
319
|
*/
|
|
246
|
-
|
|
320
|
+
sender_address: string;
|
|
247
321
|
/**
|
|
248
322
|
*
|
|
249
323
|
* @type {Metadata}
|
|
@@ -286,7 +360,7 @@ export interface Metadata {
|
|
|
286
360
|
* @type {string}
|
|
287
361
|
* @memberof Metadata
|
|
288
362
|
*/
|
|
289
|
-
|
|
363
|
+
cached_image?: string;
|
|
290
364
|
/**
|
|
291
365
|
*
|
|
292
366
|
* @type {Array<MetadataAttribute>}
|
|
@@ -319,13 +393,13 @@ export interface MetadataAttribute {
|
|
|
319
393
|
* @type {string}
|
|
320
394
|
* @memberof MetadataAttribute
|
|
321
395
|
*/
|
|
322
|
-
|
|
396
|
+
trait_type: string;
|
|
323
397
|
/**
|
|
324
398
|
*
|
|
325
399
|
* @type {string}
|
|
326
400
|
* @memberof MetadataAttribute
|
|
327
401
|
*/
|
|
328
|
-
|
|
402
|
+
display_type?: string;
|
|
329
403
|
/**
|
|
330
404
|
*
|
|
331
405
|
* @type {any}
|
|
@@ -369,7 +443,7 @@ export interface NftMetadataResponse {
|
|
|
369
443
|
* @type {string}
|
|
370
444
|
* @memberof NftMetadataResponse
|
|
371
445
|
*/
|
|
372
|
-
|
|
446
|
+
token_uri?: string;
|
|
373
447
|
/**
|
|
374
448
|
*
|
|
375
449
|
* @type {Metadata}
|
|
@@ -380,66 +454,85 @@ export interface NftMetadataResponse {
|
|
|
380
454
|
/**
|
|
381
455
|
*
|
|
382
456
|
* @export
|
|
383
|
-
* @interface
|
|
457
|
+
* @interface NotFoundErrorResponse
|
|
384
458
|
*/
|
|
385
|
-
export interface
|
|
459
|
+
export interface NotFoundErrorResponse {
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @export
|
|
464
|
+
* @interface Order
|
|
465
|
+
*/
|
|
466
|
+
export interface Order {
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @export
|
|
471
|
+
* @interface OrderBy
|
|
472
|
+
*/
|
|
473
|
+
export interface OrderBy {
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
*
|
|
477
|
+
* @export
|
|
478
|
+
* @interface PaginatedFtBasicMetadataResponse
|
|
479
|
+
*/
|
|
480
|
+
export interface PaginatedFtBasicMetadataResponse {
|
|
386
481
|
/**
|
|
387
482
|
*
|
|
388
|
-
* @type {
|
|
389
|
-
* @memberof
|
|
483
|
+
* @type {number}
|
|
484
|
+
* @memberof PaginatedFtBasicMetadataResponse
|
|
390
485
|
*/
|
|
391
|
-
|
|
486
|
+
limit: number;
|
|
392
487
|
/**
|
|
393
488
|
*
|
|
394
489
|
* @type {number}
|
|
395
|
-
* @memberof
|
|
490
|
+
* @memberof PaginatedFtBasicMetadataResponse
|
|
396
491
|
*/
|
|
397
|
-
|
|
492
|
+
offset: number;
|
|
398
493
|
/**
|
|
399
494
|
*
|
|
400
|
-
* @type {
|
|
401
|
-
* @memberof
|
|
495
|
+
* @type {number}
|
|
496
|
+
* @memberof PaginatedFtBasicMetadataResponse
|
|
402
497
|
*/
|
|
403
|
-
|
|
498
|
+
total: number;
|
|
404
499
|
/**
|
|
405
500
|
*
|
|
406
|
-
* @type {
|
|
407
|
-
* @memberof
|
|
501
|
+
* @type {Array<FtBasicMetadataResponse>}
|
|
502
|
+
* @memberof PaginatedFtBasicMetadataResponse
|
|
408
503
|
*/
|
|
409
|
-
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
*
|
|
413
|
-
* @export
|
|
414
|
-
* @interface TokenErrorResponse
|
|
415
|
-
*/
|
|
416
|
-
export interface TokenErrorResponse {
|
|
504
|
+
results: Array<FtBasicMetadataResponse>;
|
|
417
505
|
}
|
|
418
506
|
/**
|
|
419
507
|
*
|
|
420
508
|
* @export
|
|
421
|
-
* @interface
|
|
509
|
+
* @interface SftMetadataResponse
|
|
422
510
|
*/
|
|
423
|
-
export interface
|
|
511
|
+
export interface SftMetadataResponse {
|
|
424
512
|
/**
|
|
425
513
|
*
|
|
426
514
|
* @type {string}
|
|
427
|
-
* @memberof
|
|
515
|
+
* @memberof SftMetadataResponse
|
|
428
516
|
*/
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* @export
|
|
433
|
-
* @namespace TokenNotFoundResponse
|
|
434
|
-
*/
|
|
435
|
-
export declare namespace TokenNotFoundResponse {
|
|
517
|
+
token_uri?: string;
|
|
436
518
|
/**
|
|
437
|
-
*
|
|
438
|
-
* @
|
|
519
|
+
*
|
|
520
|
+
* @type {number}
|
|
521
|
+
* @memberof SftMetadataResponse
|
|
522
|
+
*/
|
|
523
|
+
decimals?: number;
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @type {string}
|
|
527
|
+
* @memberof SftMetadataResponse
|
|
439
528
|
*/
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
529
|
+
total_supply?: string;
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @type {Metadata}
|
|
533
|
+
* @memberof SftMetadataResponse
|
|
534
|
+
*/
|
|
535
|
+
metadata?: Metadata;
|
|
443
536
|
}
|
|
444
537
|
/**
|
|
445
538
|
* StatusApi - fetch parameter creator
|
|
@@ -510,26 +603,40 @@ export declare const TokensApiFetchParamCreator: (configuration?: Configuration)
|
|
|
510
603
|
* @throws {RequiredError}
|
|
511
604
|
*/
|
|
512
605
|
getFtMetadata(principal: string, locale?: string, options?: any): FetchArgs;
|
|
606
|
+
/**
|
|
607
|
+
* Retrieves a list of Fungible Tokens
|
|
608
|
+
* @summary Fungible Tokens
|
|
609
|
+
* @param {string} [name]
|
|
610
|
+
* @param {string} [symbol]
|
|
611
|
+
* @param {string} [address] Stacks Address
|
|
612
|
+
* @param {number} [offset] Result offset
|
|
613
|
+
* @param {number} [limit] Results per page
|
|
614
|
+
* @param {OrderBy} [order_by] Parameter to order results by
|
|
615
|
+
* @param {Order} [order] Results order
|
|
616
|
+
* @param {*} [options] Override http request option.
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
getFungibleTokens(name?: string, symbol?: string, address?: string, offset?: number, limit?: number, order_by?: OrderBy, order?: Order, options?: any): FetchArgs;
|
|
513
620
|
/**
|
|
514
621
|
* Retrieves metadata for a SIP-009 Non-Fungible Token
|
|
515
622
|
* @summary Non-Fungible Token Metadata
|
|
516
623
|
* @param {string} principal SIP-009 compliant smart contract principal
|
|
517
|
-
* @param {number}
|
|
624
|
+
* @param {number} token_id Token ID to retrieve
|
|
518
625
|
* @param {string} [locale] Metadata localization to retrieve
|
|
519
626
|
* @param {*} [options] Override http request option.
|
|
520
627
|
* @throws {RequiredError}
|
|
521
628
|
*/
|
|
522
|
-
getNftMetadata(principal: string,
|
|
629
|
+
getNftMetadata(principal: string, token_id: number, locale?: string, options?: any): FetchArgs;
|
|
523
630
|
/**
|
|
524
631
|
* Retrieves metadata for a SIP-013 Semi-Fungible Token
|
|
525
632
|
* @summary Semi-Fungible Token Metadata
|
|
526
633
|
* @param {string} principal SIP-013 compliant smart contract principal
|
|
527
|
-
* @param {number}
|
|
634
|
+
* @param {number} token_id Token ID to retrieve
|
|
528
635
|
* @param {string} [locale] Metadata localization to retrieve
|
|
529
636
|
* @param {*} [options] Override http request option.
|
|
530
637
|
* @throws {RequiredError}
|
|
531
638
|
*/
|
|
532
|
-
getSftMetadata(principal: string,
|
|
639
|
+
getSftMetadata(principal: string, token_id: number, locale?: string, options?: any): FetchArgs;
|
|
533
640
|
};
|
|
534
641
|
/**
|
|
535
642
|
* TokensApi - functional programming interface
|
|
@@ -545,26 +652,40 @@ export declare const TokensApiFp: (configuration?: Configuration) => {
|
|
|
545
652
|
* @throws {RequiredError}
|
|
546
653
|
*/
|
|
547
654
|
getFtMetadata(principal: string, locale?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FtMetadataResponse>;
|
|
655
|
+
/**
|
|
656
|
+
* Retrieves a list of Fungible Tokens
|
|
657
|
+
* @summary Fungible Tokens
|
|
658
|
+
* @param {string} [name]
|
|
659
|
+
* @param {string} [symbol]
|
|
660
|
+
* @param {string} [address] Stacks Address
|
|
661
|
+
* @param {number} [offset] Result offset
|
|
662
|
+
* @param {number} [limit] Results per page
|
|
663
|
+
* @param {OrderBy} [order_by] Parameter to order results by
|
|
664
|
+
* @param {Order} [order] Results order
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
getFungibleTokens(name?: string, symbol?: string, address?: string, offset?: number, limit?: number, order_by?: OrderBy, order?: Order, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<PaginatedFtBasicMetadataResponse>;
|
|
548
669
|
/**
|
|
549
670
|
* Retrieves metadata for a SIP-009 Non-Fungible Token
|
|
550
671
|
* @summary Non-Fungible Token Metadata
|
|
551
672
|
* @param {string} principal SIP-009 compliant smart contract principal
|
|
552
|
-
* @param {number}
|
|
673
|
+
* @param {number} token_id Token ID to retrieve
|
|
553
674
|
* @param {string} [locale] Metadata localization to retrieve
|
|
554
675
|
* @param {*} [options] Override http request option.
|
|
555
676
|
* @throws {RequiredError}
|
|
556
677
|
*/
|
|
557
|
-
getNftMetadata(principal: string,
|
|
678
|
+
getNftMetadata(principal: string, token_id: number, locale?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<NftMetadataResponse>;
|
|
558
679
|
/**
|
|
559
680
|
* Retrieves metadata for a SIP-013 Semi-Fungible Token
|
|
560
681
|
* @summary Semi-Fungible Token Metadata
|
|
561
682
|
* @param {string} principal SIP-013 compliant smart contract principal
|
|
562
|
-
* @param {number}
|
|
683
|
+
* @param {number} token_id Token ID to retrieve
|
|
563
684
|
* @param {string} [locale] Metadata localization to retrieve
|
|
564
685
|
* @param {*} [options] Override http request option.
|
|
565
686
|
* @throws {RequiredError}
|
|
566
687
|
*/
|
|
567
|
-
getSftMetadata(principal: string,
|
|
688
|
+
getSftMetadata(principal: string, token_id: number, locale?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<SftMetadataResponse>;
|
|
568
689
|
};
|
|
569
690
|
/**
|
|
570
691
|
* TokensApi - factory interface
|
|
@@ -580,26 +701,40 @@ export declare const TokensApiFactory: (configuration?: Configuration, fetch?: F
|
|
|
580
701
|
* @throws {RequiredError}
|
|
581
702
|
*/
|
|
582
703
|
getFtMetadata(principal: string, locale?: string, options?: any): Promise<FtMetadataResponse>;
|
|
704
|
+
/**
|
|
705
|
+
* Retrieves a list of Fungible Tokens
|
|
706
|
+
* @summary Fungible Tokens
|
|
707
|
+
* @param {string} [name]
|
|
708
|
+
* @param {string} [symbol]
|
|
709
|
+
* @param {string} [address] Stacks Address
|
|
710
|
+
* @param {number} [offset] Result offset
|
|
711
|
+
* @param {number} [limit] Results per page
|
|
712
|
+
* @param {OrderBy} [order_by] Parameter to order results by
|
|
713
|
+
* @param {Order} [order] Results order
|
|
714
|
+
* @param {*} [options] Override http request option.
|
|
715
|
+
* @throws {RequiredError}
|
|
716
|
+
*/
|
|
717
|
+
getFungibleTokens(name?: string, symbol?: string, address?: string, offset?: number, limit?: number, order_by?: OrderBy, order?: Order, options?: any): Promise<PaginatedFtBasicMetadataResponse>;
|
|
583
718
|
/**
|
|
584
719
|
* Retrieves metadata for a SIP-009 Non-Fungible Token
|
|
585
720
|
* @summary Non-Fungible Token Metadata
|
|
586
721
|
* @param {string} principal SIP-009 compliant smart contract principal
|
|
587
|
-
* @param {number}
|
|
722
|
+
* @param {number} token_id Token ID to retrieve
|
|
588
723
|
* @param {string} [locale] Metadata localization to retrieve
|
|
589
724
|
* @param {*} [options] Override http request option.
|
|
590
725
|
* @throws {RequiredError}
|
|
591
726
|
*/
|
|
592
|
-
getNftMetadata(principal: string,
|
|
727
|
+
getNftMetadata(principal: string, token_id: number, locale?: string, options?: any): Promise<NftMetadataResponse>;
|
|
593
728
|
/**
|
|
594
729
|
* Retrieves metadata for a SIP-013 Semi-Fungible Token
|
|
595
730
|
* @summary Semi-Fungible Token Metadata
|
|
596
731
|
* @param {string} principal SIP-013 compliant smart contract principal
|
|
597
|
-
* @param {number}
|
|
732
|
+
* @param {number} token_id Token ID to retrieve
|
|
598
733
|
* @param {string} [locale] Metadata localization to retrieve
|
|
599
734
|
* @param {*} [options] Override http request option.
|
|
600
735
|
* @throws {RequiredError}
|
|
601
736
|
*/
|
|
602
|
-
getSftMetadata(principal: string,
|
|
737
|
+
getSftMetadata(principal: string, token_id: number, locale?: string, options?: any): Promise<SftMetadataResponse>;
|
|
603
738
|
};
|
|
604
739
|
/**
|
|
605
740
|
* TokensApi - object-oriented interface
|
|
@@ -618,26 +753,41 @@ export declare class TokensApi extends BaseAPI {
|
|
|
618
753
|
* @memberof TokensApi
|
|
619
754
|
*/
|
|
620
755
|
getFtMetadata(principal: string, locale?: string, options?: any): Promise<FtMetadataResponse>;
|
|
756
|
+
/**
|
|
757
|
+
* Retrieves a list of Fungible Tokens
|
|
758
|
+
* @summary Fungible Tokens
|
|
759
|
+
* @param {string} [name]
|
|
760
|
+
* @param {string} [symbol]
|
|
761
|
+
* @param {string} [address] Stacks Address
|
|
762
|
+
* @param {number} [offset] Result offset
|
|
763
|
+
* @param {number} [limit] Results per page
|
|
764
|
+
* @param {OrderBy} [order_by] Parameter to order results by
|
|
765
|
+
* @param {Order} [order] Results order
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
* @memberof TokensApi
|
|
769
|
+
*/
|
|
770
|
+
getFungibleTokens(name?: string, symbol?: string, address?: string, offset?: number, limit?: number, order_by?: OrderBy, order?: Order, options?: any): Promise<PaginatedFtBasicMetadataResponse>;
|
|
621
771
|
/**
|
|
622
772
|
* Retrieves metadata for a SIP-009 Non-Fungible Token
|
|
623
773
|
* @summary Non-Fungible Token Metadata
|
|
624
774
|
* @param {string} principal SIP-009 compliant smart contract principal
|
|
625
|
-
* @param {number}
|
|
775
|
+
* @param {number} token_id Token ID to retrieve
|
|
626
776
|
* @param {string} [locale] Metadata localization to retrieve
|
|
627
777
|
* @param {*} [options] Override http request option.
|
|
628
778
|
* @throws {RequiredError}
|
|
629
779
|
* @memberof TokensApi
|
|
630
780
|
*/
|
|
631
|
-
getNftMetadata(principal: string,
|
|
781
|
+
getNftMetadata(principal: string, token_id: number, locale?: string, options?: any): Promise<NftMetadataResponse>;
|
|
632
782
|
/**
|
|
633
783
|
* Retrieves metadata for a SIP-013 Semi-Fungible Token
|
|
634
784
|
* @summary Semi-Fungible Token Metadata
|
|
635
785
|
* @param {string} principal SIP-013 compliant smart contract principal
|
|
636
|
-
* @param {number}
|
|
786
|
+
* @param {number} token_id Token ID to retrieve
|
|
637
787
|
* @param {string} [locale] Metadata localization to retrieve
|
|
638
788
|
* @param {*} [options] Override http request option.
|
|
639
789
|
* @throws {RequiredError}
|
|
640
790
|
* @memberof TokensApi
|
|
641
791
|
*/
|
|
642
|
-
getSftMetadata(principal: string,
|
|
792
|
+
getSftMetadata(principal: string, token_id: number, locale?: string, options?: any): Promise<SftMetadataResponse>;
|
|
643
793
|
}
|