@stacks/blockchain-api-client 9.0.0-next.34 → 9.0.0-next.35

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.
@@ -1750,6 +1750,26 @@ export interface paths {
1750
1750
  patch?: never;
1751
1751
  trace?: never;
1752
1752
  };
1753
+ "/extended/v3/transactions/{tx_id}/events": {
1754
+ parameters: {
1755
+ query?: never;
1756
+ header?: never;
1757
+ path?: never;
1758
+ cookie?: never;
1759
+ };
1760
+ /**
1761
+ * Get transaction events
1762
+ * @description Retrieves events for a given transaction ID
1763
+ */
1764
+ get: operations["get_transaction_events"];
1765
+ put?: never;
1766
+ post?: never;
1767
+ delete?: never;
1768
+ options?: never;
1769
+ head?: never;
1770
+ patch?: never;
1771
+ trace?: never;
1772
+ };
1753
1773
  "/extended/v3/mempool/transactions": {
1754
1774
  parameters: {
1755
1775
  query?: never;
@@ -31843,7 +31863,10 @@ export interface operations {
31843
31863
  recipient: string;
31844
31864
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
31845
31865
  amount: string;
31846
- memo: string | null;
31866
+ memo: {
31867
+ hex: string;
31868
+ repr: string;
31869
+ } | null;
31847
31870
  };
31848
31871
  } | {
31849
31872
  /** @description Transaction ID */
@@ -32175,7 +32198,10 @@ export interface operations {
32175
32198
  recipient: string;
32176
32199
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
32177
32200
  amount: string;
32178
- memo: string | null;
32201
+ memo: {
32202
+ hex: string;
32203
+ repr: string;
32204
+ } | null;
32179
32205
  };
32180
32206
  } | {
32181
32207
  /** @description Transaction ID */
@@ -33893,6 +33919,229 @@ export interface operations {
33893
33919
  };
33894
33920
  };
33895
33921
  };
33922
+ get_transaction_events: {
33923
+ parameters: {
33924
+ query?: {
33925
+ /** @description Number of results per page */
33926
+ limit?: number;
33927
+ /** @description Cursor for paginating transaction events. Format: event_index */
33928
+ cursor?: string;
33929
+ };
33930
+ header?: never;
33931
+ path: {
33932
+ /**
33933
+ * @description Transaction ID
33934
+ * @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
33935
+ */
33936
+ tx_id: string;
33937
+ };
33938
+ cookie?: never;
33939
+ };
33940
+ requestBody?: never;
33941
+ responses: {
33942
+ /** @description Default Response */
33943
+ 200: {
33944
+ headers: {
33945
+ [name: string]: unknown;
33946
+ };
33947
+ content: {
33948
+ "application/json": {
33949
+ /** @example 1 */
33950
+ total: number;
33951
+ /**
33952
+ * @description Number of results per page
33953
+ * @default 20
33954
+ */
33955
+ limit: number;
33956
+ cursor: {
33957
+ next: string | null;
33958
+ previous: string | null;
33959
+ current: string | null;
33960
+ };
33961
+ results: ({
33962
+ event_index: number;
33963
+ /** @enum {string} */
33964
+ type: "contract_log";
33965
+ contract_log: {
33966
+ /**
33967
+ * Smart Contract ID
33968
+ * @description Smart Contract ID
33969
+ */
33970
+ contract_id: string;
33971
+ /** @enum {string} */
33972
+ topic: "print";
33973
+ value: {
33974
+ hex: string;
33975
+ repr: string;
33976
+ };
33977
+ };
33978
+ } | {
33979
+ event_index: number;
33980
+ /** @enum {string} */
33981
+ type: "stx_lock";
33982
+ stx_lock: {
33983
+ /**
33984
+ * Amount
33985
+ * @description Amount
33986
+ */
33987
+ amount: string;
33988
+ /**
33989
+ * Block height
33990
+ * @description Block height
33991
+ */
33992
+ unlock_bitcoin_height: number;
33993
+ address: string;
33994
+ };
33995
+ } | {
33996
+ event_index: number;
33997
+ /** @enum {string} */
33998
+ type: "stx_asset";
33999
+ stx_asset: {
34000
+ /** @enum {string} */
34001
+ type: "transfer";
34002
+ sender: string;
34003
+ recipient: string;
34004
+ /**
34005
+ * Amount
34006
+ * @description Amount
34007
+ */
34008
+ amount: string;
34009
+ memo: {
34010
+ hex: string;
34011
+ repr: string;
34012
+ } | null;
34013
+ } | {
34014
+ /** @enum {string} */
34015
+ type: "mint";
34016
+ recipient: string;
34017
+ /**
34018
+ * Amount
34019
+ * @description Amount
34020
+ */
34021
+ amount: string;
34022
+ } | {
34023
+ /** @enum {string} */
34024
+ type: "burn";
34025
+ sender: string;
34026
+ /**
34027
+ * Amount
34028
+ * @description Amount
34029
+ */
34030
+ amount: string;
34031
+ };
34032
+ } | {
34033
+ event_index: number;
34034
+ /** @enum {string} */
34035
+ type: "ft_asset";
34036
+ ft_asset: {
34037
+ /** @enum {string} */
34038
+ type: "transfer";
34039
+ /**
34040
+ * Asset Identifier
34041
+ * @description Asset Identifier
34042
+ */
34043
+ asset_identifier: string;
34044
+ sender: string;
34045
+ recipient: string;
34046
+ /**
34047
+ * Amount
34048
+ * @description Amount
34049
+ */
34050
+ amount: string;
34051
+ } | {
34052
+ /** @enum {string} */
34053
+ type: "mint";
34054
+ recipient: string;
34055
+ /**
34056
+ * Asset Identifier
34057
+ * @description Asset Identifier
34058
+ */
34059
+ asset_identifier: string;
34060
+ /**
34061
+ * Amount
34062
+ * @description Amount
34063
+ */
34064
+ amount: string;
34065
+ } | {
34066
+ /** @enum {string} */
34067
+ type: "burn";
34068
+ sender: string;
34069
+ /**
34070
+ * Asset Identifier
34071
+ * @description Asset Identifier
34072
+ */
34073
+ asset_identifier: string;
34074
+ /**
34075
+ * Amount
34076
+ * @description Amount
34077
+ */
34078
+ amount: string;
34079
+ };
34080
+ } | {
34081
+ event_index: number;
34082
+ /** @enum {string} */
34083
+ type: "nft_asset";
34084
+ nft_asset: {
34085
+ /** @enum {string} */
34086
+ type: "transfer";
34087
+ /**
34088
+ * Asset Identifier
34089
+ * @description Asset Identifier
34090
+ */
34091
+ asset_identifier: string;
34092
+ sender: string;
34093
+ recipient: string;
34094
+ value: {
34095
+ hex: string;
34096
+ repr: string;
34097
+ };
34098
+ } | {
34099
+ /** @enum {string} */
34100
+ type: "mint";
34101
+ recipient: string;
34102
+ /**
34103
+ * Asset Identifier
34104
+ * @description Asset Identifier
34105
+ */
34106
+ asset_identifier: string;
34107
+ value: {
34108
+ hex: string;
34109
+ repr: string;
34110
+ };
34111
+ } | {
34112
+ /** @enum {string} */
34113
+ type: "burn";
34114
+ sender: string;
34115
+ /**
34116
+ * Asset Identifier
34117
+ * @description Asset Identifier
34118
+ */
34119
+ asset_identifier: string;
34120
+ value: {
34121
+ hex: string;
34122
+ repr: string;
34123
+ };
34124
+ };
34125
+ })[];
34126
+ };
34127
+ };
34128
+ };
34129
+ /** @description Default Response */
34130
+ "4XX": {
34131
+ headers: {
34132
+ [name: string]: unknown;
34133
+ };
34134
+ content: {
34135
+ "application/json": {
34136
+ error: string;
34137
+ message?: string;
34138
+ } & {
34139
+ [key: string]: unknown;
34140
+ };
34141
+ };
34142
+ };
34143
+ };
34144
+ };
33896
34145
  get_mempool_transactions: {
33897
34146
  parameters: {
33898
34147
  query?: {
@@ -34191,7 +34440,10 @@ export interface operations {
34191
34440
  recipient: string;
34192
34441
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
34193
34442
  amount: string;
34194
- memo: string | null;
34443
+ memo: {
34444
+ hex: string;
34445
+ repr: string;
34446
+ } | null;
34195
34447
  };
34196
34448
  } | {
34197
34449
  /** @description Transaction ID */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacks/blockchain-api-client",
3
- "version": "9.0.0-next.34",
3
+ "version": "9.0.0-next.35",
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",
@@ -1750,6 +1750,26 @@ export interface paths {
1750
1750
  patch?: never;
1751
1751
  trace?: never;
1752
1752
  };
1753
+ "/extended/v3/transactions/{tx_id}/events": {
1754
+ parameters: {
1755
+ query?: never;
1756
+ header?: never;
1757
+ path?: never;
1758
+ cookie?: never;
1759
+ };
1760
+ /**
1761
+ * Get transaction events
1762
+ * @description Retrieves events for a given transaction ID
1763
+ */
1764
+ get: operations["get_transaction_events"];
1765
+ put?: never;
1766
+ post?: never;
1767
+ delete?: never;
1768
+ options?: never;
1769
+ head?: never;
1770
+ patch?: never;
1771
+ trace?: never;
1772
+ };
1753
1773
  "/extended/v3/mempool/transactions": {
1754
1774
  parameters: {
1755
1775
  query?: never;
@@ -31843,7 +31863,10 @@ export interface operations {
31843
31863
  recipient: string;
31844
31864
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
31845
31865
  amount: string;
31846
- memo: string | null;
31866
+ memo: {
31867
+ hex: string;
31868
+ repr: string;
31869
+ } | null;
31847
31870
  };
31848
31871
  } | {
31849
31872
  /** @description Transaction ID */
@@ -32175,7 +32198,10 @@ export interface operations {
32175
32198
  recipient: string;
32176
32199
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
32177
32200
  amount: string;
32178
- memo: string | null;
32201
+ memo: {
32202
+ hex: string;
32203
+ repr: string;
32204
+ } | null;
32179
32205
  };
32180
32206
  } | {
32181
32207
  /** @description Transaction ID */
@@ -33893,6 +33919,229 @@ export interface operations {
33893
33919
  };
33894
33920
  };
33895
33921
  };
33922
+ get_transaction_events: {
33923
+ parameters: {
33924
+ query?: {
33925
+ /** @description Number of results per page */
33926
+ limit?: number;
33927
+ /** @description Cursor for paginating transaction events. Format: event_index */
33928
+ cursor?: string;
33929
+ };
33930
+ header?: never;
33931
+ path: {
33932
+ /**
33933
+ * @description Transaction ID
33934
+ * @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
33935
+ */
33936
+ tx_id: string;
33937
+ };
33938
+ cookie?: never;
33939
+ };
33940
+ requestBody?: never;
33941
+ responses: {
33942
+ /** @description Default Response */
33943
+ 200: {
33944
+ headers: {
33945
+ [name: string]: unknown;
33946
+ };
33947
+ content: {
33948
+ "application/json": {
33949
+ /** @example 1 */
33950
+ total: number;
33951
+ /**
33952
+ * @description Number of results per page
33953
+ * @default 20
33954
+ */
33955
+ limit: number;
33956
+ cursor: {
33957
+ next: string | null;
33958
+ previous: string | null;
33959
+ current: string | null;
33960
+ };
33961
+ results: ({
33962
+ event_index: number;
33963
+ /** @enum {string} */
33964
+ type: "contract_log";
33965
+ contract_log: {
33966
+ /**
33967
+ * Smart Contract ID
33968
+ * @description Smart Contract ID
33969
+ */
33970
+ contract_id: string;
33971
+ /** @enum {string} */
33972
+ topic: "print";
33973
+ value: {
33974
+ hex: string;
33975
+ repr: string;
33976
+ };
33977
+ };
33978
+ } | {
33979
+ event_index: number;
33980
+ /** @enum {string} */
33981
+ type: "stx_lock";
33982
+ stx_lock: {
33983
+ /**
33984
+ * Amount
33985
+ * @description Amount
33986
+ */
33987
+ amount: string;
33988
+ /**
33989
+ * Block height
33990
+ * @description Block height
33991
+ */
33992
+ unlock_bitcoin_height: number;
33993
+ address: string;
33994
+ };
33995
+ } | {
33996
+ event_index: number;
33997
+ /** @enum {string} */
33998
+ type: "stx_asset";
33999
+ stx_asset: {
34000
+ /** @enum {string} */
34001
+ type: "transfer";
34002
+ sender: string;
34003
+ recipient: string;
34004
+ /**
34005
+ * Amount
34006
+ * @description Amount
34007
+ */
34008
+ amount: string;
34009
+ memo: {
34010
+ hex: string;
34011
+ repr: string;
34012
+ } | null;
34013
+ } | {
34014
+ /** @enum {string} */
34015
+ type: "mint";
34016
+ recipient: string;
34017
+ /**
34018
+ * Amount
34019
+ * @description Amount
34020
+ */
34021
+ amount: string;
34022
+ } | {
34023
+ /** @enum {string} */
34024
+ type: "burn";
34025
+ sender: string;
34026
+ /**
34027
+ * Amount
34028
+ * @description Amount
34029
+ */
34030
+ amount: string;
34031
+ };
34032
+ } | {
34033
+ event_index: number;
34034
+ /** @enum {string} */
34035
+ type: "ft_asset";
34036
+ ft_asset: {
34037
+ /** @enum {string} */
34038
+ type: "transfer";
34039
+ /**
34040
+ * Asset Identifier
34041
+ * @description Asset Identifier
34042
+ */
34043
+ asset_identifier: string;
34044
+ sender: string;
34045
+ recipient: string;
34046
+ /**
34047
+ * Amount
34048
+ * @description Amount
34049
+ */
34050
+ amount: string;
34051
+ } | {
34052
+ /** @enum {string} */
34053
+ type: "mint";
34054
+ recipient: string;
34055
+ /**
34056
+ * Asset Identifier
34057
+ * @description Asset Identifier
34058
+ */
34059
+ asset_identifier: string;
34060
+ /**
34061
+ * Amount
34062
+ * @description Amount
34063
+ */
34064
+ amount: string;
34065
+ } | {
34066
+ /** @enum {string} */
34067
+ type: "burn";
34068
+ sender: string;
34069
+ /**
34070
+ * Asset Identifier
34071
+ * @description Asset Identifier
34072
+ */
34073
+ asset_identifier: string;
34074
+ /**
34075
+ * Amount
34076
+ * @description Amount
34077
+ */
34078
+ amount: string;
34079
+ };
34080
+ } | {
34081
+ event_index: number;
34082
+ /** @enum {string} */
34083
+ type: "nft_asset";
34084
+ nft_asset: {
34085
+ /** @enum {string} */
34086
+ type: "transfer";
34087
+ /**
34088
+ * Asset Identifier
34089
+ * @description Asset Identifier
34090
+ */
34091
+ asset_identifier: string;
34092
+ sender: string;
34093
+ recipient: string;
34094
+ value: {
34095
+ hex: string;
34096
+ repr: string;
34097
+ };
34098
+ } | {
34099
+ /** @enum {string} */
34100
+ type: "mint";
34101
+ recipient: string;
34102
+ /**
34103
+ * Asset Identifier
34104
+ * @description Asset Identifier
34105
+ */
34106
+ asset_identifier: string;
34107
+ value: {
34108
+ hex: string;
34109
+ repr: string;
34110
+ };
34111
+ } | {
34112
+ /** @enum {string} */
34113
+ type: "burn";
34114
+ sender: string;
34115
+ /**
34116
+ * Asset Identifier
34117
+ * @description Asset Identifier
34118
+ */
34119
+ asset_identifier: string;
34120
+ value: {
34121
+ hex: string;
34122
+ repr: string;
34123
+ };
34124
+ };
34125
+ })[];
34126
+ };
34127
+ };
34128
+ };
34129
+ /** @description Default Response */
34130
+ "4XX": {
34131
+ headers: {
34132
+ [name: string]: unknown;
34133
+ };
34134
+ content: {
34135
+ "application/json": {
34136
+ error: string;
34137
+ message?: string;
34138
+ } & {
34139
+ [key: string]: unknown;
34140
+ };
34141
+ };
34142
+ };
34143
+ };
34144
+ };
33896
34145
  get_mempool_transactions: {
33897
34146
  parameters: {
33898
34147
  query?: {
@@ -34191,7 +34440,10 @@ export interface operations {
34191
34440
  recipient: string;
34192
34441
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
34193
34442
  amount: string;
34194
- memo: string | null;
34443
+ memo: {
34444
+ hex: string;
34445
+ repr: string;
34446
+ } | null;
34195
34447
  };
34196
34448
  } | {
34197
34449
  /** @description Transaction ID */