@secretkeylabs/stacks-tools 0.6.0-6e4e19c → 0.6.0-9c72bfd
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/README.md +2 -2
- package/dist/index.cjs +88 -85
- package/dist/index.d.cts +22 -487
- package/dist/index.d.ts +22 -487
- package/dist/index.js +85 -82
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -49,7 +49,7 @@ type ListResponse<T = unknown> = {
|
|
|
49
49
|
results: T[];
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
type Args$
|
|
52
|
+
type Args$l = {
|
|
53
53
|
/**
|
|
54
54
|
* Filter to only return transactions with this sender address.
|
|
55
55
|
*/
|
|
@@ -74,7 +74,7 @@ type Args$k = {
|
|
|
74
74
|
order?: "asc" | "desc";
|
|
75
75
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
76
76
|
type MempoolTransactionsResponse = ListResponse<MempoolTransaction>;
|
|
77
|
-
declare function mempoolTransactions(args: Args$
|
|
77
|
+
declare function mempoolTransactions(args: Args$l): Promise<Result$1<MempoolTransactionsResponse, SafeError<"FetchMempoolTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
78
78
|
|
|
79
79
|
type mempoolTransactions$1_MempoolTransactionsResponse = MempoolTransactionsResponse;
|
|
80
80
|
declare const mempoolTransactions$1_mempoolTransactions: typeof mempoolTransactions;
|
|
@@ -421,505 +421,38 @@ declare namespace schemas {
|
|
|
421
421
|
export { type schemas_ContractCallTransaction as ContractCallTransaction, type schemas_SmartContractTransaction as SmartContractTransaction, type schemas_Transaction as Transaction, schemas_baseTransactionSchema as baseTransactionSchema, schemas_contractCallTransactionSchema as contractCallTransactionSchema, schemas_smartContractTransactionSchema as smartContractTransactionSchema, schemas_tokenTransferSchema as tokenTransferSchema, schemas_transactionSchema as transactionSchema };
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
type Args$
|
|
424
|
+
type Args$k = {
|
|
425
425
|
transactionId: string;
|
|
426
426
|
} & ApiRequestOptions;
|
|
427
|
-
declare function getTransaction(args: Args$
|
|
427
|
+
declare function getTransaction(args: Args$k): Promise<Result$1<Transaction>>;
|
|
428
428
|
|
|
429
429
|
declare const getTransaction$1_getTransaction: typeof getTransaction;
|
|
430
430
|
declare namespace getTransaction$1 {
|
|
431
431
|
export { getTransaction$1_getTransaction as getTransaction };
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
+
type Args$j = {
|
|
435
|
+
address: string;
|
|
436
|
+
transactionId: string;
|
|
437
|
+
} & ApiRequestOptions & ApiPaginationOptions;
|
|
438
|
+
type Response$3 = OperationResponse["/extended/v2/addresses/{address}/transactions/{tx_id}/events"];
|
|
439
|
+
declare function eventsForAnAddressTransaction(args: Args$j): Promise<Result$1<Response$3>>;
|
|
440
|
+
|
|
441
|
+
declare const eventsForAnAddressTransaction$1_eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
|
|
442
|
+
declare namespace eventsForAnAddressTransaction$1 {
|
|
443
|
+
export { eventsForAnAddressTransaction$1_eventsForAnAddressTransaction as eventsForAnAddressTransaction };
|
|
444
|
+
}
|
|
445
|
+
|
|
434
446
|
type Args$i = {
|
|
435
447
|
address: string;
|
|
436
448
|
} & ApiRequestOptions & ApiPaginationOptions;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
readonly tx_id: v.StringSchema<undefined>;
|
|
440
|
-
readonly nonce: v.NumberSchema<undefined>;
|
|
441
|
-
readonly fee_rate: v.StringSchema<undefined>;
|
|
442
|
-
readonly sender_address: v.StringSchema<undefined>;
|
|
443
|
-
readonly sponsored: v.BooleanSchema<undefined>;
|
|
444
|
-
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
445
|
-
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
446
|
-
readonly anchor_mode: v.StringSchema<undefined>;
|
|
447
|
-
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
448
|
-
readonly block_hash: v.StringSchema<undefined>;
|
|
449
|
-
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
450
|
-
readonly block_height: v.NumberSchema<undefined>;
|
|
451
|
-
readonly block_time: v.NumberSchema<undefined>;
|
|
452
|
-
readonly block_time_iso: v.StringSchema<undefined>;
|
|
453
|
-
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
454
|
-
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
455
|
-
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
456
|
-
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
457
|
-
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
458
|
-
readonly canonical: v.BooleanSchema<undefined>;
|
|
459
|
-
readonly tx_index: v.NumberSchema<undefined>;
|
|
460
|
-
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
461
|
-
readonly tx_result: v.ObjectSchema<{
|
|
462
|
-
readonly hex: v.StringSchema<undefined>;
|
|
463
|
-
readonly repr: v.StringSchema<undefined>;
|
|
464
|
-
}, undefined>;
|
|
465
|
-
readonly microblock_hash: v.StringSchema<undefined>;
|
|
466
|
-
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
467
|
-
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
468
|
-
readonly event_count: v.NumberSchema<undefined>;
|
|
469
|
-
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
470
|
-
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
471
|
-
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
472
|
-
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
473
|
-
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
474
|
-
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
475
|
-
readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
|
|
476
|
-
readonly contract_call: v.ObjectSchema<{
|
|
477
|
-
readonly contract_id: v.StringSchema<undefined>;
|
|
478
|
-
readonly function_name: v.StringSchema<undefined>;
|
|
479
|
-
readonly function_signature: v.StringSchema<undefined>;
|
|
480
|
-
readonly function_args: v.ArraySchema<v.ObjectSchema<{
|
|
481
|
-
readonly hex: v.StringSchema<undefined>;
|
|
482
|
-
readonly repr: v.StringSchema<undefined>;
|
|
483
|
-
readonly name: v.StringSchema<undefined>;
|
|
484
|
-
readonly type: v.StringSchema<undefined>;
|
|
485
|
-
}, undefined>, undefined>;
|
|
486
|
-
}, undefined>;
|
|
487
|
-
}, undefined>, v.ObjectSchema<{
|
|
488
|
-
readonly tx_id: v.StringSchema<undefined>;
|
|
489
|
-
readonly nonce: v.NumberSchema<undefined>;
|
|
490
|
-
readonly fee_rate: v.StringSchema<undefined>;
|
|
491
|
-
readonly sender_address: v.StringSchema<undefined>;
|
|
492
|
-
readonly sponsored: v.BooleanSchema<undefined>;
|
|
493
|
-
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
494
|
-
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
495
|
-
readonly anchor_mode: v.StringSchema<undefined>;
|
|
496
|
-
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
497
|
-
readonly block_hash: v.StringSchema<undefined>;
|
|
498
|
-
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
499
|
-
readonly block_height: v.NumberSchema<undefined>;
|
|
500
|
-
readonly block_time: v.NumberSchema<undefined>;
|
|
501
|
-
readonly block_time_iso: v.StringSchema<undefined>;
|
|
502
|
-
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
503
|
-
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
504
|
-
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
505
|
-
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
506
|
-
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
507
|
-
readonly canonical: v.BooleanSchema<undefined>;
|
|
508
|
-
readonly tx_index: v.NumberSchema<undefined>;
|
|
509
|
-
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
510
|
-
readonly tx_result: v.ObjectSchema<{
|
|
511
|
-
readonly hex: v.StringSchema<undefined>;
|
|
512
|
-
readonly repr: v.StringSchema<undefined>;
|
|
513
|
-
}, undefined>;
|
|
514
|
-
readonly microblock_hash: v.StringSchema<undefined>;
|
|
515
|
-
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
516
|
-
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
517
|
-
readonly event_count: v.NumberSchema<undefined>;
|
|
518
|
-
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
519
|
-
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
520
|
-
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
521
|
-
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
522
|
-
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
523
|
-
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
524
|
-
readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
|
|
525
|
-
readonly smart_contract: v.ObjectSchema<{
|
|
526
|
-
readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
527
|
-
readonly contract_id: v.StringSchema<undefined>;
|
|
528
|
-
readonly source_code: v.StringSchema<undefined>;
|
|
529
|
-
}, undefined>;
|
|
530
|
-
}, undefined>, v.ObjectSchema<{
|
|
531
|
-
readonly tx_id: v.StringSchema<undefined>;
|
|
532
|
-
readonly nonce: v.NumberSchema<undefined>;
|
|
533
|
-
readonly fee_rate: v.StringSchema<undefined>;
|
|
534
|
-
readonly sender_address: v.StringSchema<undefined>;
|
|
535
|
-
readonly sponsored: v.BooleanSchema<undefined>;
|
|
536
|
-
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
537
|
-
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
538
|
-
readonly anchor_mode: v.StringSchema<undefined>;
|
|
539
|
-
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
540
|
-
readonly block_hash: v.StringSchema<undefined>;
|
|
541
|
-
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
542
|
-
readonly block_height: v.NumberSchema<undefined>;
|
|
543
|
-
readonly block_time: v.NumberSchema<undefined>;
|
|
544
|
-
readonly block_time_iso: v.StringSchema<undefined>;
|
|
545
|
-
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
546
|
-
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
547
|
-
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
548
|
-
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
549
|
-
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
550
|
-
readonly canonical: v.BooleanSchema<undefined>;
|
|
551
|
-
readonly tx_index: v.NumberSchema<undefined>;
|
|
552
|
-
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
553
|
-
readonly tx_result: v.ObjectSchema<{
|
|
554
|
-
readonly hex: v.StringSchema<undefined>;
|
|
555
|
-
readonly repr: v.StringSchema<undefined>;
|
|
556
|
-
}, undefined>;
|
|
557
|
-
readonly microblock_hash: v.StringSchema<undefined>;
|
|
558
|
-
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
559
|
-
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
560
|
-
readonly event_count: v.NumberSchema<undefined>;
|
|
561
|
-
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
562
|
-
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
563
|
-
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
564
|
-
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
565
|
-
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
566
|
-
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
567
|
-
readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
|
|
568
|
-
readonly token_transfer: v.ObjectSchema<{
|
|
569
|
-
readonly recipient_address: v.StringSchema<undefined>;
|
|
570
|
-
readonly amount: v.StringSchema<undefined>;
|
|
571
|
-
readonly memo: v.StringSchema<undefined>;
|
|
572
|
-
}, undefined>;
|
|
573
|
-
}, undefined>], undefined>;
|
|
574
|
-
readonly stx_sent: v.StringSchema<undefined>;
|
|
575
|
-
readonly stx_received: v.StringSchema<undefined>;
|
|
576
|
-
readonly events: v.ObjectSchema<{
|
|
577
|
-
readonly stx: v.ObjectSchema<{
|
|
578
|
-
readonly transfer: v.NumberSchema<undefined>;
|
|
579
|
-
readonly mint: v.NumberSchema<undefined>;
|
|
580
|
-
readonly burn: v.NumberSchema<undefined>;
|
|
581
|
-
}, undefined>;
|
|
582
|
-
readonly ft: v.ObjectSchema<{
|
|
583
|
-
readonly transfer: v.NumberSchema<undefined>;
|
|
584
|
-
readonly mint: v.NumberSchema<undefined>;
|
|
585
|
-
readonly burn: v.NumberSchema<undefined>;
|
|
586
|
-
}, undefined>;
|
|
587
|
-
readonly nft: v.ObjectSchema<{
|
|
588
|
-
readonly transfer: v.NumberSchema<undefined>;
|
|
589
|
-
readonly mint: v.NumberSchema<undefined>;
|
|
590
|
-
readonly burn: v.NumberSchema<undefined>;
|
|
591
|
-
}, undefined>;
|
|
592
|
-
}, undefined>;
|
|
593
|
-
}, undefined>;
|
|
594
|
-
type Result = v.InferOutput<typeof resultSchema>;
|
|
595
|
-
declare const resultsSchema$3: v.ArraySchema<v.ObjectSchema<{
|
|
596
|
-
readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
597
|
-
readonly tx_id: v.StringSchema<undefined>;
|
|
598
|
-
readonly nonce: v.NumberSchema<undefined>;
|
|
599
|
-
readonly fee_rate: v.StringSchema<undefined>;
|
|
600
|
-
readonly sender_address: v.StringSchema<undefined>;
|
|
601
|
-
readonly sponsored: v.BooleanSchema<undefined>;
|
|
602
|
-
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
603
|
-
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
604
|
-
readonly anchor_mode: v.StringSchema<undefined>;
|
|
605
|
-
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
606
|
-
readonly block_hash: v.StringSchema<undefined>;
|
|
607
|
-
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
608
|
-
readonly block_height: v.NumberSchema<undefined>;
|
|
609
|
-
readonly block_time: v.NumberSchema<undefined>;
|
|
610
|
-
readonly block_time_iso: v.StringSchema<undefined>;
|
|
611
|
-
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
612
|
-
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
613
|
-
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
614
|
-
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
615
|
-
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
616
|
-
readonly canonical: v.BooleanSchema<undefined>;
|
|
617
|
-
readonly tx_index: v.NumberSchema<undefined>;
|
|
618
|
-
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
619
|
-
readonly tx_result: v.ObjectSchema<{
|
|
620
|
-
readonly hex: v.StringSchema<undefined>;
|
|
621
|
-
readonly repr: v.StringSchema<undefined>;
|
|
622
|
-
}, undefined>;
|
|
623
|
-
readonly microblock_hash: v.StringSchema<undefined>;
|
|
624
|
-
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
625
|
-
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
626
|
-
readonly event_count: v.NumberSchema<undefined>;
|
|
627
|
-
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
628
|
-
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
629
|
-
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
630
|
-
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
631
|
-
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
632
|
-
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
633
|
-
readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
|
|
634
|
-
readonly contract_call: v.ObjectSchema<{
|
|
635
|
-
readonly contract_id: v.StringSchema<undefined>;
|
|
636
|
-
readonly function_name: v.StringSchema<undefined>;
|
|
637
|
-
readonly function_signature: v.StringSchema<undefined>;
|
|
638
|
-
readonly function_args: v.ArraySchema<v.ObjectSchema<{
|
|
639
|
-
readonly hex: v.StringSchema<undefined>;
|
|
640
|
-
readonly repr: v.StringSchema<undefined>;
|
|
641
|
-
readonly name: v.StringSchema<undefined>;
|
|
642
|
-
readonly type: v.StringSchema<undefined>;
|
|
643
|
-
}, undefined>, undefined>;
|
|
644
|
-
}, undefined>;
|
|
645
|
-
}, undefined>, v.ObjectSchema<{
|
|
646
|
-
readonly tx_id: v.StringSchema<undefined>;
|
|
647
|
-
readonly nonce: v.NumberSchema<undefined>;
|
|
648
|
-
readonly fee_rate: v.StringSchema<undefined>;
|
|
649
|
-
readonly sender_address: v.StringSchema<undefined>;
|
|
650
|
-
readonly sponsored: v.BooleanSchema<undefined>;
|
|
651
|
-
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
652
|
-
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
653
|
-
readonly anchor_mode: v.StringSchema<undefined>;
|
|
654
|
-
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
655
|
-
readonly block_hash: v.StringSchema<undefined>;
|
|
656
|
-
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
657
|
-
readonly block_height: v.NumberSchema<undefined>;
|
|
658
|
-
readonly block_time: v.NumberSchema<undefined>;
|
|
659
|
-
readonly block_time_iso: v.StringSchema<undefined>;
|
|
660
|
-
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
661
|
-
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
662
|
-
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
663
|
-
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
664
|
-
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
665
|
-
readonly canonical: v.BooleanSchema<undefined>;
|
|
666
|
-
readonly tx_index: v.NumberSchema<undefined>;
|
|
667
|
-
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
668
|
-
readonly tx_result: v.ObjectSchema<{
|
|
669
|
-
readonly hex: v.StringSchema<undefined>;
|
|
670
|
-
readonly repr: v.StringSchema<undefined>;
|
|
671
|
-
}, undefined>;
|
|
672
|
-
readonly microblock_hash: v.StringSchema<undefined>;
|
|
673
|
-
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
674
|
-
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
675
|
-
readonly event_count: v.NumberSchema<undefined>;
|
|
676
|
-
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
677
|
-
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
678
|
-
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
679
|
-
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
680
|
-
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
681
|
-
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
682
|
-
readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
|
|
683
|
-
readonly smart_contract: v.ObjectSchema<{
|
|
684
|
-
readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
685
|
-
readonly contract_id: v.StringSchema<undefined>;
|
|
686
|
-
readonly source_code: v.StringSchema<undefined>;
|
|
687
|
-
}, undefined>;
|
|
688
|
-
}, undefined>, v.ObjectSchema<{
|
|
689
|
-
readonly tx_id: v.StringSchema<undefined>;
|
|
690
|
-
readonly nonce: v.NumberSchema<undefined>;
|
|
691
|
-
readonly fee_rate: v.StringSchema<undefined>;
|
|
692
|
-
readonly sender_address: v.StringSchema<undefined>;
|
|
693
|
-
readonly sponsored: v.BooleanSchema<undefined>;
|
|
694
|
-
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
695
|
-
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
696
|
-
readonly anchor_mode: v.StringSchema<undefined>;
|
|
697
|
-
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
698
|
-
readonly block_hash: v.StringSchema<undefined>;
|
|
699
|
-
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
700
|
-
readonly block_height: v.NumberSchema<undefined>;
|
|
701
|
-
readonly block_time: v.NumberSchema<undefined>;
|
|
702
|
-
readonly block_time_iso: v.StringSchema<undefined>;
|
|
703
|
-
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
704
|
-
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
705
|
-
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
706
|
-
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
707
|
-
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
708
|
-
readonly canonical: v.BooleanSchema<undefined>;
|
|
709
|
-
readonly tx_index: v.NumberSchema<undefined>;
|
|
710
|
-
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
711
|
-
readonly tx_result: v.ObjectSchema<{
|
|
712
|
-
readonly hex: v.StringSchema<undefined>;
|
|
713
|
-
readonly repr: v.StringSchema<undefined>;
|
|
714
|
-
}, undefined>;
|
|
715
|
-
readonly microblock_hash: v.StringSchema<undefined>;
|
|
716
|
-
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
717
|
-
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
718
|
-
readonly event_count: v.NumberSchema<undefined>;
|
|
719
|
-
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
720
|
-
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
721
|
-
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
722
|
-
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
723
|
-
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
724
|
-
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
725
|
-
readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
|
|
726
|
-
readonly token_transfer: v.ObjectSchema<{
|
|
727
|
-
readonly recipient_address: v.StringSchema<undefined>;
|
|
728
|
-
readonly amount: v.StringSchema<undefined>;
|
|
729
|
-
readonly memo: v.StringSchema<undefined>;
|
|
730
|
-
}, undefined>;
|
|
731
|
-
}, undefined>], undefined>;
|
|
732
|
-
readonly stx_sent: v.StringSchema<undefined>;
|
|
733
|
-
readonly stx_received: v.StringSchema<undefined>;
|
|
734
|
-
readonly events: v.ObjectSchema<{
|
|
735
|
-
readonly stx: v.ObjectSchema<{
|
|
736
|
-
readonly transfer: v.NumberSchema<undefined>;
|
|
737
|
-
readonly mint: v.NumberSchema<undefined>;
|
|
738
|
-
readonly burn: v.NumberSchema<undefined>;
|
|
739
|
-
}, undefined>;
|
|
740
|
-
readonly ft: v.ObjectSchema<{
|
|
741
|
-
readonly transfer: v.NumberSchema<undefined>;
|
|
742
|
-
readonly mint: v.NumberSchema<undefined>;
|
|
743
|
-
readonly burn: v.NumberSchema<undefined>;
|
|
744
|
-
}, undefined>;
|
|
745
|
-
readonly nft: v.ObjectSchema<{
|
|
746
|
-
readonly transfer: v.NumberSchema<undefined>;
|
|
747
|
-
readonly mint: v.NumberSchema<undefined>;
|
|
748
|
-
readonly burn: v.NumberSchema<undefined>;
|
|
749
|
-
}, undefined>;
|
|
750
|
-
}, undefined>;
|
|
751
|
-
}, undefined>, undefined>;
|
|
752
|
-
type Results$3 = v.InferOutput<typeof resultsSchema$3>;
|
|
753
|
-
declare const addressTransactionsResponseSchema: v.ObjectSchema<{
|
|
754
|
-
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
755
|
-
readonly tx: v.VariantSchema<"tx_type", [v.ObjectSchema<{
|
|
756
|
-
readonly tx_id: v.StringSchema<undefined>;
|
|
757
|
-
readonly nonce: v.NumberSchema<undefined>;
|
|
758
|
-
readonly fee_rate: v.StringSchema<undefined>;
|
|
759
|
-
readonly sender_address: v.StringSchema<undefined>;
|
|
760
|
-
readonly sponsored: v.BooleanSchema<undefined>;
|
|
761
|
-
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
762
|
-
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
763
|
-
readonly anchor_mode: v.StringSchema<undefined>;
|
|
764
|
-
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
765
|
-
readonly block_hash: v.StringSchema<undefined>;
|
|
766
|
-
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
767
|
-
readonly block_height: v.NumberSchema<undefined>;
|
|
768
|
-
readonly block_time: v.NumberSchema<undefined>;
|
|
769
|
-
readonly block_time_iso: v.StringSchema<undefined>;
|
|
770
|
-
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
771
|
-
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
772
|
-
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
773
|
-
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
774
|
-
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
775
|
-
readonly canonical: v.BooleanSchema<undefined>;
|
|
776
|
-
readonly tx_index: v.NumberSchema<undefined>;
|
|
777
|
-
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
778
|
-
readonly tx_result: v.ObjectSchema<{
|
|
779
|
-
readonly hex: v.StringSchema<undefined>;
|
|
780
|
-
readonly repr: v.StringSchema<undefined>;
|
|
781
|
-
}, undefined>;
|
|
782
|
-
readonly microblock_hash: v.StringSchema<undefined>;
|
|
783
|
-
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
784
|
-
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
785
|
-
readonly event_count: v.NumberSchema<undefined>;
|
|
786
|
-
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
787
|
-
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
788
|
-
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
789
|
-
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
790
|
-
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
791
|
-
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
792
|
-
readonly tx_type: v.LiteralSchema<"contract_call", undefined>;
|
|
793
|
-
readonly contract_call: v.ObjectSchema<{
|
|
794
|
-
readonly contract_id: v.StringSchema<undefined>;
|
|
795
|
-
readonly function_name: v.StringSchema<undefined>;
|
|
796
|
-
readonly function_signature: v.StringSchema<undefined>;
|
|
797
|
-
readonly function_args: v.ArraySchema<v.ObjectSchema<{
|
|
798
|
-
readonly hex: v.StringSchema<undefined>;
|
|
799
|
-
readonly repr: v.StringSchema<undefined>;
|
|
800
|
-
readonly name: v.StringSchema<undefined>;
|
|
801
|
-
readonly type: v.StringSchema<undefined>;
|
|
802
|
-
}, undefined>, undefined>;
|
|
803
|
-
}, undefined>;
|
|
804
|
-
}, undefined>, v.ObjectSchema<{
|
|
805
|
-
readonly tx_id: v.StringSchema<undefined>;
|
|
806
|
-
readonly nonce: v.NumberSchema<undefined>;
|
|
807
|
-
readonly fee_rate: v.StringSchema<undefined>;
|
|
808
|
-
readonly sender_address: v.StringSchema<undefined>;
|
|
809
|
-
readonly sponsored: v.BooleanSchema<undefined>;
|
|
810
|
-
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
811
|
-
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
812
|
-
readonly anchor_mode: v.StringSchema<undefined>;
|
|
813
|
-
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
814
|
-
readonly block_hash: v.StringSchema<undefined>;
|
|
815
|
-
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
816
|
-
readonly block_height: v.NumberSchema<undefined>;
|
|
817
|
-
readonly block_time: v.NumberSchema<undefined>;
|
|
818
|
-
readonly block_time_iso: v.StringSchema<undefined>;
|
|
819
|
-
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
820
|
-
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
821
|
-
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
822
|
-
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
823
|
-
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
824
|
-
readonly canonical: v.BooleanSchema<undefined>;
|
|
825
|
-
readonly tx_index: v.NumberSchema<undefined>;
|
|
826
|
-
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
827
|
-
readonly tx_result: v.ObjectSchema<{
|
|
828
|
-
readonly hex: v.StringSchema<undefined>;
|
|
829
|
-
readonly repr: v.StringSchema<undefined>;
|
|
830
|
-
}, undefined>;
|
|
831
|
-
readonly microblock_hash: v.StringSchema<undefined>;
|
|
832
|
-
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
833
|
-
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
834
|
-
readonly event_count: v.NumberSchema<undefined>;
|
|
835
|
-
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
836
|
-
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
837
|
-
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
838
|
-
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
839
|
-
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
840
|
-
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
841
|
-
readonly tx_type: v.LiteralSchema<"smart_contract", undefined>;
|
|
842
|
-
readonly smart_contract: v.ObjectSchema<{
|
|
843
|
-
readonly clarity_version: v.UnionSchema<[v.NullSchema<undefined>, v.NumberSchema<undefined>], undefined>;
|
|
844
|
-
readonly contract_id: v.StringSchema<undefined>;
|
|
845
|
-
readonly source_code: v.StringSchema<undefined>;
|
|
846
|
-
}, undefined>;
|
|
847
|
-
}, undefined>, v.ObjectSchema<{
|
|
848
|
-
readonly tx_id: v.StringSchema<undefined>;
|
|
849
|
-
readonly nonce: v.NumberSchema<undefined>;
|
|
850
|
-
readonly fee_rate: v.StringSchema<undefined>;
|
|
851
|
-
readonly sender_address: v.StringSchema<undefined>;
|
|
852
|
-
readonly sponsored: v.BooleanSchema<undefined>;
|
|
853
|
-
readonly post_condition_mode: v.StringSchema<undefined>;
|
|
854
|
-
readonly post_conditions: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
855
|
-
readonly anchor_mode: v.StringSchema<undefined>;
|
|
856
|
-
readonly is_unanchored: v.BooleanSchema<undefined>;
|
|
857
|
-
readonly block_hash: v.StringSchema<undefined>;
|
|
858
|
-
readonly parent_block_hash: v.StringSchema<undefined>;
|
|
859
|
-
readonly block_height: v.NumberSchema<undefined>;
|
|
860
|
-
readonly block_time: v.NumberSchema<undefined>;
|
|
861
|
-
readonly block_time_iso: v.StringSchema<undefined>;
|
|
862
|
-
readonly burn_block_height: v.NumberSchema<undefined>;
|
|
863
|
-
readonly burn_block_time: v.NumberSchema<undefined>;
|
|
864
|
-
readonly burn_block_time_iso: v.StringSchema<undefined>;
|
|
865
|
-
readonly parent_burn_block_time: v.NumberSchema<undefined>;
|
|
866
|
-
readonly parent_burn_block_time_iso: v.StringSchema<undefined>;
|
|
867
|
-
readonly canonical: v.BooleanSchema<undefined>;
|
|
868
|
-
readonly tx_index: v.NumberSchema<undefined>;
|
|
869
|
-
readonly tx_status: v.UnionSchema<[v.LiteralSchema<"success", undefined>, v.LiteralSchema<"abort_by_response", undefined>, v.LiteralSchema<"abort_by_post_condition", undefined>], undefined>;
|
|
870
|
-
readonly tx_result: v.ObjectSchema<{
|
|
871
|
-
readonly hex: v.StringSchema<undefined>;
|
|
872
|
-
readonly repr: v.StringSchema<undefined>;
|
|
873
|
-
}, undefined>;
|
|
874
|
-
readonly microblock_hash: v.StringSchema<undefined>;
|
|
875
|
-
readonly microblock_sequence: v.NumberSchema<undefined>;
|
|
876
|
-
readonly microblock_canonical: v.BooleanSchema<undefined>;
|
|
877
|
-
readonly event_count: v.NumberSchema<undefined>;
|
|
878
|
-
readonly events: v.ArraySchema<v.UnknownSchema, undefined>;
|
|
879
|
-
readonly execution_cost_read_count: v.NumberSchema<undefined>;
|
|
880
|
-
readonly execution_cost_read_length: v.NumberSchema<undefined>;
|
|
881
|
-
readonly execution_cost_runtime: v.NumberSchema<undefined>;
|
|
882
|
-
readonly execution_cost_write_count: v.NumberSchema<undefined>;
|
|
883
|
-
readonly execution_cost_write_length: v.NumberSchema<undefined>;
|
|
884
|
-
readonly tx_type: v.LiteralSchema<"token_transfer", undefined>;
|
|
885
|
-
readonly token_transfer: v.ObjectSchema<{
|
|
886
|
-
readonly recipient_address: v.StringSchema<undefined>;
|
|
887
|
-
readonly amount: v.StringSchema<undefined>;
|
|
888
|
-
readonly memo: v.StringSchema<undefined>;
|
|
889
|
-
}, undefined>;
|
|
890
|
-
}, undefined>], undefined>;
|
|
891
|
-
readonly stx_sent: v.StringSchema<undefined>;
|
|
892
|
-
readonly stx_received: v.StringSchema<undefined>;
|
|
893
|
-
readonly events: v.ObjectSchema<{
|
|
894
|
-
readonly stx: v.ObjectSchema<{
|
|
895
|
-
readonly transfer: v.NumberSchema<undefined>;
|
|
896
|
-
readonly mint: v.NumberSchema<undefined>;
|
|
897
|
-
readonly burn: v.NumberSchema<undefined>;
|
|
898
|
-
}, undefined>;
|
|
899
|
-
readonly ft: v.ObjectSchema<{
|
|
900
|
-
readonly transfer: v.NumberSchema<undefined>;
|
|
901
|
-
readonly mint: v.NumberSchema<undefined>;
|
|
902
|
-
readonly burn: v.NumberSchema<undefined>;
|
|
903
|
-
}, undefined>;
|
|
904
|
-
readonly nft: v.ObjectSchema<{
|
|
905
|
-
readonly transfer: v.NumberSchema<undefined>;
|
|
906
|
-
readonly mint: v.NumberSchema<undefined>;
|
|
907
|
-
readonly burn: v.NumberSchema<undefined>;
|
|
908
|
-
}, undefined>;
|
|
909
|
-
}, undefined>;
|
|
910
|
-
}, undefined>, undefined>;
|
|
911
|
-
readonly limit: v.NumberSchema<undefined>;
|
|
912
|
-
readonly offset: v.NumberSchema<undefined>;
|
|
913
|
-
readonly total: v.NumberSchema<undefined>;
|
|
914
|
-
}, undefined>;
|
|
915
|
-
type AddressTransactionsResponse = v.InferOutput<typeof addressTransactionsResponseSchema>;
|
|
916
|
-
declare function addressTransactions(args: Args$i): Promise<Result$1<AddressTransactionsResponse, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
449
|
+
type Result = OperationResponse["/extended/v2/addresses/{address}/transactions"];
|
|
450
|
+
declare function addressTransactions(args: Args$i): Promise<Result$1<Result, SafeError<"FetchAddressTransactionsError" | "ParseBodyError" | "ValidateDataError">>>;
|
|
917
451
|
|
|
918
|
-
type addressTransactions$1_AddressTransactionsResponse = AddressTransactionsResponse;
|
|
919
452
|
type addressTransactions$1_Result = Result;
|
|
920
453
|
declare const addressTransactions$1_addressTransactions: typeof addressTransactions;
|
|
921
454
|
declare namespace addressTransactions$1 {
|
|
922
|
-
export { type addressTransactions$
|
|
455
|
+
export { type addressTransactions$1_Result as Result, addressTransactions$1_addressTransactions as addressTransactions };
|
|
923
456
|
}
|
|
924
457
|
|
|
925
458
|
type Args$h = {
|
|
@@ -1343,13 +876,14 @@ declare namespace index$9 {
|
|
|
1343
876
|
|
|
1344
877
|
declare const transactions: {
|
|
1345
878
|
addressTransactions: typeof addressTransactions;
|
|
879
|
+
eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
|
|
1346
880
|
getTransaction: typeof getTransaction;
|
|
1347
881
|
mempoolTransactions: typeof mempoolTransactions;
|
|
1348
882
|
};
|
|
1349
883
|
|
|
1350
884
|
declare const index$8_transactions: typeof transactions;
|
|
1351
885
|
declare namespace index$8 {
|
|
1352
|
-
export { addressTransactions$1 as AddressTransactions, schemas as Common, getTransaction$1 as GetTransaction, mempoolTransactions$1 as MempoolTransactions, index$8_transactions as transactions };
|
|
886
|
+
export { addressTransactions$1 as AddressTransactions, schemas as Common, eventsForAnAddressTransaction$1 as EventsForAnAddressTransaction, getTransaction$1 as GetTransaction, mempoolTransactions$1 as MempoolTransactions, index$8_transactions as transactions };
|
|
1353
887
|
}
|
|
1354
888
|
|
|
1355
889
|
declare const mempool: {
|
|
@@ -1390,6 +924,7 @@ declare const stacksApi: {
|
|
|
1390
924
|
};
|
|
1391
925
|
transactions: {
|
|
1392
926
|
addressTransactions: typeof addressTransactions;
|
|
927
|
+
eventsForAnAddressTransaction: typeof eventsForAnAddressTransaction;
|
|
1393
928
|
getTransaction: typeof getTransaction;
|
|
1394
929
|
mempoolTransactions: typeof mempoolTransactions;
|
|
1395
930
|
};
|