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

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 */
@@ -32572,7 +32598,10 @@ export interface operations {
32572
32598
  recipient: string;
32573
32599
  /** @description Amount of the token transfer */
32574
32600
  amount: string;
32575
- memo: string | null;
32601
+ memo: {
32602
+ hex: string;
32603
+ repr: string;
32604
+ } | null;
32576
32605
  };
32577
32606
  } | {
32578
32607
  /** @description Transaction ID */
@@ -33379,7 +33408,10 @@ export interface operations {
33379
33408
  recipient: string;
33380
33409
  /** @description Amount of the token transfer */
33381
33410
  amount: string;
33382
- memo: string | null;
33411
+ memo: {
33412
+ hex: string;
33413
+ repr: string;
33414
+ } | null;
33383
33415
  };
33384
33416
  } | {
33385
33417
  /** @description Transaction ID */
@@ -33893,6 +33925,229 @@ export interface operations {
33893
33925
  };
33894
33926
  };
33895
33927
  };
33928
+ get_transaction_events: {
33929
+ parameters: {
33930
+ query?: {
33931
+ /** @description Number of results per page */
33932
+ limit?: number;
33933
+ /** @description Cursor for paginating transaction events. Format: event_index */
33934
+ cursor?: string;
33935
+ };
33936
+ header?: never;
33937
+ path: {
33938
+ /**
33939
+ * @description Transaction ID
33940
+ * @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
33941
+ */
33942
+ tx_id: string;
33943
+ };
33944
+ cookie?: never;
33945
+ };
33946
+ requestBody?: never;
33947
+ responses: {
33948
+ /** @description Default Response */
33949
+ 200: {
33950
+ headers: {
33951
+ [name: string]: unknown;
33952
+ };
33953
+ content: {
33954
+ "application/json": {
33955
+ /** @example 1 */
33956
+ total: number;
33957
+ /**
33958
+ * @description Number of results per page
33959
+ * @default 20
33960
+ */
33961
+ limit: number;
33962
+ cursor: {
33963
+ next: string | null;
33964
+ previous: string | null;
33965
+ current: string | null;
33966
+ };
33967
+ results: ({
33968
+ event_index: number;
33969
+ /** @enum {string} */
33970
+ type: "contract_log";
33971
+ contract_log: {
33972
+ /**
33973
+ * Smart Contract ID
33974
+ * @description Smart Contract ID
33975
+ */
33976
+ contract_id: string;
33977
+ /** @enum {string} */
33978
+ topic: "print";
33979
+ value: {
33980
+ hex: string;
33981
+ repr: string;
33982
+ };
33983
+ };
33984
+ } | {
33985
+ event_index: number;
33986
+ /** @enum {string} */
33987
+ type: "stx_lock";
33988
+ stx_lock: {
33989
+ /**
33990
+ * Amount
33991
+ * @description Amount
33992
+ */
33993
+ amount: string;
33994
+ /**
33995
+ * Block height
33996
+ * @description Block height
33997
+ */
33998
+ unlock_bitcoin_height: number;
33999
+ address: string;
34000
+ };
34001
+ } | {
34002
+ event_index: number;
34003
+ /** @enum {string} */
34004
+ type: "stx_asset";
34005
+ stx_asset: {
34006
+ /** @enum {string} */
34007
+ type: "transfer";
34008
+ sender: string;
34009
+ recipient: string;
34010
+ /**
34011
+ * Amount
34012
+ * @description Amount
34013
+ */
34014
+ amount: string;
34015
+ memo: {
34016
+ hex: string;
34017
+ repr: string;
34018
+ } | null;
34019
+ } | {
34020
+ /** @enum {string} */
34021
+ type: "mint";
34022
+ recipient: string;
34023
+ /**
34024
+ * Amount
34025
+ * @description Amount
34026
+ */
34027
+ amount: string;
34028
+ } | {
34029
+ /** @enum {string} */
34030
+ type: "burn";
34031
+ sender: string;
34032
+ /**
34033
+ * Amount
34034
+ * @description Amount
34035
+ */
34036
+ amount: string;
34037
+ };
34038
+ } | {
34039
+ event_index: number;
34040
+ /** @enum {string} */
34041
+ type: "ft_asset";
34042
+ ft_asset: {
34043
+ /** @enum {string} */
34044
+ type: "transfer";
34045
+ /**
34046
+ * Asset Identifier
34047
+ * @description Asset Identifier
34048
+ */
34049
+ asset_identifier: string;
34050
+ sender: string;
34051
+ recipient: string;
34052
+ /**
34053
+ * Amount
34054
+ * @description Amount
34055
+ */
34056
+ amount: string;
34057
+ } | {
34058
+ /** @enum {string} */
34059
+ type: "mint";
34060
+ recipient: string;
34061
+ /**
34062
+ * Asset Identifier
34063
+ * @description Asset Identifier
34064
+ */
34065
+ asset_identifier: string;
34066
+ /**
34067
+ * Amount
34068
+ * @description Amount
34069
+ */
34070
+ amount: string;
34071
+ } | {
34072
+ /** @enum {string} */
34073
+ type: "burn";
34074
+ sender: string;
34075
+ /**
34076
+ * Asset Identifier
34077
+ * @description Asset Identifier
34078
+ */
34079
+ asset_identifier: string;
34080
+ /**
34081
+ * Amount
34082
+ * @description Amount
34083
+ */
34084
+ amount: string;
34085
+ };
34086
+ } | {
34087
+ event_index: number;
34088
+ /** @enum {string} */
34089
+ type: "nft_asset";
34090
+ nft_asset: {
34091
+ /** @enum {string} */
34092
+ type: "transfer";
34093
+ /**
34094
+ * Asset Identifier
34095
+ * @description Asset Identifier
34096
+ */
34097
+ asset_identifier: string;
34098
+ sender: string;
34099
+ recipient: string;
34100
+ value: {
34101
+ hex: string;
34102
+ repr: string;
34103
+ };
34104
+ } | {
34105
+ /** @enum {string} */
34106
+ type: "mint";
34107
+ recipient: string;
34108
+ /**
34109
+ * Asset Identifier
34110
+ * @description Asset Identifier
34111
+ */
34112
+ asset_identifier: string;
34113
+ value: {
34114
+ hex: string;
34115
+ repr: string;
34116
+ };
34117
+ } | {
34118
+ /** @enum {string} */
34119
+ type: "burn";
34120
+ sender: string;
34121
+ /**
34122
+ * Asset Identifier
34123
+ * @description Asset Identifier
34124
+ */
34125
+ asset_identifier: string;
34126
+ value: {
34127
+ hex: string;
34128
+ repr: string;
34129
+ };
34130
+ };
34131
+ })[];
34132
+ };
34133
+ };
34134
+ };
34135
+ /** @description Default Response */
34136
+ "4XX": {
34137
+ headers: {
34138
+ [name: string]: unknown;
34139
+ };
34140
+ content: {
34141
+ "application/json": {
34142
+ error: string;
34143
+ message?: string;
34144
+ } & {
34145
+ [key: string]: unknown;
34146
+ };
34147
+ };
34148
+ };
34149
+ };
34150
+ };
33896
34151
  get_mempool_transactions: {
33897
34152
  parameters: {
33898
34153
  query?: {
@@ -33955,7 +34210,10 @@ export interface operations {
33955
34210
  recipient: string;
33956
34211
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
33957
34212
  amount: string;
33958
- memo: string | null;
34213
+ memo: {
34214
+ hex: string;
34215
+ repr: string;
34216
+ } | null;
33959
34217
  };
33960
34218
  } | {
33961
34219
  /** @description Transaction ID */
@@ -34191,7 +34449,10 @@ export interface operations {
34191
34449
  recipient: string;
34192
34450
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
34193
34451
  amount: string;
34194
- memo: string | null;
34452
+ memo: {
34453
+ hex: string;
34454
+ repr: string;
34455
+ } | null;
34195
34456
  };
34196
34457
  } | {
34197
34458
  /** @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.36",
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 */
@@ -32572,7 +32598,10 @@ export interface operations {
32572
32598
  recipient: string;
32573
32599
  /** @description Amount of the token transfer */
32574
32600
  amount: string;
32575
- memo: string | null;
32601
+ memo: {
32602
+ hex: string;
32603
+ repr: string;
32604
+ } | null;
32576
32605
  };
32577
32606
  } | {
32578
32607
  /** @description Transaction ID */
@@ -33379,7 +33408,10 @@ export interface operations {
33379
33408
  recipient: string;
33380
33409
  /** @description Amount of the token transfer */
33381
33410
  amount: string;
33382
- memo: string | null;
33411
+ memo: {
33412
+ hex: string;
33413
+ repr: string;
33414
+ } | null;
33383
33415
  };
33384
33416
  } | {
33385
33417
  /** @description Transaction ID */
@@ -33893,6 +33925,229 @@ export interface operations {
33893
33925
  };
33894
33926
  };
33895
33927
  };
33928
+ get_transaction_events: {
33929
+ parameters: {
33930
+ query?: {
33931
+ /** @description Number of results per page */
33932
+ limit?: number;
33933
+ /** @description Cursor for paginating transaction events. Format: event_index */
33934
+ cursor?: string;
33935
+ };
33936
+ header?: never;
33937
+ path: {
33938
+ /**
33939
+ * @description Transaction ID
33940
+ * @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
33941
+ */
33942
+ tx_id: string;
33943
+ };
33944
+ cookie?: never;
33945
+ };
33946
+ requestBody?: never;
33947
+ responses: {
33948
+ /** @description Default Response */
33949
+ 200: {
33950
+ headers: {
33951
+ [name: string]: unknown;
33952
+ };
33953
+ content: {
33954
+ "application/json": {
33955
+ /** @example 1 */
33956
+ total: number;
33957
+ /**
33958
+ * @description Number of results per page
33959
+ * @default 20
33960
+ */
33961
+ limit: number;
33962
+ cursor: {
33963
+ next: string | null;
33964
+ previous: string | null;
33965
+ current: string | null;
33966
+ };
33967
+ results: ({
33968
+ event_index: number;
33969
+ /** @enum {string} */
33970
+ type: "contract_log";
33971
+ contract_log: {
33972
+ /**
33973
+ * Smart Contract ID
33974
+ * @description Smart Contract ID
33975
+ */
33976
+ contract_id: string;
33977
+ /** @enum {string} */
33978
+ topic: "print";
33979
+ value: {
33980
+ hex: string;
33981
+ repr: string;
33982
+ };
33983
+ };
33984
+ } | {
33985
+ event_index: number;
33986
+ /** @enum {string} */
33987
+ type: "stx_lock";
33988
+ stx_lock: {
33989
+ /**
33990
+ * Amount
33991
+ * @description Amount
33992
+ */
33993
+ amount: string;
33994
+ /**
33995
+ * Block height
33996
+ * @description Block height
33997
+ */
33998
+ unlock_bitcoin_height: number;
33999
+ address: string;
34000
+ };
34001
+ } | {
34002
+ event_index: number;
34003
+ /** @enum {string} */
34004
+ type: "stx_asset";
34005
+ stx_asset: {
34006
+ /** @enum {string} */
34007
+ type: "transfer";
34008
+ sender: string;
34009
+ recipient: string;
34010
+ /**
34011
+ * Amount
34012
+ * @description Amount
34013
+ */
34014
+ amount: string;
34015
+ memo: {
34016
+ hex: string;
34017
+ repr: string;
34018
+ } | null;
34019
+ } | {
34020
+ /** @enum {string} */
34021
+ type: "mint";
34022
+ recipient: string;
34023
+ /**
34024
+ * Amount
34025
+ * @description Amount
34026
+ */
34027
+ amount: string;
34028
+ } | {
34029
+ /** @enum {string} */
34030
+ type: "burn";
34031
+ sender: string;
34032
+ /**
34033
+ * Amount
34034
+ * @description Amount
34035
+ */
34036
+ amount: string;
34037
+ };
34038
+ } | {
34039
+ event_index: number;
34040
+ /** @enum {string} */
34041
+ type: "ft_asset";
34042
+ ft_asset: {
34043
+ /** @enum {string} */
34044
+ type: "transfer";
34045
+ /**
34046
+ * Asset Identifier
34047
+ * @description Asset Identifier
34048
+ */
34049
+ asset_identifier: string;
34050
+ sender: string;
34051
+ recipient: string;
34052
+ /**
34053
+ * Amount
34054
+ * @description Amount
34055
+ */
34056
+ amount: string;
34057
+ } | {
34058
+ /** @enum {string} */
34059
+ type: "mint";
34060
+ recipient: string;
34061
+ /**
34062
+ * Asset Identifier
34063
+ * @description Asset Identifier
34064
+ */
34065
+ asset_identifier: string;
34066
+ /**
34067
+ * Amount
34068
+ * @description Amount
34069
+ */
34070
+ amount: string;
34071
+ } | {
34072
+ /** @enum {string} */
34073
+ type: "burn";
34074
+ sender: string;
34075
+ /**
34076
+ * Asset Identifier
34077
+ * @description Asset Identifier
34078
+ */
34079
+ asset_identifier: string;
34080
+ /**
34081
+ * Amount
34082
+ * @description Amount
34083
+ */
34084
+ amount: string;
34085
+ };
34086
+ } | {
34087
+ event_index: number;
34088
+ /** @enum {string} */
34089
+ type: "nft_asset";
34090
+ nft_asset: {
34091
+ /** @enum {string} */
34092
+ type: "transfer";
34093
+ /**
34094
+ * Asset Identifier
34095
+ * @description Asset Identifier
34096
+ */
34097
+ asset_identifier: string;
34098
+ sender: string;
34099
+ recipient: string;
34100
+ value: {
34101
+ hex: string;
34102
+ repr: string;
34103
+ };
34104
+ } | {
34105
+ /** @enum {string} */
34106
+ type: "mint";
34107
+ recipient: string;
34108
+ /**
34109
+ * Asset Identifier
34110
+ * @description Asset Identifier
34111
+ */
34112
+ asset_identifier: string;
34113
+ value: {
34114
+ hex: string;
34115
+ repr: string;
34116
+ };
34117
+ } | {
34118
+ /** @enum {string} */
34119
+ type: "burn";
34120
+ sender: string;
34121
+ /**
34122
+ * Asset Identifier
34123
+ * @description Asset Identifier
34124
+ */
34125
+ asset_identifier: string;
34126
+ value: {
34127
+ hex: string;
34128
+ repr: string;
34129
+ };
34130
+ };
34131
+ })[];
34132
+ };
34133
+ };
34134
+ };
34135
+ /** @description Default Response */
34136
+ "4XX": {
34137
+ headers: {
34138
+ [name: string]: unknown;
34139
+ };
34140
+ content: {
34141
+ "application/json": {
34142
+ error: string;
34143
+ message?: string;
34144
+ } & {
34145
+ [key: string]: unknown;
34146
+ };
34147
+ };
34148
+ };
34149
+ };
34150
+ };
33896
34151
  get_mempool_transactions: {
33897
34152
  parameters: {
33898
34153
  query?: {
@@ -33955,7 +34210,10 @@ export interface operations {
33955
34210
  recipient: string;
33956
34211
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
33957
34212
  amount: string;
33958
- memo: string | null;
34213
+ memo: {
34214
+ hex: string;
34215
+ repr: string;
34216
+ } | null;
33959
34217
  };
33960
34218
  } | {
33961
34219
  /** @description Transaction ID */
@@ -34191,7 +34449,10 @@ export interface operations {
34191
34449
  recipient: string;
34192
34450
  /** @description Transfer amount as Integer string (64-bit unsigned integer) */
34193
34451
  amount: string;
34194
- memo: string | null;
34452
+ memo: {
34453
+ hex: string;
34454
+ repr: string;
34455
+ } | null;
34195
34456
  };
34196
34457
  } | {
34197
34458
  /** @description Transaction ID */