@stacks/blockchain-api-client 9.0.0-next.28 → 9.0.0-next.30

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.
@@ -1690,6 +1690,26 @@ export interface paths {
1690
1690
  patch?: never;
1691
1691
  trace?: never;
1692
1692
  };
1693
+ "/extended/v3/principals/{principal}/transactions": {
1694
+ parameters: {
1695
+ query?: never;
1696
+ header?: never;
1697
+ path?: never;
1698
+ cookie?: never;
1699
+ };
1700
+ /**
1701
+ * Get principal transactions
1702
+ * @description Returns a list of confirmed transactions sent or received by a Stacks principal, including the transaction summary, the involvement of the principal in the transaction, and the balances affected by the transaction.
1703
+ */
1704
+ get: operations["get_principal_transactions"];
1705
+ put?: never;
1706
+ post?: never;
1707
+ delete?: never;
1708
+ options?: never;
1709
+ head?: never;
1710
+ patch?: never;
1711
+ trace?: never;
1712
+ };
1693
1713
  "/v1/names/{name}/zonefile/{zoneFileHash}": {
1694
1714
  parameters: {
1695
1715
  query?: never;
@@ -31664,6 +31684,341 @@ export interface operations {
31664
31684
  };
31665
31685
  };
31666
31686
  };
31687
+ get_principal_transactions: {
31688
+ parameters: {
31689
+ query?: {
31690
+ /** @description Number of results per page */
31691
+ limit?: number;
31692
+ /** @description Cursor for paginating transactions. Format: block_height:microblock_sequence:tx_index */
31693
+ cursor?: string;
31694
+ };
31695
+ header?: never;
31696
+ path: {
31697
+ principal: string;
31698
+ };
31699
+ cookie?: never;
31700
+ };
31701
+ requestBody?: never;
31702
+ responses: {
31703
+ /** @description Default Response */
31704
+ 200: {
31705
+ headers: {
31706
+ [name: string]: unknown;
31707
+ };
31708
+ content: {
31709
+ "application/json": {
31710
+ /** @example 1 */
31711
+ total: number;
31712
+ /**
31713
+ * @description Number of results per page
31714
+ * @default 20
31715
+ */
31716
+ limit: number;
31717
+ cursor: {
31718
+ next: string | null;
31719
+ previous: string | null;
31720
+ current: string | null;
31721
+ };
31722
+ results: {
31723
+ transaction: {
31724
+ /** @description Transaction ID */
31725
+ tx_id: string;
31726
+ sender: {
31727
+ /** @description Address of the transaction initiator */
31728
+ address: string;
31729
+ /** @description Nonce of the transaction initiator */
31730
+ nonce: number;
31731
+ };
31732
+ sponsor: {
31733
+ /** @description Address of the transaction initiator */
31734
+ address: string;
31735
+ /** @description Nonce of the transaction initiator */
31736
+ nonce: number;
31737
+ } | null;
31738
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31739
+ fee_rate: string;
31740
+ block: {
31741
+ /** @description Height of the block this transactions was associated with */
31742
+ height: number;
31743
+ /** @description Hash of the blocked this transactions was associated with */
31744
+ hash: string;
31745
+ /** @description Hash of the index block this transactions was associated with */
31746
+ index_hash: string;
31747
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31748
+ time: number;
31749
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31750
+ tx_index: number;
31751
+ };
31752
+ bitcoin_block: {
31753
+ /** @description Height of the anchor burn block. */
31754
+ height: number;
31755
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31756
+ time: number;
31757
+ };
31758
+ /** @description Status of the transaction */
31759
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31760
+ /** @enum {string} */
31761
+ type: "token_transfer";
31762
+ token_transfer: {
31763
+ recipient: string;
31764
+ /** @description Transfer amount as Integer string (64-bit unsigned integer) */
31765
+ amount: string;
31766
+ memo: string | null;
31767
+ };
31768
+ } | {
31769
+ /** @description Transaction ID */
31770
+ tx_id: string;
31771
+ sender: {
31772
+ /** @description Address of the transaction initiator */
31773
+ address: string;
31774
+ /** @description Nonce of the transaction initiator */
31775
+ nonce: number;
31776
+ };
31777
+ sponsor: {
31778
+ /** @description Address of the transaction initiator */
31779
+ address: string;
31780
+ /** @description Nonce of the transaction initiator */
31781
+ nonce: number;
31782
+ } | null;
31783
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31784
+ fee_rate: string;
31785
+ block: {
31786
+ /** @description Height of the block this transactions was associated with */
31787
+ height: number;
31788
+ /** @description Hash of the blocked this transactions was associated with */
31789
+ hash: string;
31790
+ /** @description Hash of the index block this transactions was associated with */
31791
+ index_hash: string;
31792
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31793
+ time: number;
31794
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31795
+ tx_index: number;
31796
+ };
31797
+ bitcoin_block: {
31798
+ /** @description Height of the anchor burn block. */
31799
+ height: number;
31800
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31801
+ time: number;
31802
+ };
31803
+ /** @description Status of the transaction */
31804
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31805
+ /** @enum {string} */
31806
+ type: "smart_contract";
31807
+ smart_contract: {
31808
+ clarity_version: number | null;
31809
+ /** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
31810
+ contract_id: string;
31811
+ };
31812
+ } | {
31813
+ /** @description Transaction ID */
31814
+ tx_id: string;
31815
+ sender: {
31816
+ /** @description Address of the transaction initiator */
31817
+ address: string;
31818
+ /** @description Nonce of the transaction initiator */
31819
+ nonce: number;
31820
+ };
31821
+ sponsor: {
31822
+ /** @description Address of the transaction initiator */
31823
+ address: string;
31824
+ /** @description Nonce of the transaction initiator */
31825
+ nonce: number;
31826
+ } | null;
31827
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31828
+ fee_rate: string;
31829
+ block: {
31830
+ /** @description Height of the block this transactions was associated with */
31831
+ height: number;
31832
+ /** @description Hash of the blocked this transactions was associated with */
31833
+ hash: string;
31834
+ /** @description Hash of the index block this transactions was associated with */
31835
+ index_hash: string;
31836
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31837
+ time: number;
31838
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31839
+ tx_index: number;
31840
+ };
31841
+ bitcoin_block: {
31842
+ /** @description Height of the anchor burn block. */
31843
+ height: number;
31844
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31845
+ time: number;
31846
+ };
31847
+ /** @description Status of the transaction */
31848
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31849
+ /** @enum {string} */
31850
+ type: "contract_call";
31851
+ contract_call: {
31852
+ /** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
31853
+ contract_id: string;
31854
+ /** @description Name of the Clarity function to be invoked */
31855
+ function_name: string;
31856
+ };
31857
+ } | {
31858
+ /** @description Transaction ID */
31859
+ tx_id: string;
31860
+ sender: {
31861
+ /** @description Address of the transaction initiator */
31862
+ address: string;
31863
+ /** @description Nonce of the transaction initiator */
31864
+ nonce: number;
31865
+ };
31866
+ sponsor: {
31867
+ /** @description Address of the transaction initiator */
31868
+ address: string;
31869
+ /** @description Nonce of the transaction initiator */
31870
+ nonce: number;
31871
+ } | null;
31872
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31873
+ fee_rate: string;
31874
+ block: {
31875
+ /** @description Height of the block this transactions was associated with */
31876
+ height: number;
31877
+ /** @description Hash of the blocked this transactions was associated with */
31878
+ hash: string;
31879
+ /** @description Hash of the index block this transactions was associated with */
31880
+ index_hash: string;
31881
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31882
+ time: number;
31883
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31884
+ tx_index: number;
31885
+ };
31886
+ bitcoin_block: {
31887
+ /** @description Height of the anchor burn block. */
31888
+ height: number;
31889
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31890
+ time: number;
31891
+ };
31892
+ /** @description Status of the transaction */
31893
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31894
+ /** @enum {string} */
31895
+ type: "poison_microblock";
31896
+ } | {
31897
+ /** @description Transaction ID */
31898
+ tx_id: string;
31899
+ sender: {
31900
+ /** @description Address of the transaction initiator */
31901
+ address: string;
31902
+ /** @description Nonce of the transaction initiator */
31903
+ nonce: number;
31904
+ };
31905
+ sponsor: {
31906
+ /** @description Address of the transaction initiator */
31907
+ address: string;
31908
+ /** @description Nonce of the transaction initiator */
31909
+ nonce: number;
31910
+ } | null;
31911
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31912
+ fee_rate: string;
31913
+ block: {
31914
+ /** @description Height of the block this transactions was associated with */
31915
+ height: number;
31916
+ /** @description Hash of the blocked this transactions was associated with */
31917
+ hash: string;
31918
+ /** @description Hash of the index block this transactions was associated with */
31919
+ index_hash: string;
31920
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31921
+ time: number;
31922
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31923
+ tx_index: number;
31924
+ };
31925
+ bitcoin_block: {
31926
+ /** @description Height of the anchor burn block. */
31927
+ height: number;
31928
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31929
+ time: number;
31930
+ };
31931
+ /** @description Status of the transaction */
31932
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31933
+ /** @enum {string} */
31934
+ type: "coinbase";
31935
+ coinbase: {
31936
+ alt_recipient: string | null;
31937
+ };
31938
+ } | {
31939
+ /** @description Transaction ID */
31940
+ tx_id: string;
31941
+ sender: {
31942
+ /** @description Address of the transaction initiator */
31943
+ address: string;
31944
+ /** @description Nonce of the transaction initiator */
31945
+ nonce: number;
31946
+ };
31947
+ sponsor: {
31948
+ /** @description Address of the transaction initiator */
31949
+ address: string;
31950
+ /** @description Nonce of the transaction initiator */
31951
+ nonce: number;
31952
+ } | null;
31953
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31954
+ fee_rate: string;
31955
+ block: {
31956
+ /** @description Height of the block this transactions was associated with */
31957
+ height: number;
31958
+ /** @description Hash of the blocked this transactions was associated with */
31959
+ hash: string;
31960
+ /** @description Hash of the index block this transactions was associated with */
31961
+ index_hash: string;
31962
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31963
+ time: number;
31964
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31965
+ tx_index: number;
31966
+ };
31967
+ bitcoin_block: {
31968
+ /** @description Height of the anchor burn block. */
31969
+ height: number;
31970
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31971
+ time: number;
31972
+ };
31973
+ /** @description Status of the transaction */
31974
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31975
+ /** @enum {string} */
31976
+ type: "tenure_change";
31977
+ tenure_change: {
31978
+ /** @description Cause of change in mining tenure. Depending on cause, tenure can be ended or extended. */
31979
+ cause: "block_found" | "extended" | "extended_runtime" | "extended_read_count" | "extended_read_length" | "extended_write_count" | "extended_write_length";
31980
+ };
31981
+ };
31982
+ /** @description How the principal is involved in the transaction. */
31983
+ involvement: "sender" | "sponsor" | "affected";
31984
+ balance_changes: {
31985
+ stx: {
31986
+ /** @description Total sent from the given address, including the tx fee, in micro-STX as an integer string. */
31987
+ sent: string;
31988
+ /** @description Total received by the given address in micro-STX as an integer string. */
31989
+ received: string;
31990
+ /** @description Net change in the principal's STX balance in micro-STX as an integer string. */
31991
+ net: string;
31992
+ };
31993
+ };
31994
+ affected_balances: {
31995
+ /** @description Whether the principal's STX balance was affected by the transaction */
31996
+ stx: boolean;
31997
+ /** @description Whether the principal's FT balance was affected by the transaction */
31998
+ ft: boolean;
31999
+ /** @description Whether the principal's NFT balance was affected by the transaction */
32000
+ nft: boolean;
32001
+ };
32002
+ }[];
32003
+ };
32004
+ };
32005
+ };
32006
+ /** @description Default Response */
32007
+ "4XX": {
32008
+ headers: {
32009
+ [name: string]: unknown;
32010
+ };
32011
+ content: {
32012
+ "application/json": {
32013
+ error: string;
32014
+ message?: string;
32015
+ } & {
32016
+ [key: string]: unknown;
32017
+ };
32018
+ };
32019
+ };
32020
+ };
32021
+ };
31667
32022
  get_historical_zone_file: {
31668
32023
  parameters: {
31669
32024
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacks/blockchain-api-client",
3
- "version": "9.0.0-next.28",
3
+ "version": "9.0.0-next.30",
4
4
  "access": "public",
5
5
  "description": "Client for the Stacks Blockchain API",
6
6
  "homepage": "https://github.com/hirosystems/stacks-blockchain-api/tree/master/client#readme",
@@ -1690,6 +1690,26 @@ export interface paths {
1690
1690
  patch?: never;
1691
1691
  trace?: never;
1692
1692
  };
1693
+ "/extended/v3/principals/{principal}/transactions": {
1694
+ parameters: {
1695
+ query?: never;
1696
+ header?: never;
1697
+ path?: never;
1698
+ cookie?: never;
1699
+ };
1700
+ /**
1701
+ * Get principal transactions
1702
+ * @description Returns a list of confirmed transactions sent or received by a Stacks principal, including the transaction summary, the involvement of the principal in the transaction, and the balances affected by the transaction.
1703
+ */
1704
+ get: operations["get_principal_transactions"];
1705
+ put?: never;
1706
+ post?: never;
1707
+ delete?: never;
1708
+ options?: never;
1709
+ head?: never;
1710
+ patch?: never;
1711
+ trace?: never;
1712
+ };
1693
1713
  "/v1/names/{name}/zonefile/{zoneFileHash}": {
1694
1714
  parameters: {
1695
1715
  query?: never;
@@ -31664,6 +31684,341 @@ export interface operations {
31664
31684
  };
31665
31685
  };
31666
31686
  };
31687
+ get_principal_transactions: {
31688
+ parameters: {
31689
+ query?: {
31690
+ /** @description Number of results per page */
31691
+ limit?: number;
31692
+ /** @description Cursor for paginating transactions. Format: block_height:microblock_sequence:tx_index */
31693
+ cursor?: string;
31694
+ };
31695
+ header?: never;
31696
+ path: {
31697
+ principal: string;
31698
+ };
31699
+ cookie?: never;
31700
+ };
31701
+ requestBody?: never;
31702
+ responses: {
31703
+ /** @description Default Response */
31704
+ 200: {
31705
+ headers: {
31706
+ [name: string]: unknown;
31707
+ };
31708
+ content: {
31709
+ "application/json": {
31710
+ /** @example 1 */
31711
+ total: number;
31712
+ /**
31713
+ * @description Number of results per page
31714
+ * @default 20
31715
+ */
31716
+ limit: number;
31717
+ cursor: {
31718
+ next: string | null;
31719
+ previous: string | null;
31720
+ current: string | null;
31721
+ };
31722
+ results: {
31723
+ transaction: {
31724
+ /** @description Transaction ID */
31725
+ tx_id: string;
31726
+ sender: {
31727
+ /** @description Address of the transaction initiator */
31728
+ address: string;
31729
+ /** @description Nonce of the transaction initiator */
31730
+ nonce: number;
31731
+ };
31732
+ sponsor: {
31733
+ /** @description Address of the transaction initiator */
31734
+ address: string;
31735
+ /** @description Nonce of the transaction initiator */
31736
+ nonce: number;
31737
+ } | null;
31738
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31739
+ fee_rate: string;
31740
+ block: {
31741
+ /** @description Height of the block this transactions was associated with */
31742
+ height: number;
31743
+ /** @description Hash of the blocked this transactions was associated with */
31744
+ hash: string;
31745
+ /** @description Hash of the index block this transactions was associated with */
31746
+ index_hash: string;
31747
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31748
+ time: number;
31749
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31750
+ tx_index: number;
31751
+ };
31752
+ bitcoin_block: {
31753
+ /** @description Height of the anchor burn block. */
31754
+ height: number;
31755
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31756
+ time: number;
31757
+ };
31758
+ /** @description Status of the transaction */
31759
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31760
+ /** @enum {string} */
31761
+ type: "token_transfer";
31762
+ token_transfer: {
31763
+ recipient: string;
31764
+ /** @description Transfer amount as Integer string (64-bit unsigned integer) */
31765
+ amount: string;
31766
+ memo: string | null;
31767
+ };
31768
+ } | {
31769
+ /** @description Transaction ID */
31770
+ tx_id: string;
31771
+ sender: {
31772
+ /** @description Address of the transaction initiator */
31773
+ address: string;
31774
+ /** @description Nonce of the transaction initiator */
31775
+ nonce: number;
31776
+ };
31777
+ sponsor: {
31778
+ /** @description Address of the transaction initiator */
31779
+ address: string;
31780
+ /** @description Nonce of the transaction initiator */
31781
+ nonce: number;
31782
+ } | null;
31783
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31784
+ fee_rate: string;
31785
+ block: {
31786
+ /** @description Height of the block this transactions was associated with */
31787
+ height: number;
31788
+ /** @description Hash of the blocked this transactions was associated with */
31789
+ hash: string;
31790
+ /** @description Hash of the index block this transactions was associated with */
31791
+ index_hash: string;
31792
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31793
+ time: number;
31794
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31795
+ tx_index: number;
31796
+ };
31797
+ bitcoin_block: {
31798
+ /** @description Height of the anchor burn block. */
31799
+ height: number;
31800
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31801
+ time: number;
31802
+ };
31803
+ /** @description Status of the transaction */
31804
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31805
+ /** @enum {string} */
31806
+ type: "smart_contract";
31807
+ smart_contract: {
31808
+ clarity_version: number | null;
31809
+ /** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
31810
+ contract_id: string;
31811
+ };
31812
+ } | {
31813
+ /** @description Transaction ID */
31814
+ tx_id: string;
31815
+ sender: {
31816
+ /** @description Address of the transaction initiator */
31817
+ address: string;
31818
+ /** @description Nonce of the transaction initiator */
31819
+ nonce: number;
31820
+ };
31821
+ sponsor: {
31822
+ /** @description Address of the transaction initiator */
31823
+ address: string;
31824
+ /** @description Nonce of the transaction initiator */
31825
+ nonce: number;
31826
+ } | null;
31827
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31828
+ fee_rate: string;
31829
+ block: {
31830
+ /** @description Height of the block this transactions was associated with */
31831
+ height: number;
31832
+ /** @description Hash of the blocked this transactions was associated with */
31833
+ hash: string;
31834
+ /** @description Hash of the index block this transactions was associated with */
31835
+ index_hash: string;
31836
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31837
+ time: number;
31838
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31839
+ tx_index: number;
31840
+ };
31841
+ bitcoin_block: {
31842
+ /** @description Height of the anchor burn block. */
31843
+ height: number;
31844
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31845
+ time: number;
31846
+ };
31847
+ /** @description Status of the transaction */
31848
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31849
+ /** @enum {string} */
31850
+ type: "contract_call";
31851
+ contract_call: {
31852
+ /** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
31853
+ contract_id: string;
31854
+ /** @description Name of the Clarity function to be invoked */
31855
+ function_name: string;
31856
+ };
31857
+ } | {
31858
+ /** @description Transaction ID */
31859
+ tx_id: string;
31860
+ sender: {
31861
+ /** @description Address of the transaction initiator */
31862
+ address: string;
31863
+ /** @description Nonce of the transaction initiator */
31864
+ nonce: number;
31865
+ };
31866
+ sponsor: {
31867
+ /** @description Address of the transaction initiator */
31868
+ address: string;
31869
+ /** @description Nonce of the transaction initiator */
31870
+ nonce: number;
31871
+ } | null;
31872
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31873
+ fee_rate: string;
31874
+ block: {
31875
+ /** @description Height of the block this transactions was associated with */
31876
+ height: number;
31877
+ /** @description Hash of the blocked this transactions was associated with */
31878
+ hash: string;
31879
+ /** @description Hash of the index block this transactions was associated with */
31880
+ index_hash: string;
31881
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31882
+ time: number;
31883
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31884
+ tx_index: number;
31885
+ };
31886
+ bitcoin_block: {
31887
+ /** @description Height of the anchor burn block. */
31888
+ height: number;
31889
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31890
+ time: number;
31891
+ };
31892
+ /** @description Status of the transaction */
31893
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31894
+ /** @enum {string} */
31895
+ type: "poison_microblock";
31896
+ } | {
31897
+ /** @description Transaction ID */
31898
+ tx_id: string;
31899
+ sender: {
31900
+ /** @description Address of the transaction initiator */
31901
+ address: string;
31902
+ /** @description Nonce of the transaction initiator */
31903
+ nonce: number;
31904
+ };
31905
+ sponsor: {
31906
+ /** @description Address of the transaction initiator */
31907
+ address: string;
31908
+ /** @description Nonce of the transaction initiator */
31909
+ nonce: number;
31910
+ } | null;
31911
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31912
+ fee_rate: string;
31913
+ block: {
31914
+ /** @description Height of the block this transactions was associated with */
31915
+ height: number;
31916
+ /** @description Hash of the blocked this transactions was associated with */
31917
+ hash: string;
31918
+ /** @description Hash of the index block this transactions was associated with */
31919
+ index_hash: string;
31920
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31921
+ time: number;
31922
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31923
+ tx_index: number;
31924
+ };
31925
+ bitcoin_block: {
31926
+ /** @description Height of the anchor burn block. */
31927
+ height: number;
31928
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31929
+ time: number;
31930
+ };
31931
+ /** @description Status of the transaction */
31932
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31933
+ /** @enum {string} */
31934
+ type: "coinbase";
31935
+ coinbase: {
31936
+ alt_recipient: string | null;
31937
+ };
31938
+ } | {
31939
+ /** @description Transaction ID */
31940
+ tx_id: string;
31941
+ sender: {
31942
+ /** @description Address of the transaction initiator */
31943
+ address: string;
31944
+ /** @description Nonce of the transaction initiator */
31945
+ nonce: number;
31946
+ };
31947
+ sponsor: {
31948
+ /** @description Address of the transaction initiator */
31949
+ address: string;
31950
+ /** @description Nonce of the transaction initiator */
31951
+ nonce: number;
31952
+ } | null;
31953
+ /** @description Transaction fee as Integer string (64-bit unsigned integer). */
31954
+ fee_rate: string;
31955
+ block: {
31956
+ /** @description Height of the block this transactions was associated with */
31957
+ height: number;
31958
+ /** @description Hash of the blocked this transactions was associated with */
31959
+ hash: string;
31960
+ /** @description Hash of the index block this transactions was associated with */
31961
+ index_hash: string;
31962
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31963
+ time: number;
31964
+ /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
31965
+ tx_index: number;
31966
+ };
31967
+ bitcoin_block: {
31968
+ /** @description Height of the anchor burn block. */
31969
+ height: number;
31970
+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
31971
+ time: number;
31972
+ };
31973
+ /** @description Status of the transaction */
31974
+ status: "success" | "abort_by_response" | "abort_by_post_condition";
31975
+ /** @enum {string} */
31976
+ type: "tenure_change";
31977
+ tenure_change: {
31978
+ /** @description Cause of change in mining tenure. Depending on cause, tenure can be ended or extended. */
31979
+ cause: "block_found" | "extended" | "extended_runtime" | "extended_read_count" | "extended_read_length" | "extended_write_count" | "extended_write_length";
31980
+ };
31981
+ };
31982
+ /** @description How the principal is involved in the transaction. */
31983
+ involvement: "sender" | "sponsor" | "affected";
31984
+ balance_changes: {
31985
+ stx: {
31986
+ /** @description Total sent from the given address, including the tx fee, in micro-STX as an integer string. */
31987
+ sent: string;
31988
+ /** @description Total received by the given address in micro-STX as an integer string. */
31989
+ received: string;
31990
+ /** @description Net change in the principal's STX balance in micro-STX as an integer string. */
31991
+ net: string;
31992
+ };
31993
+ };
31994
+ affected_balances: {
31995
+ /** @description Whether the principal's STX balance was affected by the transaction */
31996
+ stx: boolean;
31997
+ /** @description Whether the principal's FT balance was affected by the transaction */
31998
+ ft: boolean;
31999
+ /** @description Whether the principal's NFT balance was affected by the transaction */
32000
+ nft: boolean;
32001
+ };
32002
+ }[];
32003
+ };
32004
+ };
32005
+ };
32006
+ /** @description Default Response */
32007
+ "4XX": {
32008
+ headers: {
32009
+ [name: string]: unknown;
32010
+ };
32011
+ content: {
32012
+ "application/json": {
32013
+ error: string;
32014
+ message?: string;
32015
+ } & {
32016
+ [key: string]: unknown;
32017
+ };
32018
+ };
32019
+ };
32020
+ };
32021
+ };
31667
32022
  get_historical_zone_file: {
31668
32023
  parameters: {
31669
32024
  query?: {