@stacks/blockchain-api-client 9.0.0-pox5.1 → 9.0.0-pox5.2
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/lib/generated/schema.d.ts +2709 -4
- package/package.json +1 -1
- package/src/generated/schema.d.ts +2709 -4
|
@@ -1710,6 +1710,126 @@ export interface paths {
|
|
|
1710
1710
|
patch?: never;
|
|
1711
1711
|
trace?: never;
|
|
1712
1712
|
};
|
|
1713
|
+
"/extended/v3/principals/{principal}/balances/staking": {
|
|
1714
|
+
parameters: {
|
|
1715
|
+
query?: never;
|
|
1716
|
+
header?: never;
|
|
1717
|
+
path?: never;
|
|
1718
|
+
cookie?: never;
|
|
1719
|
+
};
|
|
1720
|
+
/**
|
|
1721
|
+
* Get principal staking balances
|
|
1722
|
+
* @description Get principal staking balances
|
|
1723
|
+
*/
|
|
1724
|
+
get: operations["get_principal_staking_balances"];
|
|
1725
|
+
put?: never;
|
|
1726
|
+
post?: never;
|
|
1727
|
+
delete?: never;
|
|
1728
|
+
options?: never;
|
|
1729
|
+
head?: never;
|
|
1730
|
+
patch?: never;
|
|
1731
|
+
trace?: never;
|
|
1732
|
+
};
|
|
1733
|
+
"/extended/v3/transactions": {
|
|
1734
|
+
parameters: {
|
|
1735
|
+
query?: never;
|
|
1736
|
+
header?: never;
|
|
1737
|
+
path?: never;
|
|
1738
|
+
cookie?: never;
|
|
1739
|
+
};
|
|
1740
|
+
/**
|
|
1741
|
+
* Get transactions
|
|
1742
|
+
* @description Retrieves a list of recently mined transactions
|
|
1743
|
+
*/
|
|
1744
|
+
get: operations["get_transactions"];
|
|
1745
|
+
put?: never;
|
|
1746
|
+
post?: never;
|
|
1747
|
+
delete?: never;
|
|
1748
|
+
options?: never;
|
|
1749
|
+
head?: never;
|
|
1750
|
+
patch?: never;
|
|
1751
|
+
trace?: never;
|
|
1752
|
+
};
|
|
1753
|
+
"/extended/v3/transactions/{tx_id}": {
|
|
1754
|
+
parameters: {
|
|
1755
|
+
query?: never;
|
|
1756
|
+
header?: never;
|
|
1757
|
+
path?: never;
|
|
1758
|
+
cookie?: never;
|
|
1759
|
+
};
|
|
1760
|
+
/**
|
|
1761
|
+
* Get transaction
|
|
1762
|
+
* @description Retrieves details for a given transaction, including both mined and mempool transactions
|
|
1763
|
+
*/
|
|
1764
|
+
get: operations["get_transaction"];
|
|
1765
|
+
put?: never;
|
|
1766
|
+
post?: never;
|
|
1767
|
+
delete?: never;
|
|
1768
|
+
options?: never;
|
|
1769
|
+
head?: never;
|
|
1770
|
+
patch?: never;
|
|
1771
|
+
trace?: never;
|
|
1772
|
+
};
|
|
1773
|
+
"/extended/v3/transactions/{tx_id}/events": {
|
|
1774
|
+
parameters: {
|
|
1775
|
+
query?: never;
|
|
1776
|
+
header?: never;
|
|
1777
|
+
path?: never;
|
|
1778
|
+
cookie?: never;
|
|
1779
|
+
};
|
|
1780
|
+
/**
|
|
1781
|
+
* Get transaction events
|
|
1782
|
+
* @description Retrieves events for a given transaction ID
|
|
1783
|
+
*/
|
|
1784
|
+
get: operations["get_transaction_events"];
|
|
1785
|
+
put?: never;
|
|
1786
|
+
post?: never;
|
|
1787
|
+
delete?: never;
|
|
1788
|
+
options?: never;
|
|
1789
|
+
head?: never;
|
|
1790
|
+
patch?: never;
|
|
1791
|
+
trace?: never;
|
|
1792
|
+
};
|
|
1793
|
+
"/extended/v3/mempool/transactions": {
|
|
1794
|
+
parameters: {
|
|
1795
|
+
query?: never;
|
|
1796
|
+
header?: never;
|
|
1797
|
+
path?: never;
|
|
1798
|
+
cookie?: never;
|
|
1799
|
+
};
|
|
1800
|
+
/**
|
|
1801
|
+
* Get mempool transactions
|
|
1802
|
+
* @description Retrieves a list of recently broadcasted transactions
|
|
1803
|
+
*/
|
|
1804
|
+
get: operations["get_mempool_transactions"];
|
|
1805
|
+
put?: never;
|
|
1806
|
+
post?: never;
|
|
1807
|
+
delete?: never;
|
|
1808
|
+
options?: never;
|
|
1809
|
+
head?: never;
|
|
1810
|
+
patch?: never;
|
|
1811
|
+
trace?: never;
|
|
1812
|
+
};
|
|
1813
|
+
"/extended/v3/blocks/{height_or_hash}/transactions": {
|
|
1814
|
+
parameters: {
|
|
1815
|
+
query?: never;
|
|
1816
|
+
header?: never;
|
|
1817
|
+
path?: never;
|
|
1818
|
+
cookie?: never;
|
|
1819
|
+
};
|
|
1820
|
+
/**
|
|
1821
|
+
* Get block transactions
|
|
1822
|
+
* @description Retrieves transactions confirmed in a single block
|
|
1823
|
+
*/
|
|
1824
|
+
get: operations["get_block_transactions"];
|
|
1825
|
+
put?: never;
|
|
1826
|
+
post?: never;
|
|
1827
|
+
delete?: never;
|
|
1828
|
+
options?: never;
|
|
1829
|
+
head?: never;
|
|
1830
|
+
patch?: never;
|
|
1831
|
+
trace?: never;
|
|
1832
|
+
};
|
|
1713
1833
|
"/v1/names/{name}/zonefile/{zoneFileHash}": {
|
|
1714
1834
|
parameters: {
|
|
1715
1835
|
query?: never;
|
|
@@ -1942,9 +2062,6 @@ export interface operations {
|
|
|
1942
2062
|
server_version: string;
|
|
1943
2063
|
/** @description the current server status */
|
|
1944
2064
|
status: string;
|
|
1945
|
-
pox_v1_unlock_height?: number | null;
|
|
1946
|
-
pox_v2_unlock_height?: number | null;
|
|
1947
|
-
pox_v3_unlock_height?: number | null;
|
|
1948
2065
|
chain_tip?: {
|
|
1949
2066
|
/** @description the current block height */
|
|
1950
2067
|
block_height: number;
|
|
@@ -31763,7 +31880,10 @@ export interface operations {
|
|
|
31763
31880
|
recipient: string;
|
|
31764
31881
|
/** @description Transfer amount as Integer string (64-bit unsigned integer) */
|
|
31765
31882
|
amount: string;
|
|
31766
|
-
memo:
|
|
31883
|
+
memo: {
|
|
31884
|
+
hex: string;
|
|
31885
|
+
repr: string;
|
|
31886
|
+
} | null;
|
|
31767
31887
|
};
|
|
31768
31888
|
} | {
|
|
31769
31889
|
/** @description Transaction ID */
|
|
@@ -32019,6 +32139,2591 @@ export interface operations {
|
|
|
32019
32139
|
};
|
|
32020
32140
|
};
|
|
32021
32141
|
};
|
|
32142
|
+
get_principal_staking_balances: {
|
|
32143
|
+
parameters: {
|
|
32144
|
+
query?: never;
|
|
32145
|
+
header?: never;
|
|
32146
|
+
path: {
|
|
32147
|
+
principal: string;
|
|
32148
|
+
};
|
|
32149
|
+
cookie?: never;
|
|
32150
|
+
};
|
|
32151
|
+
requestBody?: never;
|
|
32152
|
+
responses: {
|
|
32153
|
+
/** @description Default Response */
|
|
32154
|
+
200: {
|
|
32155
|
+
headers: {
|
|
32156
|
+
[name: string]: unknown;
|
|
32157
|
+
};
|
|
32158
|
+
content?: never;
|
|
32159
|
+
};
|
|
32160
|
+
};
|
|
32161
|
+
};
|
|
32162
|
+
get_transactions: {
|
|
32163
|
+
parameters: {
|
|
32164
|
+
query?: {
|
|
32165
|
+
/** @description Number of results per page */
|
|
32166
|
+
limit?: number;
|
|
32167
|
+
/** @description Cursor for paginating transactions. Format: block_height:microblock_sequence:tx_index */
|
|
32168
|
+
cursor?: string;
|
|
32169
|
+
};
|
|
32170
|
+
header?: never;
|
|
32171
|
+
path?: never;
|
|
32172
|
+
cookie?: never;
|
|
32173
|
+
};
|
|
32174
|
+
requestBody?: never;
|
|
32175
|
+
responses: {
|
|
32176
|
+
/** @description Default Response */
|
|
32177
|
+
200: {
|
|
32178
|
+
headers: {
|
|
32179
|
+
[name: string]: unknown;
|
|
32180
|
+
};
|
|
32181
|
+
content: {
|
|
32182
|
+
"application/json": {
|
|
32183
|
+
/** @example 1 */
|
|
32184
|
+
total: number;
|
|
32185
|
+
/**
|
|
32186
|
+
* @description Number of results per page
|
|
32187
|
+
* @default 20
|
|
32188
|
+
*/
|
|
32189
|
+
limit: number;
|
|
32190
|
+
cursor: {
|
|
32191
|
+
next: string | null;
|
|
32192
|
+
previous: string | null;
|
|
32193
|
+
current: string | null;
|
|
32194
|
+
};
|
|
32195
|
+
results: ({
|
|
32196
|
+
/** @description Transaction ID */
|
|
32197
|
+
tx_id: string;
|
|
32198
|
+
sender: {
|
|
32199
|
+
/** @description Address of the transaction initiator */
|
|
32200
|
+
address: string;
|
|
32201
|
+
/** @description Nonce of the transaction initiator */
|
|
32202
|
+
nonce: number;
|
|
32203
|
+
};
|
|
32204
|
+
sponsor: {
|
|
32205
|
+
/** @description Address of the transaction initiator */
|
|
32206
|
+
address: string;
|
|
32207
|
+
/** @description Nonce of the transaction initiator */
|
|
32208
|
+
nonce: number;
|
|
32209
|
+
} | null;
|
|
32210
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32211
|
+
fee_rate: string;
|
|
32212
|
+
block: {
|
|
32213
|
+
/** @description Height of the block this transactions was associated with */
|
|
32214
|
+
height: number;
|
|
32215
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32216
|
+
hash: string;
|
|
32217
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32218
|
+
index_hash: string;
|
|
32219
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32220
|
+
time: number;
|
|
32221
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32222
|
+
tx_index: number;
|
|
32223
|
+
};
|
|
32224
|
+
bitcoin_block: {
|
|
32225
|
+
/** @description Height of the anchor burn block. */
|
|
32226
|
+
height: number;
|
|
32227
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32228
|
+
time: number;
|
|
32229
|
+
};
|
|
32230
|
+
/** @description Status of the transaction */
|
|
32231
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32232
|
+
/** @enum {string} */
|
|
32233
|
+
type: "token_transfer";
|
|
32234
|
+
token_transfer: {
|
|
32235
|
+
recipient: string;
|
|
32236
|
+
/** @description Transfer amount as Integer string (64-bit unsigned integer) */
|
|
32237
|
+
amount: string;
|
|
32238
|
+
memo: {
|
|
32239
|
+
hex: string;
|
|
32240
|
+
repr: string;
|
|
32241
|
+
} | null;
|
|
32242
|
+
};
|
|
32243
|
+
} | {
|
|
32244
|
+
/** @description Transaction ID */
|
|
32245
|
+
tx_id: string;
|
|
32246
|
+
sender: {
|
|
32247
|
+
/** @description Address of the transaction initiator */
|
|
32248
|
+
address: string;
|
|
32249
|
+
/** @description Nonce of the transaction initiator */
|
|
32250
|
+
nonce: number;
|
|
32251
|
+
};
|
|
32252
|
+
sponsor: {
|
|
32253
|
+
/** @description Address of the transaction initiator */
|
|
32254
|
+
address: string;
|
|
32255
|
+
/** @description Nonce of the transaction initiator */
|
|
32256
|
+
nonce: number;
|
|
32257
|
+
} | null;
|
|
32258
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32259
|
+
fee_rate: string;
|
|
32260
|
+
block: {
|
|
32261
|
+
/** @description Height of the block this transactions was associated with */
|
|
32262
|
+
height: number;
|
|
32263
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32264
|
+
hash: string;
|
|
32265
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32266
|
+
index_hash: string;
|
|
32267
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32268
|
+
time: number;
|
|
32269
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32270
|
+
tx_index: number;
|
|
32271
|
+
};
|
|
32272
|
+
bitcoin_block: {
|
|
32273
|
+
/** @description Height of the anchor burn block. */
|
|
32274
|
+
height: number;
|
|
32275
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32276
|
+
time: number;
|
|
32277
|
+
};
|
|
32278
|
+
/** @description Status of the transaction */
|
|
32279
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32280
|
+
/** @enum {string} */
|
|
32281
|
+
type: "smart_contract";
|
|
32282
|
+
smart_contract: {
|
|
32283
|
+
clarity_version: number | null;
|
|
32284
|
+
/** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
|
|
32285
|
+
contract_id: string;
|
|
32286
|
+
};
|
|
32287
|
+
} | {
|
|
32288
|
+
/** @description Transaction ID */
|
|
32289
|
+
tx_id: string;
|
|
32290
|
+
sender: {
|
|
32291
|
+
/** @description Address of the transaction initiator */
|
|
32292
|
+
address: string;
|
|
32293
|
+
/** @description Nonce of the transaction initiator */
|
|
32294
|
+
nonce: number;
|
|
32295
|
+
};
|
|
32296
|
+
sponsor: {
|
|
32297
|
+
/** @description Address of the transaction initiator */
|
|
32298
|
+
address: string;
|
|
32299
|
+
/** @description Nonce of the transaction initiator */
|
|
32300
|
+
nonce: number;
|
|
32301
|
+
} | null;
|
|
32302
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32303
|
+
fee_rate: string;
|
|
32304
|
+
block: {
|
|
32305
|
+
/** @description Height of the block this transactions was associated with */
|
|
32306
|
+
height: number;
|
|
32307
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32308
|
+
hash: string;
|
|
32309
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32310
|
+
index_hash: string;
|
|
32311
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32312
|
+
time: number;
|
|
32313
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32314
|
+
tx_index: number;
|
|
32315
|
+
};
|
|
32316
|
+
bitcoin_block: {
|
|
32317
|
+
/** @description Height of the anchor burn block. */
|
|
32318
|
+
height: number;
|
|
32319
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32320
|
+
time: number;
|
|
32321
|
+
};
|
|
32322
|
+
/** @description Status of the transaction */
|
|
32323
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32324
|
+
/** @enum {string} */
|
|
32325
|
+
type: "contract_call";
|
|
32326
|
+
contract_call: {
|
|
32327
|
+
/** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
|
|
32328
|
+
contract_id: string;
|
|
32329
|
+
/** @description Name of the Clarity function to be invoked */
|
|
32330
|
+
function_name: string;
|
|
32331
|
+
};
|
|
32332
|
+
} | {
|
|
32333
|
+
/** @description Transaction ID */
|
|
32334
|
+
tx_id: string;
|
|
32335
|
+
sender: {
|
|
32336
|
+
/** @description Address of the transaction initiator */
|
|
32337
|
+
address: string;
|
|
32338
|
+
/** @description Nonce of the transaction initiator */
|
|
32339
|
+
nonce: number;
|
|
32340
|
+
};
|
|
32341
|
+
sponsor: {
|
|
32342
|
+
/** @description Address of the transaction initiator */
|
|
32343
|
+
address: string;
|
|
32344
|
+
/** @description Nonce of the transaction initiator */
|
|
32345
|
+
nonce: number;
|
|
32346
|
+
} | null;
|
|
32347
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32348
|
+
fee_rate: string;
|
|
32349
|
+
block: {
|
|
32350
|
+
/** @description Height of the block this transactions was associated with */
|
|
32351
|
+
height: number;
|
|
32352
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32353
|
+
hash: string;
|
|
32354
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32355
|
+
index_hash: string;
|
|
32356
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32357
|
+
time: number;
|
|
32358
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32359
|
+
tx_index: number;
|
|
32360
|
+
};
|
|
32361
|
+
bitcoin_block: {
|
|
32362
|
+
/** @description Height of the anchor burn block. */
|
|
32363
|
+
height: number;
|
|
32364
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32365
|
+
time: number;
|
|
32366
|
+
};
|
|
32367
|
+
/** @description Status of the transaction */
|
|
32368
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32369
|
+
/** @enum {string} */
|
|
32370
|
+
type: "poison_microblock";
|
|
32371
|
+
} | {
|
|
32372
|
+
/** @description Transaction ID */
|
|
32373
|
+
tx_id: string;
|
|
32374
|
+
sender: {
|
|
32375
|
+
/** @description Address of the transaction initiator */
|
|
32376
|
+
address: string;
|
|
32377
|
+
/** @description Nonce of the transaction initiator */
|
|
32378
|
+
nonce: number;
|
|
32379
|
+
};
|
|
32380
|
+
sponsor: {
|
|
32381
|
+
/** @description Address of the transaction initiator */
|
|
32382
|
+
address: string;
|
|
32383
|
+
/** @description Nonce of the transaction initiator */
|
|
32384
|
+
nonce: number;
|
|
32385
|
+
} | null;
|
|
32386
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32387
|
+
fee_rate: string;
|
|
32388
|
+
block: {
|
|
32389
|
+
/** @description Height of the block this transactions was associated with */
|
|
32390
|
+
height: number;
|
|
32391
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32392
|
+
hash: string;
|
|
32393
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32394
|
+
index_hash: string;
|
|
32395
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32396
|
+
time: number;
|
|
32397
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32398
|
+
tx_index: number;
|
|
32399
|
+
};
|
|
32400
|
+
bitcoin_block: {
|
|
32401
|
+
/** @description Height of the anchor burn block. */
|
|
32402
|
+
height: number;
|
|
32403
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32404
|
+
time: number;
|
|
32405
|
+
};
|
|
32406
|
+
/** @description Status of the transaction */
|
|
32407
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32408
|
+
/** @enum {string} */
|
|
32409
|
+
type: "coinbase";
|
|
32410
|
+
coinbase: {
|
|
32411
|
+
alt_recipient: string | null;
|
|
32412
|
+
};
|
|
32413
|
+
} | {
|
|
32414
|
+
/** @description Transaction ID */
|
|
32415
|
+
tx_id: string;
|
|
32416
|
+
sender: {
|
|
32417
|
+
/** @description Address of the transaction initiator */
|
|
32418
|
+
address: string;
|
|
32419
|
+
/** @description Nonce of the transaction initiator */
|
|
32420
|
+
nonce: number;
|
|
32421
|
+
};
|
|
32422
|
+
sponsor: {
|
|
32423
|
+
/** @description Address of the transaction initiator */
|
|
32424
|
+
address: string;
|
|
32425
|
+
/** @description Nonce of the transaction initiator */
|
|
32426
|
+
nonce: number;
|
|
32427
|
+
} | null;
|
|
32428
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32429
|
+
fee_rate: string;
|
|
32430
|
+
block: {
|
|
32431
|
+
/** @description Height of the block this transactions was associated with */
|
|
32432
|
+
height: number;
|
|
32433
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32434
|
+
hash: string;
|
|
32435
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32436
|
+
index_hash: string;
|
|
32437
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32438
|
+
time: number;
|
|
32439
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32440
|
+
tx_index: number;
|
|
32441
|
+
};
|
|
32442
|
+
bitcoin_block: {
|
|
32443
|
+
/** @description Height of the anchor burn block. */
|
|
32444
|
+
height: number;
|
|
32445
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32446
|
+
time: number;
|
|
32447
|
+
};
|
|
32448
|
+
/** @description Status of the transaction */
|
|
32449
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32450
|
+
/** @enum {string} */
|
|
32451
|
+
type: "tenure_change";
|
|
32452
|
+
tenure_change: {
|
|
32453
|
+
/** @description Cause of change in mining tenure. Depending on cause, tenure can be ended or extended. */
|
|
32454
|
+
cause: "block_found" | "extended" | "extended_runtime" | "extended_read_count" | "extended_read_length" | "extended_write_count" | "extended_write_length";
|
|
32455
|
+
};
|
|
32456
|
+
})[];
|
|
32457
|
+
};
|
|
32458
|
+
};
|
|
32459
|
+
};
|
|
32460
|
+
/** @description Default Response */
|
|
32461
|
+
"4XX": {
|
|
32462
|
+
headers: {
|
|
32463
|
+
[name: string]: unknown;
|
|
32464
|
+
};
|
|
32465
|
+
content: {
|
|
32466
|
+
"application/json": {
|
|
32467
|
+
error: string;
|
|
32468
|
+
message?: string;
|
|
32469
|
+
} & {
|
|
32470
|
+
[key: string]: unknown;
|
|
32471
|
+
};
|
|
32472
|
+
};
|
|
32473
|
+
};
|
|
32474
|
+
};
|
|
32475
|
+
};
|
|
32476
|
+
get_transaction: {
|
|
32477
|
+
parameters: {
|
|
32478
|
+
query?: {
|
|
32479
|
+
/** @description Heavy fields to include in the response. Omitted by default to keep the payload lean. Provide as repeated querystring values (`?include=A&include=B`) or as a single comma-separated value (`?include=A,B`). */
|
|
32480
|
+
include?: ("function_args" | "source_code" | "post_conditions" | "result")[];
|
|
32481
|
+
};
|
|
32482
|
+
header?: never;
|
|
32483
|
+
path: {
|
|
32484
|
+
/**
|
|
32485
|
+
* @description Transaction ID
|
|
32486
|
+
* @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
|
|
32487
|
+
*/
|
|
32488
|
+
tx_id: string;
|
|
32489
|
+
};
|
|
32490
|
+
cookie?: never;
|
|
32491
|
+
};
|
|
32492
|
+
requestBody?: never;
|
|
32493
|
+
responses: {
|
|
32494
|
+
/** @description Default Response */
|
|
32495
|
+
200: {
|
|
32496
|
+
headers: {
|
|
32497
|
+
[name: string]: unknown;
|
|
32498
|
+
};
|
|
32499
|
+
content: {
|
|
32500
|
+
"application/json": ({
|
|
32501
|
+
/** @description Transaction ID */
|
|
32502
|
+
tx_id: string;
|
|
32503
|
+
sender: {
|
|
32504
|
+
/** @description Address of the transaction initiator */
|
|
32505
|
+
address: string;
|
|
32506
|
+
/** @description Nonce of the transaction initiator */
|
|
32507
|
+
nonce: number;
|
|
32508
|
+
};
|
|
32509
|
+
sponsor: {
|
|
32510
|
+
/** @description Address of the transaction initiator */
|
|
32511
|
+
address: string;
|
|
32512
|
+
/** @description Nonce of the transaction initiator */
|
|
32513
|
+
nonce: number;
|
|
32514
|
+
} | null;
|
|
32515
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32516
|
+
fee_rate: string;
|
|
32517
|
+
block: {
|
|
32518
|
+
/** @description Height of the block this transactions was associated with */
|
|
32519
|
+
height: number;
|
|
32520
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32521
|
+
hash: string;
|
|
32522
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32523
|
+
index_hash: string;
|
|
32524
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32525
|
+
time: number;
|
|
32526
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32527
|
+
tx_index: number;
|
|
32528
|
+
};
|
|
32529
|
+
bitcoin_block: {
|
|
32530
|
+
/** @description Height of the anchor burn block. */
|
|
32531
|
+
height: number;
|
|
32532
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32533
|
+
time: number;
|
|
32534
|
+
};
|
|
32535
|
+
/** @description Status of the transaction */
|
|
32536
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32537
|
+
parent_block: {
|
|
32538
|
+
/** @description Hash of the parent block */
|
|
32539
|
+
hash: string;
|
|
32540
|
+
/** @description Index block hash of the parent block */
|
|
32541
|
+
index_hash: string;
|
|
32542
|
+
};
|
|
32543
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
32544
|
+
post_conditions?: ({
|
|
32545
|
+
principal: {
|
|
32546
|
+
/** @enum {string} */
|
|
32547
|
+
type_id: "principal_origin";
|
|
32548
|
+
} | {
|
|
32549
|
+
/** @enum {string} */
|
|
32550
|
+
type_id: "principal_standard";
|
|
32551
|
+
address: string;
|
|
32552
|
+
} | {
|
|
32553
|
+
/** @enum {string} */
|
|
32554
|
+
type_id: "principal_contract";
|
|
32555
|
+
address: string;
|
|
32556
|
+
contract_name: string;
|
|
32557
|
+
};
|
|
32558
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
32559
|
+
amount: string;
|
|
32560
|
+
/** @enum {string} */
|
|
32561
|
+
type: "stx";
|
|
32562
|
+
} | {
|
|
32563
|
+
principal: {
|
|
32564
|
+
/** @enum {string} */
|
|
32565
|
+
type_id: "principal_origin";
|
|
32566
|
+
} | {
|
|
32567
|
+
/** @enum {string} */
|
|
32568
|
+
type_id: "principal_standard";
|
|
32569
|
+
address: string;
|
|
32570
|
+
} | {
|
|
32571
|
+
/** @enum {string} */
|
|
32572
|
+
type_id: "principal_contract";
|
|
32573
|
+
address: string;
|
|
32574
|
+
contract_name: string;
|
|
32575
|
+
};
|
|
32576
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
32577
|
+
amount: string;
|
|
32578
|
+
/** @enum {string} */
|
|
32579
|
+
type: "fungible";
|
|
32580
|
+
asset: {
|
|
32581
|
+
asset_name: string;
|
|
32582
|
+
contract_address: string;
|
|
32583
|
+
contract_name: string;
|
|
32584
|
+
};
|
|
32585
|
+
} | {
|
|
32586
|
+
principal: {
|
|
32587
|
+
/** @enum {string} */
|
|
32588
|
+
type_id: "principal_origin";
|
|
32589
|
+
} | {
|
|
32590
|
+
/** @enum {string} */
|
|
32591
|
+
type_id: "principal_standard";
|
|
32592
|
+
address: string;
|
|
32593
|
+
} | {
|
|
32594
|
+
/** @enum {string} */
|
|
32595
|
+
type_id: "principal_contract";
|
|
32596
|
+
address: string;
|
|
32597
|
+
contract_name: string;
|
|
32598
|
+
};
|
|
32599
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
32600
|
+
/** @enum {string} */
|
|
32601
|
+
type: "non_fungible";
|
|
32602
|
+
asset_value: {
|
|
32603
|
+
hex: string;
|
|
32604
|
+
repr: string;
|
|
32605
|
+
};
|
|
32606
|
+
asset: {
|
|
32607
|
+
asset_name: string;
|
|
32608
|
+
contract_address: string;
|
|
32609
|
+
contract_name: string;
|
|
32610
|
+
};
|
|
32611
|
+
})[];
|
|
32612
|
+
/** @description Number of events in the transaction */
|
|
32613
|
+
event_count: number;
|
|
32614
|
+
execution_cost: {
|
|
32615
|
+
/** @description Number of reads in the transaction */
|
|
32616
|
+
read_count: number;
|
|
32617
|
+
/** @description Length of reads in the transaction */
|
|
32618
|
+
read_length: number;
|
|
32619
|
+
/** @description Runtime of the transaction */
|
|
32620
|
+
runtime: number;
|
|
32621
|
+
/** @description Number of writes in the transaction */
|
|
32622
|
+
write_count: number;
|
|
32623
|
+
/** @description Length of writes in the transaction */
|
|
32624
|
+
write_length: number;
|
|
32625
|
+
};
|
|
32626
|
+
vm_error: string | null;
|
|
32627
|
+
result?: {
|
|
32628
|
+
hex: string;
|
|
32629
|
+
repr: string;
|
|
32630
|
+
};
|
|
32631
|
+
/** @enum {string} */
|
|
32632
|
+
type: "token_transfer";
|
|
32633
|
+
token_transfer: {
|
|
32634
|
+
/** @description Recipient of the token transfer */
|
|
32635
|
+
recipient: string;
|
|
32636
|
+
/** @description Amount of the token transfer */
|
|
32637
|
+
amount: string;
|
|
32638
|
+
memo: {
|
|
32639
|
+
hex: string;
|
|
32640
|
+
repr: string;
|
|
32641
|
+
} | null;
|
|
32642
|
+
};
|
|
32643
|
+
} | {
|
|
32644
|
+
/** @description Transaction ID */
|
|
32645
|
+
tx_id: string;
|
|
32646
|
+
sender: {
|
|
32647
|
+
/** @description Address of the transaction initiator */
|
|
32648
|
+
address: string;
|
|
32649
|
+
/** @description Nonce of the transaction initiator */
|
|
32650
|
+
nonce: number;
|
|
32651
|
+
};
|
|
32652
|
+
sponsor: {
|
|
32653
|
+
/** @description Address of the transaction initiator */
|
|
32654
|
+
address: string;
|
|
32655
|
+
/** @description Nonce of the transaction initiator */
|
|
32656
|
+
nonce: number;
|
|
32657
|
+
} | null;
|
|
32658
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32659
|
+
fee_rate: string;
|
|
32660
|
+
block: {
|
|
32661
|
+
/** @description Height of the block this transactions was associated with */
|
|
32662
|
+
height: number;
|
|
32663
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32664
|
+
hash: string;
|
|
32665
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32666
|
+
index_hash: string;
|
|
32667
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32668
|
+
time: number;
|
|
32669
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32670
|
+
tx_index: number;
|
|
32671
|
+
};
|
|
32672
|
+
bitcoin_block: {
|
|
32673
|
+
/** @description Height of the anchor burn block. */
|
|
32674
|
+
height: number;
|
|
32675
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32676
|
+
time: number;
|
|
32677
|
+
};
|
|
32678
|
+
/** @description Status of the transaction */
|
|
32679
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32680
|
+
parent_block: {
|
|
32681
|
+
/** @description Hash of the parent block */
|
|
32682
|
+
hash: string;
|
|
32683
|
+
/** @description Index block hash of the parent block */
|
|
32684
|
+
index_hash: string;
|
|
32685
|
+
};
|
|
32686
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
32687
|
+
post_conditions?: ({
|
|
32688
|
+
principal: {
|
|
32689
|
+
/** @enum {string} */
|
|
32690
|
+
type_id: "principal_origin";
|
|
32691
|
+
} | {
|
|
32692
|
+
/** @enum {string} */
|
|
32693
|
+
type_id: "principal_standard";
|
|
32694
|
+
address: string;
|
|
32695
|
+
} | {
|
|
32696
|
+
/** @enum {string} */
|
|
32697
|
+
type_id: "principal_contract";
|
|
32698
|
+
address: string;
|
|
32699
|
+
contract_name: string;
|
|
32700
|
+
};
|
|
32701
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
32702
|
+
amount: string;
|
|
32703
|
+
/** @enum {string} */
|
|
32704
|
+
type: "stx";
|
|
32705
|
+
} | {
|
|
32706
|
+
principal: {
|
|
32707
|
+
/** @enum {string} */
|
|
32708
|
+
type_id: "principal_origin";
|
|
32709
|
+
} | {
|
|
32710
|
+
/** @enum {string} */
|
|
32711
|
+
type_id: "principal_standard";
|
|
32712
|
+
address: string;
|
|
32713
|
+
} | {
|
|
32714
|
+
/** @enum {string} */
|
|
32715
|
+
type_id: "principal_contract";
|
|
32716
|
+
address: string;
|
|
32717
|
+
contract_name: string;
|
|
32718
|
+
};
|
|
32719
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
32720
|
+
amount: string;
|
|
32721
|
+
/** @enum {string} */
|
|
32722
|
+
type: "fungible";
|
|
32723
|
+
asset: {
|
|
32724
|
+
asset_name: string;
|
|
32725
|
+
contract_address: string;
|
|
32726
|
+
contract_name: string;
|
|
32727
|
+
};
|
|
32728
|
+
} | {
|
|
32729
|
+
principal: {
|
|
32730
|
+
/** @enum {string} */
|
|
32731
|
+
type_id: "principal_origin";
|
|
32732
|
+
} | {
|
|
32733
|
+
/** @enum {string} */
|
|
32734
|
+
type_id: "principal_standard";
|
|
32735
|
+
address: string;
|
|
32736
|
+
} | {
|
|
32737
|
+
/** @enum {string} */
|
|
32738
|
+
type_id: "principal_contract";
|
|
32739
|
+
address: string;
|
|
32740
|
+
contract_name: string;
|
|
32741
|
+
};
|
|
32742
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
32743
|
+
/** @enum {string} */
|
|
32744
|
+
type: "non_fungible";
|
|
32745
|
+
asset_value: {
|
|
32746
|
+
hex: string;
|
|
32747
|
+
repr: string;
|
|
32748
|
+
};
|
|
32749
|
+
asset: {
|
|
32750
|
+
asset_name: string;
|
|
32751
|
+
contract_address: string;
|
|
32752
|
+
contract_name: string;
|
|
32753
|
+
};
|
|
32754
|
+
})[];
|
|
32755
|
+
/** @description Number of events in the transaction */
|
|
32756
|
+
event_count: number;
|
|
32757
|
+
execution_cost: {
|
|
32758
|
+
/** @description Number of reads in the transaction */
|
|
32759
|
+
read_count: number;
|
|
32760
|
+
/** @description Length of reads in the transaction */
|
|
32761
|
+
read_length: number;
|
|
32762
|
+
/** @description Runtime of the transaction */
|
|
32763
|
+
runtime: number;
|
|
32764
|
+
/** @description Number of writes in the transaction */
|
|
32765
|
+
write_count: number;
|
|
32766
|
+
/** @description Length of writes in the transaction */
|
|
32767
|
+
write_length: number;
|
|
32768
|
+
};
|
|
32769
|
+
vm_error: string | null;
|
|
32770
|
+
result?: {
|
|
32771
|
+
hex: string;
|
|
32772
|
+
repr: string;
|
|
32773
|
+
};
|
|
32774
|
+
/** @enum {string} */
|
|
32775
|
+
type: "smart_contract";
|
|
32776
|
+
smart_contract: {
|
|
32777
|
+
/** @description Contract ID of the smart contract */
|
|
32778
|
+
contract_id: string;
|
|
32779
|
+
clarity_version: number | null;
|
|
32780
|
+
/** @description Source code of the smart contract. Only present when requested via the `include=source_code` query param. */
|
|
32781
|
+
source_code?: string;
|
|
32782
|
+
};
|
|
32783
|
+
} | {
|
|
32784
|
+
/** @description Transaction ID */
|
|
32785
|
+
tx_id: string;
|
|
32786
|
+
sender: {
|
|
32787
|
+
/** @description Address of the transaction initiator */
|
|
32788
|
+
address: string;
|
|
32789
|
+
/** @description Nonce of the transaction initiator */
|
|
32790
|
+
nonce: number;
|
|
32791
|
+
};
|
|
32792
|
+
sponsor: {
|
|
32793
|
+
/** @description Address of the transaction initiator */
|
|
32794
|
+
address: string;
|
|
32795
|
+
/** @description Nonce of the transaction initiator */
|
|
32796
|
+
nonce: number;
|
|
32797
|
+
} | null;
|
|
32798
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32799
|
+
fee_rate: string;
|
|
32800
|
+
block: {
|
|
32801
|
+
/** @description Height of the block this transactions was associated with */
|
|
32802
|
+
height: number;
|
|
32803
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32804
|
+
hash: string;
|
|
32805
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32806
|
+
index_hash: string;
|
|
32807
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32808
|
+
time: number;
|
|
32809
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32810
|
+
tx_index: number;
|
|
32811
|
+
};
|
|
32812
|
+
bitcoin_block: {
|
|
32813
|
+
/** @description Height of the anchor burn block. */
|
|
32814
|
+
height: number;
|
|
32815
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32816
|
+
time: number;
|
|
32817
|
+
};
|
|
32818
|
+
/** @description Status of the transaction */
|
|
32819
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32820
|
+
parent_block: {
|
|
32821
|
+
/** @description Hash of the parent block */
|
|
32822
|
+
hash: string;
|
|
32823
|
+
/** @description Index block hash of the parent block */
|
|
32824
|
+
index_hash: string;
|
|
32825
|
+
};
|
|
32826
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
32827
|
+
post_conditions?: ({
|
|
32828
|
+
principal: {
|
|
32829
|
+
/** @enum {string} */
|
|
32830
|
+
type_id: "principal_origin";
|
|
32831
|
+
} | {
|
|
32832
|
+
/** @enum {string} */
|
|
32833
|
+
type_id: "principal_standard";
|
|
32834
|
+
address: string;
|
|
32835
|
+
} | {
|
|
32836
|
+
/** @enum {string} */
|
|
32837
|
+
type_id: "principal_contract";
|
|
32838
|
+
address: string;
|
|
32839
|
+
contract_name: string;
|
|
32840
|
+
};
|
|
32841
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
32842
|
+
amount: string;
|
|
32843
|
+
/** @enum {string} */
|
|
32844
|
+
type: "stx";
|
|
32845
|
+
} | {
|
|
32846
|
+
principal: {
|
|
32847
|
+
/** @enum {string} */
|
|
32848
|
+
type_id: "principal_origin";
|
|
32849
|
+
} | {
|
|
32850
|
+
/** @enum {string} */
|
|
32851
|
+
type_id: "principal_standard";
|
|
32852
|
+
address: string;
|
|
32853
|
+
} | {
|
|
32854
|
+
/** @enum {string} */
|
|
32855
|
+
type_id: "principal_contract";
|
|
32856
|
+
address: string;
|
|
32857
|
+
contract_name: string;
|
|
32858
|
+
};
|
|
32859
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
32860
|
+
amount: string;
|
|
32861
|
+
/** @enum {string} */
|
|
32862
|
+
type: "fungible";
|
|
32863
|
+
asset: {
|
|
32864
|
+
asset_name: string;
|
|
32865
|
+
contract_address: string;
|
|
32866
|
+
contract_name: string;
|
|
32867
|
+
};
|
|
32868
|
+
} | {
|
|
32869
|
+
principal: {
|
|
32870
|
+
/** @enum {string} */
|
|
32871
|
+
type_id: "principal_origin";
|
|
32872
|
+
} | {
|
|
32873
|
+
/** @enum {string} */
|
|
32874
|
+
type_id: "principal_standard";
|
|
32875
|
+
address: string;
|
|
32876
|
+
} | {
|
|
32877
|
+
/** @enum {string} */
|
|
32878
|
+
type_id: "principal_contract";
|
|
32879
|
+
address: string;
|
|
32880
|
+
contract_name: string;
|
|
32881
|
+
};
|
|
32882
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
32883
|
+
/** @enum {string} */
|
|
32884
|
+
type: "non_fungible";
|
|
32885
|
+
asset_value: {
|
|
32886
|
+
hex: string;
|
|
32887
|
+
repr: string;
|
|
32888
|
+
};
|
|
32889
|
+
asset: {
|
|
32890
|
+
asset_name: string;
|
|
32891
|
+
contract_address: string;
|
|
32892
|
+
contract_name: string;
|
|
32893
|
+
};
|
|
32894
|
+
})[];
|
|
32895
|
+
/** @description Number of events in the transaction */
|
|
32896
|
+
event_count: number;
|
|
32897
|
+
execution_cost: {
|
|
32898
|
+
/** @description Number of reads in the transaction */
|
|
32899
|
+
read_count: number;
|
|
32900
|
+
/** @description Length of reads in the transaction */
|
|
32901
|
+
read_length: number;
|
|
32902
|
+
/** @description Runtime of the transaction */
|
|
32903
|
+
runtime: number;
|
|
32904
|
+
/** @description Number of writes in the transaction */
|
|
32905
|
+
write_count: number;
|
|
32906
|
+
/** @description Length of writes in the transaction */
|
|
32907
|
+
write_length: number;
|
|
32908
|
+
};
|
|
32909
|
+
vm_error: string | null;
|
|
32910
|
+
result?: {
|
|
32911
|
+
hex: string;
|
|
32912
|
+
repr: string;
|
|
32913
|
+
};
|
|
32914
|
+
/** @enum {string} */
|
|
32915
|
+
type: "contract_call";
|
|
32916
|
+
contract_call: {
|
|
32917
|
+
/** @description Contract ID of the contract call */
|
|
32918
|
+
contract_id: string;
|
|
32919
|
+
/** @description Function name of the contract call */
|
|
32920
|
+
function_name: string;
|
|
32921
|
+
/** @description List of arguments used to invoke the function. Only present when requested via the `include=function_args` query param. */
|
|
32922
|
+
function_args?: {
|
|
32923
|
+
hex: string;
|
|
32924
|
+
repr: string;
|
|
32925
|
+
}[];
|
|
32926
|
+
};
|
|
32927
|
+
} | {
|
|
32928
|
+
/** @description Transaction ID */
|
|
32929
|
+
tx_id: string;
|
|
32930
|
+
sender: {
|
|
32931
|
+
/** @description Address of the transaction initiator */
|
|
32932
|
+
address: string;
|
|
32933
|
+
/** @description Nonce of the transaction initiator */
|
|
32934
|
+
nonce: number;
|
|
32935
|
+
};
|
|
32936
|
+
sponsor: {
|
|
32937
|
+
/** @description Address of the transaction initiator */
|
|
32938
|
+
address: string;
|
|
32939
|
+
/** @description Nonce of the transaction initiator */
|
|
32940
|
+
nonce: number;
|
|
32941
|
+
} | null;
|
|
32942
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
32943
|
+
fee_rate: string;
|
|
32944
|
+
block: {
|
|
32945
|
+
/** @description Height of the block this transactions was associated with */
|
|
32946
|
+
height: number;
|
|
32947
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
32948
|
+
hash: string;
|
|
32949
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
32950
|
+
index_hash: string;
|
|
32951
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32952
|
+
time: number;
|
|
32953
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
32954
|
+
tx_index: number;
|
|
32955
|
+
};
|
|
32956
|
+
bitcoin_block: {
|
|
32957
|
+
/** @description Height of the anchor burn block. */
|
|
32958
|
+
height: number;
|
|
32959
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
32960
|
+
time: number;
|
|
32961
|
+
};
|
|
32962
|
+
/** @description Status of the transaction */
|
|
32963
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
32964
|
+
parent_block: {
|
|
32965
|
+
/** @description Hash of the parent block */
|
|
32966
|
+
hash: string;
|
|
32967
|
+
/** @description Index block hash of the parent block */
|
|
32968
|
+
index_hash: string;
|
|
32969
|
+
};
|
|
32970
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
32971
|
+
post_conditions?: ({
|
|
32972
|
+
principal: {
|
|
32973
|
+
/** @enum {string} */
|
|
32974
|
+
type_id: "principal_origin";
|
|
32975
|
+
} | {
|
|
32976
|
+
/** @enum {string} */
|
|
32977
|
+
type_id: "principal_standard";
|
|
32978
|
+
address: string;
|
|
32979
|
+
} | {
|
|
32980
|
+
/** @enum {string} */
|
|
32981
|
+
type_id: "principal_contract";
|
|
32982
|
+
address: string;
|
|
32983
|
+
contract_name: string;
|
|
32984
|
+
};
|
|
32985
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
32986
|
+
amount: string;
|
|
32987
|
+
/** @enum {string} */
|
|
32988
|
+
type: "stx";
|
|
32989
|
+
} | {
|
|
32990
|
+
principal: {
|
|
32991
|
+
/** @enum {string} */
|
|
32992
|
+
type_id: "principal_origin";
|
|
32993
|
+
} | {
|
|
32994
|
+
/** @enum {string} */
|
|
32995
|
+
type_id: "principal_standard";
|
|
32996
|
+
address: string;
|
|
32997
|
+
} | {
|
|
32998
|
+
/** @enum {string} */
|
|
32999
|
+
type_id: "principal_contract";
|
|
33000
|
+
address: string;
|
|
33001
|
+
contract_name: string;
|
|
33002
|
+
};
|
|
33003
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33004
|
+
amount: string;
|
|
33005
|
+
/** @enum {string} */
|
|
33006
|
+
type: "fungible";
|
|
33007
|
+
asset: {
|
|
33008
|
+
asset_name: string;
|
|
33009
|
+
contract_address: string;
|
|
33010
|
+
contract_name: string;
|
|
33011
|
+
};
|
|
33012
|
+
} | {
|
|
33013
|
+
principal: {
|
|
33014
|
+
/** @enum {string} */
|
|
33015
|
+
type_id: "principal_origin";
|
|
33016
|
+
} | {
|
|
33017
|
+
/** @enum {string} */
|
|
33018
|
+
type_id: "principal_standard";
|
|
33019
|
+
address: string;
|
|
33020
|
+
} | {
|
|
33021
|
+
/** @enum {string} */
|
|
33022
|
+
type_id: "principal_contract";
|
|
33023
|
+
address: string;
|
|
33024
|
+
contract_name: string;
|
|
33025
|
+
};
|
|
33026
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
33027
|
+
/** @enum {string} */
|
|
33028
|
+
type: "non_fungible";
|
|
33029
|
+
asset_value: {
|
|
33030
|
+
hex: string;
|
|
33031
|
+
repr: string;
|
|
33032
|
+
};
|
|
33033
|
+
asset: {
|
|
33034
|
+
asset_name: string;
|
|
33035
|
+
contract_address: string;
|
|
33036
|
+
contract_name: string;
|
|
33037
|
+
};
|
|
33038
|
+
})[];
|
|
33039
|
+
/** @description Number of events in the transaction */
|
|
33040
|
+
event_count: number;
|
|
33041
|
+
execution_cost: {
|
|
33042
|
+
/** @description Number of reads in the transaction */
|
|
33043
|
+
read_count: number;
|
|
33044
|
+
/** @description Length of reads in the transaction */
|
|
33045
|
+
read_length: number;
|
|
33046
|
+
/** @description Runtime of the transaction */
|
|
33047
|
+
runtime: number;
|
|
33048
|
+
/** @description Number of writes in the transaction */
|
|
33049
|
+
write_count: number;
|
|
33050
|
+
/** @description Length of writes in the transaction */
|
|
33051
|
+
write_length: number;
|
|
33052
|
+
};
|
|
33053
|
+
vm_error: string | null;
|
|
33054
|
+
result?: {
|
|
33055
|
+
hex: string;
|
|
33056
|
+
repr: string;
|
|
33057
|
+
};
|
|
33058
|
+
/** @enum {string} */
|
|
33059
|
+
type: "poison_microblock";
|
|
33060
|
+
} | {
|
|
33061
|
+
/** @description Transaction ID */
|
|
33062
|
+
tx_id: string;
|
|
33063
|
+
sender: {
|
|
33064
|
+
/** @description Address of the transaction initiator */
|
|
33065
|
+
address: string;
|
|
33066
|
+
/** @description Nonce of the transaction initiator */
|
|
33067
|
+
nonce: number;
|
|
33068
|
+
};
|
|
33069
|
+
sponsor: {
|
|
33070
|
+
/** @description Address of the transaction initiator */
|
|
33071
|
+
address: string;
|
|
33072
|
+
/** @description Nonce of the transaction initiator */
|
|
33073
|
+
nonce: number;
|
|
33074
|
+
} | null;
|
|
33075
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
33076
|
+
fee_rate: string;
|
|
33077
|
+
block: {
|
|
33078
|
+
/** @description Height of the block this transactions was associated with */
|
|
33079
|
+
height: number;
|
|
33080
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
33081
|
+
hash: string;
|
|
33082
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
33083
|
+
index_hash: string;
|
|
33084
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
33085
|
+
time: number;
|
|
33086
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
33087
|
+
tx_index: number;
|
|
33088
|
+
};
|
|
33089
|
+
bitcoin_block: {
|
|
33090
|
+
/** @description Height of the anchor burn block. */
|
|
33091
|
+
height: number;
|
|
33092
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
33093
|
+
time: number;
|
|
33094
|
+
};
|
|
33095
|
+
/** @description Status of the transaction */
|
|
33096
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
33097
|
+
parent_block: {
|
|
33098
|
+
/** @description Hash of the parent block */
|
|
33099
|
+
hash: string;
|
|
33100
|
+
/** @description Index block hash of the parent block */
|
|
33101
|
+
index_hash: string;
|
|
33102
|
+
};
|
|
33103
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
33104
|
+
post_conditions?: ({
|
|
33105
|
+
principal: {
|
|
33106
|
+
/** @enum {string} */
|
|
33107
|
+
type_id: "principal_origin";
|
|
33108
|
+
} | {
|
|
33109
|
+
/** @enum {string} */
|
|
33110
|
+
type_id: "principal_standard";
|
|
33111
|
+
address: string;
|
|
33112
|
+
} | {
|
|
33113
|
+
/** @enum {string} */
|
|
33114
|
+
type_id: "principal_contract";
|
|
33115
|
+
address: string;
|
|
33116
|
+
contract_name: string;
|
|
33117
|
+
};
|
|
33118
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33119
|
+
amount: string;
|
|
33120
|
+
/** @enum {string} */
|
|
33121
|
+
type: "stx";
|
|
33122
|
+
} | {
|
|
33123
|
+
principal: {
|
|
33124
|
+
/** @enum {string} */
|
|
33125
|
+
type_id: "principal_origin";
|
|
33126
|
+
} | {
|
|
33127
|
+
/** @enum {string} */
|
|
33128
|
+
type_id: "principal_standard";
|
|
33129
|
+
address: string;
|
|
33130
|
+
} | {
|
|
33131
|
+
/** @enum {string} */
|
|
33132
|
+
type_id: "principal_contract";
|
|
33133
|
+
address: string;
|
|
33134
|
+
contract_name: string;
|
|
33135
|
+
};
|
|
33136
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33137
|
+
amount: string;
|
|
33138
|
+
/** @enum {string} */
|
|
33139
|
+
type: "fungible";
|
|
33140
|
+
asset: {
|
|
33141
|
+
asset_name: string;
|
|
33142
|
+
contract_address: string;
|
|
33143
|
+
contract_name: string;
|
|
33144
|
+
};
|
|
33145
|
+
} | {
|
|
33146
|
+
principal: {
|
|
33147
|
+
/** @enum {string} */
|
|
33148
|
+
type_id: "principal_origin";
|
|
33149
|
+
} | {
|
|
33150
|
+
/** @enum {string} */
|
|
33151
|
+
type_id: "principal_standard";
|
|
33152
|
+
address: string;
|
|
33153
|
+
} | {
|
|
33154
|
+
/** @enum {string} */
|
|
33155
|
+
type_id: "principal_contract";
|
|
33156
|
+
address: string;
|
|
33157
|
+
contract_name: string;
|
|
33158
|
+
};
|
|
33159
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
33160
|
+
/** @enum {string} */
|
|
33161
|
+
type: "non_fungible";
|
|
33162
|
+
asset_value: {
|
|
33163
|
+
hex: string;
|
|
33164
|
+
repr: string;
|
|
33165
|
+
};
|
|
33166
|
+
asset: {
|
|
33167
|
+
asset_name: string;
|
|
33168
|
+
contract_address: string;
|
|
33169
|
+
contract_name: string;
|
|
33170
|
+
};
|
|
33171
|
+
})[];
|
|
33172
|
+
/** @description Number of events in the transaction */
|
|
33173
|
+
event_count: number;
|
|
33174
|
+
execution_cost: {
|
|
33175
|
+
/** @description Number of reads in the transaction */
|
|
33176
|
+
read_count: number;
|
|
33177
|
+
/** @description Length of reads in the transaction */
|
|
33178
|
+
read_length: number;
|
|
33179
|
+
/** @description Runtime of the transaction */
|
|
33180
|
+
runtime: number;
|
|
33181
|
+
/** @description Number of writes in the transaction */
|
|
33182
|
+
write_count: number;
|
|
33183
|
+
/** @description Length of writes in the transaction */
|
|
33184
|
+
write_length: number;
|
|
33185
|
+
};
|
|
33186
|
+
vm_error: string | null;
|
|
33187
|
+
result?: {
|
|
33188
|
+
hex: string;
|
|
33189
|
+
repr: string;
|
|
33190
|
+
};
|
|
33191
|
+
/** @enum {string} */
|
|
33192
|
+
type: "tenure_change";
|
|
33193
|
+
tenure_change: {
|
|
33194
|
+
/** @description Consensus hash of this tenure. Corresponds to the sortition in which the miner of this block was chosen. */
|
|
33195
|
+
tenure_consensus_hash: string;
|
|
33196
|
+
/** @description Consensus hash of the previous tenure. Corresponds to the sortition of the previous winning block-commit. */
|
|
33197
|
+
prev_tenure_consensus_hash: string;
|
|
33198
|
+
/** @description Current consensus hash on the underlying burnchain. Corresponds to the last-seen sortition. */
|
|
33199
|
+
burn_view_consensus_hash: string;
|
|
33200
|
+
/** @description (Hex string) Stacks Block hash */
|
|
33201
|
+
previous_tenure_end: string;
|
|
33202
|
+
/** @description The number of blocks produced in the previous tenure. */
|
|
33203
|
+
previous_tenure_blocks: number;
|
|
33204
|
+
/** @description Cause of change in mining tenure. Depending on cause, tenure can be ended or extended. */
|
|
33205
|
+
cause: "block_found" | "extended" | "extended_runtime" | "extended_read_count" | "extended_read_length" | "extended_write_count" | "extended_write_length";
|
|
33206
|
+
/** @description (Hex string) The ECDSA public key hash of the current tenure. */
|
|
33207
|
+
pubkey_hash: string;
|
|
33208
|
+
};
|
|
33209
|
+
} | {
|
|
33210
|
+
/** @description Transaction ID */
|
|
33211
|
+
tx_id: string;
|
|
33212
|
+
sender: {
|
|
33213
|
+
/** @description Address of the transaction initiator */
|
|
33214
|
+
address: string;
|
|
33215
|
+
/** @description Nonce of the transaction initiator */
|
|
33216
|
+
nonce: number;
|
|
33217
|
+
};
|
|
33218
|
+
sponsor: {
|
|
33219
|
+
/** @description Address of the transaction initiator */
|
|
33220
|
+
address: string;
|
|
33221
|
+
/** @description Nonce of the transaction initiator */
|
|
33222
|
+
nonce: number;
|
|
33223
|
+
} | null;
|
|
33224
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
33225
|
+
fee_rate: string;
|
|
33226
|
+
block: {
|
|
33227
|
+
/** @description Height of the block this transactions was associated with */
|
|
33228
|
+
height: number;
|
|
33229
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
33230
|
+
hash: string;
|
|
33231
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
33232
|
+
index_hash: string;
|
|
33233
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
33234
|
+
time: number;
|
|
33235
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
33236
|
+
tx_index: number;
|
|
33237
|
+
};
|
|
33238
|
+
bitcoin_block: {
|
|
33239
|
+
/** @description Height of the anchor burn block. */
|
|
33240
|
+
height: number;
|
|
33241
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
33242
|
+
time: number;
|
|
33243
|
+
};
|
|
33244
|
+
/** @description Status of the transaction */
|
|
33245
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
33246
|
+
parent_block: {
|
|
33247
|
+
/** @description Hash of the parent block */
|
|
33248
|
+
hash: string;
|
|
33249
|
+
/** @description Index block hash of the parent block */
|
|
33250
|
+
index_hash: string;
|
|
33251
|
+
};
|
|
33252
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
33253
|
+
post_conditions?: ({
|
|
33254
|
+
principal: {
|
|
33255
|
+
/** @enum {string} */
|
|
33256
|
+
type_id: "principal_origin";
|
|
33257
|
+
} | {
|
|
33258
|
+
/** @enum {string} */
|
|
33259
|
+
type_id: "principal_standard";
|
|
33260
|
+
address: string;
|
|
33261
|
+
} | {
|
|
33262
|
+
/** @enum {string} */
|
|
33263
|
+
type_id: "principal_contract";
|
|
33264
|
+
address: string;
|
|
33265
|
+
contract_name: string;
|
|
33266
|
+
};
|
|
33267
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33268
|
+
amount: string;
|
|
33269
|
+
/** @enum {string} */
|
|
33270
|
+
type: "stx";
|
|
33271
|
+
} | {
|
|
33272
|
+
principal: {
|
|
33273
|
+
/** @enum {string} */
|
|
33274
|
+
type_id: "principal_origin";
|
|
33275
|
+
} | {
|
|
33276
|
+
/** @enum {string} */
|
|
33277
|
+
type_id: "principal_standard";
|
|
33278
|
+
address: string;
|
|
33279
|
+
} | {
|
|
33280
|
+
/** @enum {string} */
|
|
33281
|
+
type_id: "principal_contract";
|
|
33282
|
+
address: string;
|
|
33283
|
+
contract_name: string;
|
|
33284
|
+
};
|
|
33285
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33286
|
+
amount: string;
|
|
33287
|
+
/** @enum {string} */
|
|
33288
|
+
type: "fungible";
|
|
33289
|
+
asset: {
|
|
33290
|
+
asset_name: string;
|
|
33291
|
+
contract_address: string;
|
|
33292
|
+
contract_name: string;
|
|
33293
|
+
};
|
|
33294
|
+
} | {
|
|
33295
|
+
principal: {
|
|
33296
|
+
/** @enum {string} */
|
|
33297
|
+
type_id: "principal_origin";
|
|
33298
|
+
} | {
|
|
33299
|
+
/** @enum {string} */
|
|
33300
|
+
type_id: "principal_standard";
|
|
33301
|
+
address: string;
|
|
33302
|
+
} | {
|
|
33303
|
+
/** @enum {string} */
|
|
33304
|
+
type_id: "principal_contract";
|
|
33305
|
+
address: string;
|
|
33306
|
+
contract_name: string;
|
|
33307
|
+
};
|
|
33308
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
33309
|
+
/** @enum {string} */
|
|
33310
|
+
type: "non_fungible";
|
|
33311
|
+
asset_value: {
|
|
33312
|
+
hex: string;
|
|
33313
|
+
repr: string;
|
|
33314
|
+
};
|
|
33315
|
+
asset: {
|
|
33316
|
+
asset_name: string;
|
|
33317
|
+
contract_address: string;
|
|
33318
|
+
contract_name: string;
|
|
33319
|
+
};
|
|
33320
|
+
})[];
|
|
33321
|
+
/** @description Number of events in the transaction */
|
|
33322
|
+
event_count: number;
|
|
33323
|
+
execution_cost: {
|
|
33324
|
+
/** @description Number of reads in the transaction */
|
|
33325
|
+
read_count: number;
|
|
33326
|
+
/** @description Length of reads in the transaction */
|
|
33327
|
+
read_length: number;
|
|
33328
|
+
/** @description Runtime of the transaction */
|
|
33329
|
+
runtime: number;
|
|
33330
|
+
/** @description Number of writes in the transaction */
|
|
33331
|
+
write_count: number;
|
|
33332
|
+
/** @description Length of writes in the transaction */
|
|
33333
|
+
write_length: number;
|
|
33334
|
+
};
|
|
33335
|
+
vm_error: string | null;
|
|
33336
|
+
result?: {
|
|
33337
|
+
hex: string;
|
|
33338
|
+
repr: string;
|
|
33339
|
+
};
|
|
33340
|
+
/** @enum {string} */
|
|
33341
|
+
type: "coinbase";
|
|
33342
|
+
coinbase: {
|
|
33343
|
+
/** @description Payload of the coinbase transaction */
|
|
33344
|
+
payload: string;
|
|
33345
|
+
alt_recipient: string | null;
|
|
33346
|
+
vrf_proof: string | null;
|
|
33347
|
+
};
|
|
33348
|
+
}) | ({
|
|
33349
|
+
/** @description Transaction ID */
|
|
33350
|
+
tx_id: string;
|
|
33351
|
+
sender: {
|
|
33352
|
+
/** @description Address of the transaction initiator */
|
|
33353
|
+
address: string;
|
|
33354
|
+
/** @description Nonce of the transaction initiator */
|
|
33355
|
+
nonce: number;
|
|
33356
|
+
};
|
|
33357
|
+
sponsor: {
|
|
33358
|
+
/** @description Address of the transaction initiator */
|
|
33359
|
+
address: string;
|
|
33360
|
+
/** @description Nonce of the transaction initiator */
|
|
33361
|
+
nonce: number;
|
|
33362
|
+
} | null;
|
|
33363
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
33364
|
+
fee_rate: string;
|
|
33365
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
33366
|
+
receipt_time: number;
|
|
33367
|
+
/** @description Height of the block this transaction was received by the node */
|
|
33368
|
+
receipt_block_height: number;
|
|
33369
|
+
/** @description Status of the mempool transaction */
|
|
33370
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
33371
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
33372
|
+
post_conditions?: ({
|
|
33373
|
+
principal: {
|
|
33374
|
+
/** @enum {string} */
|
|
33375
|
+
type_id: "principal_origin";
|
|
33376
|
+
} | {
|
|
33377
|
+
/** @enum {string} */
|
|
33378
|
+
type_id: "principal_standard";
|
|
33379
|
+
address: string;
|
|
33380
|
+
} | {
|
|
33381
|
+
/** @enum {string} */
|
|
33382
|
+
type_id: "principal_contract";
|
|
33383
|
+
address: string;
|
|
33384
|
+
contract_name: string;
|
|
33385
|
+
};
|
|
33386
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33387
|
+
amount: string;
|
|
33388
|
+
/** @enum {string} */
|
|
33389
|
+
type: "stx";
|
|
33390
|
+
} | {
|
|
33391
|
+
principal: {
|
|
33392
|
+
/** @enum {string} */
|
|
33393
|
+
type_id: "principal_origin";
|
|
33394
|
+
} | {
|
|
33395
|
+
/** @enum {string} */
|
|
33396
|
+
type_id: "principal_standard";
|
|
33397
|
+
address: string;
|
|
33398
|
+
} | {
|
|
33399
|
+
/** @enum {string} */
|
|
33400
|
+
type_id: "principal_contract";
|
|
33401
|
+
address: string;
|
|
33402
|
+
contract_name: string;
|
|
33403
|
+
};
|
|
33404
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33405
|
+
amount: string;
|
|
33406
|
+
/** @enum {string} */
|
|
33407
|
+
type: "fungible";
|
|
33408
|
+
asset: {
|
|
33409
|
+
asset_name: string;
|
|
33410
|
+
contract_address: string;
|
|
33411
|
+
contract_name: string;
|
|
33412
|
+
};
|
|
33413
|
+
} | {
|
|
33414
|
+
principal: {
|
|
33415
|
+
/** @enum {string} */
|
|
33416
|
+
type_id: "principal_origin";
|
|
33417
|
+
} | {
|
|
33418
|
+
/** @enum {string} */
|
|
33419
|
+
type_id: "principal_standard";
|
|
33420
|
+
address: string;
|
|
33421
|
+
} | {
|
|
33422
|
+
/** @enum {string} */
|
|
33423
|
+
type_id: "principal_contract";
|
|
33424
|
+
address: string;
|
|
33425
|
+
contract_name: string;
|
|
33426
|
+
};
|
|
33427
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
33428
|
+
/** @enum {string} */
|
|
33429
|
+
type: "non_fungible";
|
|
33430
|
+
asset_value: {
|
|
33431
|
+
hex: string;
|
|
33432
|
+
repr: string;
|
|
33433
|
+
};
|
|
33434
|
+
asset: {
|
|
33435
|
+
asset_name: string;
|
|
33436
|
+
contract_address: string;
|
|
33437
|
+
contract_name: string;
|
|
33438
|
+
};
|
|
33439
|
+
})[];
|
|
33440
|
+
replaced_by_tx_id: string | null;
|
|
33441
|
+
/** @enum {string} */
|
|
33442
|
+
type: "token_transfer";
|
|
33443
|
+
token_transfer: {
|
|
33444
|
+
/** @description Recipient of the token transfer */
|
|
33445
|
+
recipient: string;
|
|
33446
|
+
/** @description Amount of the token transfer */
|
|
33447
|
+
amount: string;
|
|
33448
|
+
memo: {
|
|
33449
|
+
hex: string;
|
|
33450
|
+
repr: string;
|
|
33451
|
+
} | null;
|
|
33452
|
+
};
|
|
33453
|
+
} | {
|
|
33454
|
+
/** @description Transaction ID */
|
|
33455
|
+
tx_id: string;
|
|
33456
|
+
sender: {
|
|
33457
|
+
/** @description Address of the transaction initiator */
|
|
33458
|
+
address: string;
|
|
33459
|
+
/** @description Nonce of the transaction initiator */
|
|
33460
|
+
nonce: number;
|
|
33461
|
+
};
|
|
33462
|
+
sponsor: {
|
|
33463
|
+
/** @description Address of the transaction initiator */
|
|
33464
|
+
address: string;
|
|
33465
|
+
/** @description Nonce of the transaction initiator */
|
|
33466
|
+
nonce: number;
|
|
33467
|
+
} | null;
|
|
33468
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
33469
|
+
fee_rate: string;
|
|
33470
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
33471
|
+
receipt_time: number;
|
|
33472
|
+
/** @description Height of the block this transaction was received by the node */
|
|
33473
|
+
receipt_block_height: number;
|
|
33474
|
+
/** @description Status of the mempool transaction */
|
|
33475
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
33476
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
33477
|
+
post_conditions?: ({
|
|
33478
|
+
principal: {
|
|
33479
|
+
/** @enum {string} */
|
|
33480
|
+
type_id: "principal_origin";
|
|
33481
|
+
} | {
|
|
33482
|
+
/** @enum {string} */
|
|
33483
|
+
type_id: "principal_standard";
|
|
33484
|
+
address: string;
|
|
33485
|
+
} | {
|
|
33486
|
+
/** @enum {string} */
|
|
33487
|
+
type_id: "principal_contract";
|
|
33488
|
+
address: string;
|
|
33489
|
+
contract_name: string;
|
|
33490
|
+
};
|
|
33491
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33492
|
+
amount: string;
|
|
33493
|
+
/** @enum {string} */
|
|
33494
|
+
type: "stx";
|
|
33495
|
+
} | {
|
|
33496
|
+
principal: {
|
|
33497
|
+
/** @enum {string} */
|
|
33498
|
+
type_id: "principal_origin";
|
|
33499
|
+
} | {
|
|
33500
|
+
/** @enum {string} */
|
|
33501
|
+
type_id: "principal_standard";
|
|
33502
|
+
address: string;
|
|
33503
|
+
} | {
|
|
33504
|
+
/** @enum {string} */
|
|
33505
|
+
type_id: "principal_contract";
|
|
33506
|
+
address: string;
|
|
33507
|
+
contract_name: string;
|
|
33508
|
+
};
|
|
33509
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33510
|
+
amount: string;
|
|
33511
|
+
/** @enum {string} */
|
|
33512
|
+
type: "fungible";
|
|
33513
|
+
asset: {
|
|
33514
|
+
asset_name: string;
|
|
33515
|
+
contract_address: string;
|
|
33516
|
+
contract_name: string;
|
|
33517
|
+
};
|
|
33518
|
+
} | {
|
|
33519
|
+
principal: {
|
|
33520
|
+
/** @enum {string} */
|
|
33521
|
+
type_id: "principal_origin";
|
|
33522
|
+
} | {
|
|
33523
|
+
/** @enum {string} */
|
|
33524
|
+
type_id: "principal_standard";
|
|
33525
|
+
address: string;
|
|
33526
|
+
} | {
|
|
33527
|
+
/** @enum {string} */
|
|
33528
|
+
type_id: "principal_contract";
|
|
33529
|
+
address: string;
|
|
33530
|
+
contract_name: string;
|
|
33531
|
+
};
|
|
33532
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
33533
|
+
/** @enum {string} */
|
|
33534
|
+
type: "non_fungible";
|
|
33535
|
+
asset_value: {
|
|
33536
|
+
hex: string;
|
|
33537
|
+
repr: string;
|
|
33538
|
+
};
|
|
33539
|
+
asset: {
|
|
33540
|
+
asset_name: string;
|
|
33541
|
+
contract_address: string;
|
|
33542
|
+
contract_name: string;
|
|
33543
|
+
};
|
|
33544
|
+
})[];
|
|
33545
|
+
replaced_by_tx_id: string | null;
|
|
33546
|
+
/** @enum {string} */
|
|
33547
|
+
type: "smart_contract";
|
|
33548
|
+
smart_contract: {
|
|
33549
|
+
/** @description Contract ID of the smart contract */
|
|
33550
|
+
contract_id: string;
|
|
33551
|
+
clarity_version: number | null;
|
|
33552
|
+
/** @description Source code of the smart contract. Only present when requested via the `include=source_code` query param. */
|
|
33553
|
+
source_code?: string;
|
|
33554
|
+
};
|
|
33555
|
+
} | {
|
|
33556
|
+
/** @description Transaction ID */
|
|
33557
|
+
tx_id: string;
|
|
33558
|
+
sender: {
|
|
33559
|
+
/** @description Address of the transaction initiator */
|
|
33560
|
+
address: string;
|
|
33561
|
+
/** @description Nonce of the transaction initiator */
|
|
33562
|
+
nonce: number;
|
|
33563
|
+
};
|
|
33564
|
+
sponsor: {
|
|
33565
|
+
/** @description Address of the transaction initiator */
|
|
33566
|
+
address: string;
|
|
33567
|
+
/** @description Nonce of the transaction initiator */
|
|
33568
|
+
nonce: number;
|
|
33569
|
+
} | null;
|
|
33570
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
33571
|
+
fee_rate: string;
|
|
33572
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
33573
|
+
receipt_time: number;
|
|
33574
|
+
/** @description Height of the block this transaction was received by the node */
|
|
33575
|
+
receipt_block_height: number;
|
|
33576
|
+
/** @description Status of the mempool transaction */
|
|
33577
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
33578
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
33579
|
+
post_conditions?: ({
|
|
33580
|
+
principal: {
|
|
33581
|
+
/** @enum {string} */
|
|
33582
|
+
type_id: "principal_origin";
|
|
33583
|
+
} | {
|
|
33584
|
+
/** @enum {string} */
|
|
33585
|
+
type_id: "principal_standard";
|
|
33586
|
+
address: string;
|
|
33587
|
+
} | {
|
|
33588
|
+
/** @enum {string} */
|
|
33589
|
+
type_id: "principal_contract";
|
|
33590
|
+
address: string;
|
|
33591
|
+
contract_name: string;
|
|
33592
|
+
};
|
|
33593
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33594
|
+
amount: string;
|
|
33595
|
+
/** @enum {string} */
|
|
33596
|
+
type: "stx";
|
|
33597
|
+
} | {
|
|
33598
|
+
principal: {
|
|
33599
|
+
/** @enum {string} */
|
|
33600
|
+
type_id: "principal_origin";
|
|
33601
|
+
} | {
|
|
33602
|
+
/** @enum {string} */
|
|
33603
|
+
type_id: "principal_standard";
|
|
33604
|
+
address: string;
|
|
33605
|
+
} | {
|
|
33606
|
+
/** @enum {string} */
|
|
33607
|
+
type_id: "principal_contract";
|
|
33608
|
+
address: string;
|
|
33609
|
+
contract_name: string;
|
|
33610
|
+
};
|
|
33611
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33612
|
+
amount: string;
|
|
33613
|
+
/** @enum {string} */
|
|
33614
|
+
type: "fungible";
|
|
33615
|
+
asset: {
|
|
33616
|
+
asset_name: string;
|
|
33617
|
+
contract_address: string;
|
|
33618
|
+
contract_name: string;
|
|
33619
|
+
};
|
|
33620
|
+
} | {
|
|
33621
|
+
principal: {
|
|
33622
|
+
/** @enum {string} */
|
|
33623
|
+
type_id: "principal_origin";
|
|
33624
|
+
} | {
|
|
33625
|
+
/** @enum {string} */
|
|
33626
|
+
type_id: "principal_standard";
|
|
33627
|
+
address: string;
|
|
33628
|
+
} | {
|
|
33629
|
+
/** @enum {string} */
|
|
33630
|
+
type_id: "principal_contract";
|
|
33631
|
+
address: string;
|
|
33632
|
+
contract_name: string;
|
|
33633
|
+
};
|
|
33634
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
33635
|
+
/** @enum {string} */
|
|
33636
|
+
type: "non_fungible";
|
|
33637
|
+
asset_value: {
|
|
33638
|
+
hex: string;
|
|
33639
|
+
repr: string;
|
|
33640
|
+
};
|
|
33641
|
+
asset: {
|
|
33642
|
+
asset_name: string;
|
|
33643
|
+
contract_address: string;
|
|
33644
|
+
contract_name: string;
|
|
33645
|
+
};
|
|
33646
|
+
})[];
|
|
33647
|
+
replaced_by_tx_id: string | null;
|
|
33648
|
+
/** @enum {string} */
|
|
33649
|
+
type: "contract_call";
|
|
33650
|
+
contract_call: {
|
|
33651
|
+
/** @description Contract ID of the contract call */
|
|
33652
|
+
contract_id: string;
|
|
33653
|
+
/** @description Function name of the contract call */
|
|
33654
|
+
function_name: string;
|
|
33655
|
+
/** @description List of arguments used to invoke the function. Only present when requested via the `include=function_args` query param. */
|
|
33656
|
+
function_args?: {
|
|
33657
|
+
hex: string;
|
|
33658
|
+
repr: string;
|
|
33659
|
+
}[];
|
|
33660
|
+
};
|
|
33661
|
+
} | {
|
|
33662
|
+
/** @description Transaction ID */
|
|
33663
|
+
tx_id: string;
|
|
33664
|
+
sender: {
|
|
33665
|
+
/** @description Address of the transaction initiator */
|
|
33666
|
+
address: string;
|
|
33667
|
+
/** @description Nonce of the transaction initiator */
|
|
33668
|
+
nonce: number;
|
|
33669
|
+
};
|
|
33670
|
+
sponsor: {
|
|
33671
|
+
/** @description Address of the transaction initiator */
|
|
33672
|
+
address: string;
|
|
33673
|
+
/** @description Nonce of the transaction initiator */
|
|
33674
|
+
nonce: number;
|
|
33675
|
+
} | null;
|
|
33676
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
33677
|
+
fee_rate: string;
|
|
33678
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
33679
|
+
receipt_time: number;
|
|
33680
|
+
/** @description Height of the block this transaction was received by the node */
|
|
33681
|
+
receipt_block_height: number;
|
|
33682
|
+
/** @description Status of the mempool transaction */
|
|
33683
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
33684
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
33685
|
+
post_conditions?: ({
|
|
33686
|
+
principal: {
|
|
33687
|
+
/** @enum {string} */
|
|
33688
|
+
type_id: "principal_origin";
|
|
33689
|
+
} | {
|
|
33690
|
+
/** @enum {string} */
|
|
33691
|
+
type_id: "principal_standard";
|
|
33692
|
+
address: string;
|
|
33693
|
+
} | {
|
|
33694
|
+
/** @enum {string} */
|
|
33695
|
+
type_id: "principal_contract";
|
|
33696
|
+
address: string;
|
|
33697
|
+
contract_name: string;
|
|
33698
|
+
};
|
|
33699
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33700
|
+
amount: string;
|
|
33701
|
+
/** @enum {string} */
|
|
33702
|
+
type: "stx";
|
|
33703
|
+
} | {
|
|
33704
|
+
principal: {
|
|
33705
|
+
/** @enum {string} */
|
|
33706
|
+
type_id: "principal_origin";
|
|
33707
|
+
} | {
|
|
33708
|
+
/** @enum {string} */
|
|
33709
|
+
type_id: "principal_standard";
|
|
33710
|
+
address: string;
|
|
33711
|
+
} | {
|
|
33712
|
+
/** @enum {string} */
|
|
33713
|
+
type_id: "principal_contract";
|
|
33714
|
+
address: string;
|
|
33715
|
+
contract_name: string;
|
|
33716
|
+
};
|
|
33717
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33718
|
+
amount: string;
|
|
33719
|
+
/** @enum {string} */
|
|
33720
|
+
type: "fungible";
|
|
33721
|
+
asset: {
|
|
33722
|
+
asset_name: string;
|
|
33723
|
+
contract_address: string;
|
|
33724
|
+
contract_name: string;
|
|
33725
|
+
};
|
|
33726
|
+
} | {
|
|
33727
|
+
principal: {
|
|
33728
|
+
/** @enum {string} */
|
|
33729
|
+
type_id: "principal_origin";
|
|
33730
|
+
} | {
|
|
33731
|
+
/** @enum {string} */
|
|
33732
|
+
type_id: "principal_standard";
|
|
33733
|
+
address: string;
|
|
33734
|
+
} | {
|
|
33735
|
+
/** @enum {string} */
|
|
33736
|
+
type_id: "principal_contract";
|
|
33737
|
+
address: string;
|
|
33738
|
+
contract_name: string;
|
|
33739
|
+
};
|
|
33740
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
33741
|
+
/** @enum {string} */
|
|
33742
|
+
type: "non_fungible";
|
|
33743
|
+
asset_value: {
|
|
33744
|
+
hex: string;
|
|
33745
|
+
repr: string;
|
|
33746
|
+
};
|
|
33747
|
+
asset: {
|
|
33748
|
+
asset_name: string;
|
|
33749
|
+
contract_address: string;
|
|
33750
|
+
contract_name: string;
|
|
33751
|
+
};
|
|
33752
|
+
})[];
|
|
33753
|
+
replaced_by_tx_id: string | null;
|
|
33754
|
+
/** @enum {string} */
|
|
33755
|
+
type: "poison_microblock";
|
|
33756
|
+
} | {
|
|
33757
|
+
/** @description Transaction ID */
|
|
33758
|
+
tx_id: string;
|
|
33759
|
+
sender: {
|
|
33760
|
+
/** @description Address of the transaction initiator */
|
|
33761
|
+
address: string;
|
|
33762
|
+
/** @description Nonce of the transaction initiator */
|
|
33763
|
+
nonce: number;
|
|
33764
|
+
};
|
|
33765
|
+
sponsor: {
|
|
33766
|
+
/** @description Address of the transaction initiator */
|
|
33767
|
+
address: string;
|
|
33768
|
+
/** @description Nonce of the transaction initiator */
|
|
33769
|
+
nonce: number;
|
|
33770
|
+
} | null;
|
|
33771
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
33772
|
+
fee_rate: string;
|
|
33773
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
33774
|
+
receipt_time: number;
|
|
33775
|
+
/** @description Height of the block this transaction was received by the node */
|
|
33776
|
+
receipt_block_height: number;
|
|
33777
|
+
/** @description Status of the mempool transaction */
|
|
33778
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
33779
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
33780
|
+
post_conditions?: ({
|
|
33781
|
+
principal: {
|
|
33782
|
+
/** @enum {string} */
|
|
33783
|
+
type_id: "principal_origin";
|
|
33784
|
+
} | {
|
|
33785
|
+
/** @enum {string} */
|
|
33786
|
+
type_id: "principal_standard";
|
|
33787
|
+
address: string;
|
|
33788
|
+
} | {
|
|
33789
|
+
/** @enum {string} */
|
|
33790
|
+
type_id: "principal_contract";
|
|
33791
|
+
address: string;
|
|
33792
|
+
contract_name: string;
|
|
33793
|
+
};
|
|
33794
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33795
|
+
amount: string;
|
|
33796
|
+
/** @enum {string} */
|
|
33797
|
+
type: "stx";
|
|
33798
|
+
} | {
|
|
33799
|
+
principal: {
|
|
33800
|
+
/** @enum {string} */
|
|
33801
|
+
type_id: "principal_origin";
|
|
33802
|
+
} | {
|
|
33803
|
+
/** @enum {string} */
|
|
33804
|
+
type_id: "principal_standard";
|
|
33805
|
+
address: string;
|
|
33806
|
+
} | {
|
|
33807
|
+
/** @enum {string} */
|
|
33808
|
+
type_id: "principal_contract";
|
|
33809
|
+
address: string;
|
|
33810
|
+
contract_name: string;
|
|
33811
|
+
};
|
|
33812
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33813
|
+
amount: string;
|
|
33814
|
+
/** @enum {string} */
|
|
33815
|
+
type: "fungible";
|
|
33816
|
+
asset: {
|
|
33817
|
+
asset_name: string;
|
|
33818
|
+
contract_address: string;
|
|
33819
|
+
contract_name: string;
|
|
33820
|
+
};
|
|
33821
|
+
} | {
|
|
33822
|
+
principal: {
|
|
33823
|
+
/** @enum {string} */
|
|
33824
|
+
type_id: "principal_origin";
|
|
33825
|
+
} | {
|
|
33826
|
+
/** @enum {string} */
|
|
33827
|
+
type_id: "principal_standard";
|
|
33828
|
+
address: string;
|
|
33829
|
+
} | {
|
|
33830
|
+
/** @enum {string} */
|
|
33831
|
+
type_id: "principal_contract";
|
|
33832
|
+
address: string;
|
|
33833
|
+
contract_name: string;
|
|
33834
|
+
};
|
|
33835
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
33836
|
+
/** @enum {string} */
|
|
33837
|
+
type: "non_fungible";
|
|
33838
|
+
asset_value: {
|
|
33839
|
+
hex: string;
|
|
33840
|
+
repr: string;
|
|
33841
|
+
};
|
|
33842
|
+
asset: {
|
|
33843
|
+
asset_name: string;
|
|
33844
|
+
contract_address: string;
|
|
33845
|
+
contract_name: string;
|
|
33846
|
+
};
|
|
33847
|
+
})[];
|
|
33848
|
+
replaced_by_tx_id: string | null;
|
|
33849
|
+
/** @enum {string} */
|
|
33850
|
+
type: "tenure_change";
|
|
33851
|
+
} | {
|
|
33852
|
+
/** @description Transaction ID */
|
|
33853
|
+
tx_id: string;
|
|
33854
|
+
sender: {
|
|
33855
|
+
/** @description Address of the transaction initiator */
|
|
33856
|
+
address: string;
|
|
33857
|
+
/** @description Nonce of the transaction initiator */
|
|
33858
|
+
nonce: number;
|
|
33859
|
+
};
|
|
33860
|
+
sponsor: {
|
|
33861
|
+
/** @description Address of the transaction initiator */
|
|
33862
|
+
address: string;
|
|
33863
|
+
/** @description Nonce of the transaction initiator */
|
|
33864
|
+
nonce: number;
|
|
33865
|
+
} | null;
|
|
33866
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
33867
|
+
fee_rate: string;
|
|
33868
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
33869
|
+
receipt_time: number;
|
|
33870
|
+
/** @description Height of the block this transaction was received by the node */
|
|
33871
|
+
receipt_block_height: number;
|
|
33872
|
+
/** @description Status of the mempool transaction */
|
|
33873
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
33874
|
+
/** @description Only present when requested via the `include=post_conditions` query param. */
|
|
33875
|
+
post_conditions?: ({
|
|
33876
|
+
principal: {
|
|
33877
|
+
/** @enum {string} */
|
|
33878
|
+
type_id: "principal_origin";
|
|
33879
|
+
} | {
|
|
33880
|
+
/** @enum {string} */
|
|
33881
|
+
type_id: "principal_standard";
|
|
33882
|
+
address: string;
|
|
33883
|
+
} | {
|
|
33884
|
+
/** @enum {string} */
|
|
33885
|
+
type_id: "principal_contract";
|
|
33886
|
+
address: string;
|
|
33887
|
+
contract_name: string;
|
|
33888
|
+
};
|
|
33889
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33890
|
+
amount: string;
|
|
33891
|
+
/** @enum {string} */
|
|
33892
|
+
type: "stx";
|
|
33893
|
+
} | {
|
|
33894
|
+
principal: {
|
|
33895
|
+
/** @enum {string} */
|
|
33896
|
+
type_id: "principal_origin";
|
|
33897
|
+
} | {
|
|
33898
|
+
/** @enum {string} */
|
|
33899
|
+
type_id: "principal_standard";
|
|
33900
|
+
address: string;
|
|
33901
|
+
} | {
|
|
33902
|
+
/** @enum {string} */
|
|
33903
|
+
type_id: "principal_contract";
|
|
33904
|
+
address: string;
|
|
33905
|
+
contract_name: string;
|
|
33906
|
+
};
|
|
33907
|
+
condition_code: "sent_equal_to" | "sent_greater_than" | "sent_greater_than_or_equal_to" | "sent_less_than" | "sent_less_than_or_equal_to";
|
|
33908
|
+
amount: string;
|
|
33909
|
+
/** @enum {string} */
|
|
33910
|
+
type: "fungible";
|
|
33911
|
+
asset: {
|
|
33912
|
+
asset_name: string;
|
|
33913
|
+
contract_address: string;
|
|
33914
|
+
contract_name: string;
|
|
33915
|
+
};
|
|
33916
|
+
} | {
|
|
33917
|
+
principal: {
|
|
33918
|
+
/** @enum {string} */
|
|
33919
|
+
type_id: "principal_origin";
|
|
33920
|
+
} | {
|
|
33921
|
+
/** @enum {string} */
|
|
33922
|
+
type_id: "principal_standard";
|
|
33923
|
+
address: string;
|
|
33924
|
+
} | {
|
|
33925
|
+
/** @enum {string} */
|
|
33926
|
+
type_id: "principal_contract";
|
|
33927
|
+
address: string;
|
|
33928
|
+
contract_name: string;
|
|
33929
|
+
};
|
|
33930
|
+
condition_code: "sent" | "not_sent" | "maybe_sent";
|
|
33931
|
+
/** @enum {string} */
|
|
33932
|
+
type: "non_fungible";
|
|
33933
|
+
asset_value: {
|
|
33934
|
+
hex: string;
|
|
33935
|
+
repr: string;
|
|
33936
|
+
};
|
|
33937
|
+
asset: {
|
|
33938
|
+
asset_name: string;
|
|
33939
|
+
contract_address: string;
|
|
33940
|
+
contract_name: string;
|
|
33941
|
+
};
|
|
33942
|
+
})[];
|
|
33943
|
+
replaced_by_tx_id: string | null;
|
|
33944
|
+
/** @enum {string} */
|
|
33945
|
+
type: "coinbase";
|
|
33946
|
+
});
|
|
33947
|
+
};
|
|
33948
|
+
};
|
|
33949
|
+
/** @description Default Response */
|
|
33950
|
+
"4XX": {
|
|
33951
|
+
headers: {
|
|
33952
|
+
[name: string]: unknown;
|
|
33953
|
+
};
|
|
33954
|
+
content: {
|
|
33955
|
+
"application/json": {
|
|
33956
|
+
error: string;
|
|
33957
|
+
message?: string;
|
|
33958
|
+
} & {
|
|
33959
|
+
[key: string]: unknown;
|
|
33960
|
+
};
|
|
33961
|
+
};
|
|
33962
|
+
};
|
|
33963
|
+
};
|
|
33964
|
+
};
|
|
33965
|
+
get_transaction_events: {
|
|
33966
|
+
parameters: {
|
|
33967
|
+
query?: {
|
|
33968
|
+
/** @description Number of results per page */
|
|
33969
|
+
limit?: number;
|
|
33970
|
+
/** @description Cursor for paginating transaction events. Format: event_index */
|
|
33971
|
+
cursor?: string;
|
|
33972
|
+
};
|
|
33973
|
+
header?: never;
|
|
33974
|
+
path: {
|
|
33975
|
+
/**
|
|
33976
|
+
* @description Transaction ID
|
|
33977
|
+
* @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
|
|
33978
|
+
*/
|
|
33979
|
+
tx_id: string;
|
|
33980
|
+
};
|
|
33981
|
+
cookie?: never;
|
|
33982
|
+
};
|
|
33983
|
+
requestBody?: never;
|
|
33984
|
+
responses: {
|
|
33985
|
+
/** @description Default Response */
|
|
33986
|
+
200: {
|
|
33987
|
+
headers: {
|
|
33988
|
+
[name: string]: unknown;
|
|
33989
|
+
};
|
|
33990
|
+
content: {
|
|
33991
|
+
"application/json": {
|
|
33992
|
+
/** @example 1 */
|
|
33993
|
+
total: number;
|
|
33994
|
+
/**
|
|
33995
|
+
* @description Number of results per page
|
|
33996
|
+
* @default 20
|
|
33997
|
+
*/
|
|
33998
|
+
limit: number;
|
|
33999
|
+
cursor: {
|
|
34000
|
+
next: string | null;
|
|
34001
|
+
previous: string | null;
|
|
34002
|
+
current: string | null;
|
|
34003
|
+
};
|
|
34004
|
+
results: ({
|
|
34005
|
+
event_index: number;
|
|
34006
|
+
/** @enum {string} */
|
|
34007
|
+
type: "contract_log";
|
|
34008
|
+
contract_log: {
|
|
34009
|
+
/**
|
|
34010
|
+
* Smart Contract ID
|
|
34011
|
+
* @description Smart Contract ID
|
|
34012
|
+
*/
|
|
34013
|
+
contract_id: string;
|
|
34014
|
+
/** @enum {string} */
|
|
34015
|
+
topic: "print";
|
|
34016
|
+
value: {
|
|
34017
|
+
hex: string;
|
|
34018
|
+
repr: string;
|
|
34019
|
+
};
|
|
34020
|
+
};
|
|
34021
|
+
} | {
|
|
34022
|
+
event_index: number;
|
|
34023
|
+
/** @enum {string} */
|
|
34024
|
+
type: "stx_lock";
|
|
34025
|
+
stx_lock: {
|
|
34026
|
+
/**
|
|
34027
|
+
* Amount
|
|
34028
|
+
* @description Amount
|
|
34029
|
+
*/
|
|
34030
|
+
amount: string;
|
|
34031
|
+
/**
|
|
34032
|
+
* Block height
|
|
34033
|
+
* @description Block height
|
|
34034
|
+
*/
|
|
34035
|
+
unlock_bitcoin_height: number;
|
|
34036
|
+
address: string;
|
|
34037
|
+
};
|
|
34038
|
+
} | {
|
|
34039
|
+
event_index: number;
|
|
34040
|
+
/** @enum {string} */
|
|
34041
|
+
type: "stx_asset";
|
|
34042
|
+
stx_asset: {
|
|
34043
|
+
/** @enum {string} */
|
|
34044
|
+
type: "transfer";
|
|
34045
|
+
sender: string;
|
|
34046
|
+
recipient: string;
|
|
34047
|
+
/**
|
|
34048
|
+
* Amount
|
|
34049
|
+
* @description Amount
|
|
34050
|
+
*/
|
|
34051
|
+
amount: string;
|
|
34052
|
+
memo: {
|
|
34053
|
+
hex: string;
|
|
34054
|
+
repr: string;
|
|
34055
|
+
} | null;
|
|
34056
|
+
} | {
|
|
34057
|
+
/** @enum {string} */
|
|
34058
|
+
type: "mint";
|
|
34059
|
+
recipient: string;
|
|
34060
|
+
/**
|
|
34061
|
+
* Amount
|
|
34062
|
+
* @description Amount
|
|
34063
|
+
*/
|
|
34064
|
+
amount: string;
|
|
34065
|
+
} | {
|
|
34066
|
+
/** @enum {string} */
|
|
34067
|
+
type: "burn";
|
|
34068
|
+
sender: string;
|
|
34069
|
+
/**
|
|
34070
|
+
* Amount
|
|
34071
|
+
* @description Amount
|
|
34072
|
+
*/
|
|
34073
|
+
amount: string;
|
|
34074
|
+
};
|
|
34075
|
+
} | {
|
|
34076
|
+
event_index: number;
|
|
34077
|
+
/** @enum {string} */
|
|
34078
|
+
type: "ft_asset";
|
|
34079
|
+
ft_asset: {
|
|
34080
|
+
/** @enum {string} */
|
|
34081
|
+
type: "transfer";
|
|
34082
|
+
/**
|
|
34083
|
+
* Asset Identifier
|
|
34084
|
+
* @description Asset Identifier
|
|
34085
|
+
*/
|
|
34086
|
+
asset_identifier: string;
|
|
34087
|
+
sender: string;
|
|
34088
|
+
recipient: string;
|
|
34089
|
+
/**
|
|
34090
|
+
* Amount
|
|
34091
|
+
* @description Amount
|
|
34092
|
+
*/
|
|
34093
|
+
amount: string;
|
|
34094
|
+
} | {
|
|
34095
|
+
/** @enum {string} */
|
|
34096
|
+
type: "mint";
|
|
34097
|
+
recipient: string;
|
|
34098
|
+
/**
|
|
34099
|
+
* Asset Identifier
|
|
34100
|
+
* @description Asset Identifier
|
|
34101
|
+
*/
|
|
34102
|
+
asset_identifier: string;
|
|
34103
|
+
/**
|
|
34104
|
+
* Amount
|
|
34105
|
+
* @description Amount
|
|
34106
|
+
*/
|
|
34107
|
+
amount: string;
|
|
34108
|
+
} | {
|
|
34109
|
+
/** @enum {string} */
|
|
34110
|
+
type: "burn";
|
|
34111
|
+
sender: string;
|
|
34112
|
+
/**
|
|
34113
|
+
* Asset Identifier
|
|
34114
|
+
* @description Asset Identifier
|
|
34115
|
+
*/
|
|
34116
|
+
asset_identifier: string;
|
|
34117
|
+
/**
|
|
34118
|
+
* Amount
|
|
34119
|
+
* @description Amount
|
|
34120
|
+
*/
|
|
34121
|
+
amount: string;
|
|
34122
|
+
};
|
|
34123
|
+
} | {
|
|
34124
|
+
event_index: number;
|
|
34125
|
+
/** @enum {string} */
|
|
34126
|
+
type: "nft_asset";
|
|
34127
|
+
nft_asset: {
|
|
34128
|
+
/** @enum {string} */
|
|
34129
|
+
type: "transfer";
|
|
34130
|
+
/**
|
|
34131
|
+
* Asset Identifier
|
|
34132
|
+
* @description Asset Identifier
|
|
34133
|
+
*/
|
|
34134
|
+
asset_identifier: string;
|
|
34135
|
+
sender: string;
|
|
34136
|
+
recipient: string;
|
|
34137
|
+
value: {
|
|
34138
|
+
hex: string;
|
|
34139
|
+
repr: string;
|
|
34140
|
+
};
|
|
34141
|
+
} | {
|
|
34142
|
+
/** @enum {string} */
|
|
34143
|
+
type: "mint";
|
|
34144
|
+
recipient: string;
|
|
34145
|
+
/**
|
|
34146
|
+
* Asset Identifier
|
|
34147
|
+
* @description Asset Identifier
|
|
34148
|
+
*/
|
|
34149
|
+
asset_identifier: string;
|
|
34150
|
+
value: {
|
|
34151
|
+
hex: string;
|
|
34152
|
+
repr: string;
|
|
34153
|
+
};
|
|
34154
|
+
} | {
|
|
34155
|
+
/** @enum {string} */
|
|
34156
|
+
type: "burn";
|
|
34157
|
+
sender: string;
|
|
34158
|
+
/**
|
|
34159
|
+
* Asset Identifier
|
|
34160
|
+
* @description Asset Identifier
|
|
34161
|
+
*/
|
|
34162
|
+
asset_identifier: string;
|
|
34163
|
+
value: {
|
|
34164
|
+
hex: string;
|
|
34165
|
+
repr: string;
|
|
34166
|
+
};
|
|
34167
|
+
};
|
|
34168
|
+
})[];
|
|
34169
|
+
};
|
|
34170
|
+
};
|
|
34171
|
+
};
|
|
34172
|
+
/** @description Default Response */
|
|
34173
|
+
"4XX": {
|
|
34174
|
+
headers: {
|
|
34175
|
+
[name: string]: unknown;
|
|
34176
|
+
};
|
|
34177
|
+
content: {
|
|
34178
|
+
"application/json": {
|
|
34179
|
+
error: string;
|
|
34180
|
+
message?: string;
|
|
34181
|
+
} & {
|
|
34182
|
+
[key: string]: unknown;
|
|
34183
|
+
};
|
|
34184
|
+
};
|
|
34185
|
+
};
|
|
34186
|
+
};
|
|
34187
|
+
};
|
|
34188
|
+
get_mempool_transactions: {
|
|
34189
|
+
parameters: {
|
|
34190
|
+
query?: {
|
|
34191
|
+
/** @description Number of results per page */
|
|
34192
|
+
limit?: number;
|
|
34193
|
+
/** @description Cursor for paginating mempool transactions. Format: receipt_time:tx_id */
|
|
34194
|
+
cursor?: string;
|
|
34195
|
+
};
|
|
34196
|
+
header?: never;
|
|
34197
|
+
path?: never;
|
|
34198
|
+
cookie?: never;
|
|
34199
|
+
};
|
|
34200
|
+
requestBody?: never;
|
|
34201
|
+
responses: {
|
|
34202
|
+
/** @description Default Response */
|
|
34203
|
+
200: {
|
|
34204
|
+
headers: {
|
|
34205
|
+
[name: string]: unknown;
|
|
34206
|
+
};
|
|
34207
|
+
content: {
|
|
34208
|
+
"application/json": {
|
|
34209
|
+
/** @example 1 */
|
|
34210
|
+
total: number;
|
|
34211
|
+
/**
|
|
34212
|
+
* @description Number of results per page
|
|
34213
|
+
* @default 20
|
|
34214
|
+
*/
|
|
34215
|
+
limit: number;
|
|
34216
|
+
cursor: {
|
|
34217
|
+
next: string | null;
|
|
34218
|
+
previous: string | null;
|
|
34219
|
+
current: string | null;
|
|
34220
|
+
};
|
|
34221
|
+
results: ({
|
|
34222
|
+
/** @description Transaction ID */
|
|
34223
|
+
tx_id: string;
|
|
34224
|
+
sender: {
|
|
34225
|
+
/** @description Address of the transaction initiator */
|
|
34226
|
+
address: string;
|
|
34227
|
+
/** @description Nonce of the transaction initiator */
|
|
34228
|
+
nonce: number;
|
|
34229
|
+
};
|
|
34230
|
+
sponsor: {
|
|
34231
|
+
/** @description Address of the transaction initiator */
|
|
34232
|
+
address: string;
|
|
34233
|
+
/** @description Nonce of the transaction initiator */
|
|
34234
|
+
nonce: number;
|
|
34235
|
+
} | null;
|
|
34236
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34237
|
+
fee_rate: string;
|
|
34238
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
34239
|
+
receipt_time: number;
|
|
34240
|
+
/** @description Height of the block this transaction was received by the node */
|
|
34241
|
+
receipt_block_height: number;
|
|
34242
|
+
/** @description Status of the mempool transaction */
|
|
34243
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
34244
|
+
/** @enum {string} */
|
|
34245
|
+
type: "token_transfer";
|
|
34246
|
+
token_transfer: {
|
|
34247
|
+
recipient: string;
|
|
34248
|
+
/** @description Transfer amount as Integer string (64-bit unsigned integer) */
|
|
34249
|
+
amount: string;
|
|
34250
|
+
memo: {
|
|
34251
|
+
hex: string;
|
|
34252
|
+
repr: string;
|
|
34253
|
+
} | null;
|
|
34254
|
+
};
|
|
34255
|
+
} | {
|
|
34256
|
+
/** @description Transaction ID */
|
|
34257
|
+
tx_id: string;
|
|
34258
|
+
sender: {
|
|
34259
|
+
/** @description Address of the transaction initiator */
|
|
34260
|
+
address: string;
|
|
34261
|
+
/** @description Nonce of the transaction initiator */
|
|
34262
|
+
nonce: number;
|
|
34263
|
+
};
|
|
34264
|
+
sponsor: {
|
|
34265
|
+
/** @description Address of the transaction initiator */
|
|
34266
|
+
address: string;
|
|
34267
|
+
/** @description Nonce of the transaction initiator */
|
|
34268
|
+
nonce: number;
|
|
34269
|
+
} | null;
|
|
34270
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34271
|
+
fee_rate: string;
|
|
34272
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
34273
|
+
receipt_time: number;
|
|
34274
|
+
/** @description Height of the block this transaction was received by the node */
|
|
34275
|
+
receipt_block_height: number;
|
|
34276
|
+
/** @description Status of the mempool transaction */
|
|
34277
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
34278
|
+
/** @enum {string} */
|
|
34279
|
+
type: "smart_contract";
|
|
34280
|
+
smart_contract: {
|
|
34281
|
+
clarity_version: number | null;
|
|
34282
|
+
/** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
|
|
34283
|
+
contract_id: string;
|
|
34284
|
+
};
|
|
34285
|
+
} | {
|
|
34286
|
+
/** @description Transaction ID */
|
|
34287
|
+
tx_id: string;
|
|
34288
|
+
sender: {
|
|
34289
|
+
/** @description Address of the transaction initiator */
|
|
34290
|
+
address: string;
|
|
34291
|
+
/** @description Nonce of the transaction initiator */
|
|
34292
|
+
nonce: number;
|
|
34293
|
+
};
|
|
34294
|
+
sponsor: {
|
|
34295
|
+
/** @description Address of the transaction initiator */
|
|
34296
|
+
address: string;
|
|
34297
|
+
/** @description Nonce of the transaction initiator */
|
|
34298
|
+
nonce: number;
|
|
34299
|
+
} | null;
|
|
34300
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34301
|
+
fee_rate: string;
|
|
34302
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
34303
|
+
receipt_time: number;
|
|
34304
|
+
/** @description Height of the block this transaction was received by the node */
|
|
34305
|
+
receipt_block_height: number;
|
|
34306
|
+
/** @description Status of the mempool transaction */
|
|
34307
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
34308
|
+
/** @enum {string} */
|
|
34309
|
+
type: "contract_call";
|
|
34310
|
+
contract_call: {
|
|
34311
|
+
/** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
|
|
34312
|
+
contract_id: string;
|
|
34313
|
+
/** @description Name of the Clarity function to be invoked */
|
|
34314
|
+
function_name: string;
|
|
34315
|
+
};
|
|
34316
|
+
} | {
|
|
34317
|
+
/** @description Transaction ID */
|
|
34318
|
+
tx_id: string;
|
|
34319
|
+
sender: {
|
|
34320
|
+
/** @description Address of the transaction initiator */
|
|
34321
|
+
address: string;
|
|
34322
|
+
/** @description Nonce of the transaction initiator */
|
|
34323
|
+
nonce: number;
|
|
34324
|
+
};
|
|
34325
|
+
sponsor: {
|
|
34326
|
+
/** @description Address of the transaction initiator */
|
|
34327
|
+
address: string;
|
|
34328
|
+
/** @description Nonce of the transaction initiator */
|
|
34329
|
+
nonce: number;
|
|
34330
|
+
} | null;
|
|
34331
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34332
|
+
fee_rate: string;
|
|
34333
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
34334
|
+
receipt_time: number;
|
|
34335
|
+
/** @description Height of the block this transaction was received by the node */
|
|
34336
|
+
receipt_block_height: number;
|
|
34337
|
+
/** @description Status of the mempool transaction */
|
|
34338
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
34339
|
+
/** @enum {string} */
|
|
34340
|
+
type: "poison_microblock";
|
|
34341
|
+
} | {
|
|
34342
|
+
/** @description Transaction ID */
|
|
34343
|
+
tx_id: string;
|
|
34344
|
+
sender: {
|
|
34345
|
+
/** @description Address of the transaction initiator */
|
|
34346
|
+
address: string;
|
|
34347
|
+
/** @description Nonce of the transaction initiator */
|
|
34348
|
+
nonce: number;
|
|
34349
|
+
};
|
|
34350
|
+
sponsor: {
|
|
34351
|
+
/** @description Address of the transaction initiator */
|
|
34352
|
+
address: string;
|
|
34353
|
+
/** @description Nonce of the transaction initiator */
|
|
34354
|
+
nonce: number;
|
|
34355
|
+
} | null;
|
|
34356
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34357
|
+
fee_rate: string;
|
|
34358
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
34359
|
+
receipt_time: number;
|
|
34360
|
+
/** @description Height of the block this transaction was received by the node */
|
|
34361
|
+
receipt_block_height: number;
|
|
34362
|
+
/** @description Status of the mempool transaction */
|
|
34363
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
34364
|
+
/** @enum {string} */
|
|
34365
|
+
type: "coinbase";
|
|
34366
|
+
} | {
|
|
34367
|
+
/** @description Transaction ID */
|
|
34368
|
+
tx_id: string;
|
|
34369
|
+
sender: {
|
|
34370
|
+
/** @description Address of the transaction initiator */
|
|
34371
|
+
address: string;
|
|
34372
|
+
/** @description Nonce of the transaction initiator */
|
|
34373
|
+
nonce: number;
|
|
34374
|
+
};
|
|
34375
|
+
sponsor: {
|
|
34376
|
+
/** @description Address of the transaction initiator */
|
|
34377
|
+
address: string;
|
|
34378
|
+
/** @description Nonce of the transaction initiator */
|
|
34379
|
+
nonce: number;
|
|
34380
|
+
} | null;
|
|
34381
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34382
|
+
fee_rate: string;
|
|
34383
|
+
/** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */
|
|
34384
|
+
receipt_time: number;
|
|
34385
|
+
/** @description Height of the block this transaction was received by the node */
|
|
34386
|
+
receipt_block_height: number;
|
|
34387
|
+
/** @description Status of the mempool transaction */
|
|
34388
|
+
status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic";
|
|
34389
|
+
/** @enum {string} */
|
|
34390
|
+
type: "tenure_change";
|
|
34391
|
+
})[];
|
|
34392
|
+
};
|
|
34393
|
+
};
|
|
34394
|
+
};
|
|
34395
|
+
/** @description Default Response */
|
|
34396
|
+
"4XX": {
|
|
34397
|
+
headers: {
|
|
34398
|
+
[name: string]: unknown;
|
|
34399
|
+
};
|
|
34400
|
+
content: {
|
|
34401
|
+
"application/json": {
|
|
34402
|
+
error: string;
|
|
34403
|
+
message?: string;
|
|
34404
|
+
} & {
|
|
34405
|
+
[key: string]: unknown;
|
|
34406
|
+
};
|
|
34407
|
+
};
|
|
34408
|
+
};
|
|
34409
|
+
};
|
|
34410
|
+
};
|
|
34411
|
+
get_block_transactions: {
|
|
34412
|
+
parameters: {
|
|
34413
|
+
query?: {
|
|
34414
|
+
/** @description Number of results per page */
|
|
34415
|
+
limit?: number;
|
|
34416
|
+
/** @description Cursor for paginating transactions. Format: block_height:microblock_sequence:tx_index */
|
|
34417
|
+
cursor?: string;
|
|
34418
|
+
};
|
|
34419
|
+
header?: never;
|
|
34420
|
+
path: {
|
|
34421
|
+
height_or_hash: "latest" | string | number;
|
|
34422
|
+
};
|
|
34423
|
+
cookie?: never;
|
|
34424
|
+
};
|
|
34425
|
+
requestBody?: never;
|
|
34426
|
+
responses: {
|
|
34427
|
+
/** @description Default Response */
|
|
34428
|
+
200: {
|
|
34429
|
+
headers: {
|
|
34430
|
+
[name: string]: unknown;
|
|
34431
|
+
};
|
|
34432
|
+
content: {
|
|
34433
|
+
"application/json": {
|
|
34434
|
+
/** @example 1 */
|
|
34435
|
+
total: number;
|
|
34436
|
+
/**
|
|
34437
|
+
* @description Number of results per page
|
|
34438
|
+
* @default 20
|
|
34439
|
+
*/
|
|
34440
|
+
limit: number;
|
|
34441
|
+
cursor: {
|
|
34442
|
+
next: string | null;
|
|
34443
|
+
previous: string | null;
|
|
34444
|
+
current: string | null;
|
|
34445
|
+
};
|
|
34446
|
+
results: ({
|
|
34447
|
+
/** @description Transaction ID */
|
|
34448
|
+
tx_id: string;
|
|
34449
|
+
sender: {
|
|
34450
|
+
/** @description Address of the transaction initiator */
|
|
34451
|
+
address: string;
|
|
34452
|
+
/** @description Nonce of the transaction initiator */
|
|
34453
|
+
nonce: number;
|
|
34454
|
+
};
|
|
34455
|
+
sponsor: {
|
|
34456
|
+
/** @description Address of the transaction initiator */
|
|
34457
|
+
address: string;
|
|
34458
|
+
/** @description Nonce of the transaction initiator */
|
|
34459
|
+
nonce: number;
|
|
34460
|
+
} | null;
|
|
34461
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34462
|
+
fee_rate: string;
|
|
34463
|
+
block: {
|
|
34464
|
+
/** @description Height of the block this transactions was associated with */
|
|
34465
|
+
height: number;
|
|
34466
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
34467
|
+
hash: string;
|
|
34468
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
34469
|
+
index_hash: string;
|
|
34470
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34471
|
+
time: number;
|
|
34472
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
34473
|
+
tx_index: number;
|
|
34474
|
+
};
|
|
34475
|
+
bitcoin_block: {
|
|
34476
|
+
/** @description Height of the anchor burn block. */
|
|
34477
|
+
height: number;
|
|
34478
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34479
|
+
time: number;
|
|
34480
|
+
};
|
|
34481
|
+
/** @description Status of the transaction */
|
|
34482
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
34483
|
+
/** @enum {string} */
|
|
34484
|
+
type: "token_transfer";
|
|
34485
|
+
token_transfer: {
|
|
34486
|
+
recipient: string;
|
|
34487
|
+
/** @description Transfer amount as Integer string (64-bit unsigned integer) */
|
|
34488
|
+
amount: string;
|
|
34489
|
+
memo: {
|
|
34490
|
+
hex: string;
|
|
34491
|
+
repr: string;
|
|
34492
|
+
} | null;
|
|
34493
|
+
};
|
|
34494
|
+
} | {
|
|
34495
|
+
/** @description Transaction ID */
|
|
34496
|
+
tx_id: string;
|
|
34497
|
+
sender: {
|
|
34498
|
+
/** @description Address of the transaction initiator */
|
|
34499
|
+
address: string;
|
|
34500
|
+
/** @description Nonce of the transaction initiator */
|
|
34501
|
+
nonce: number;
|
|
34502
|
+
};
|
|
34503
|
+
sponsor: {
|
|
34504
|
+
/** @description Address of the transaction initiator */
|
|
34505
|
+
address: string;
|
|
34506
|
+
/** @description Nonce of the transaction initiator */
|
|
34507
|
+
nonce: number;
|
|
34508
|
+
} | null;
|
|
34509
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34510
|
+
fee_rate: string;
|
|
34511
|
+
block: {
|
|
34512
|
+
/** @description Height of the block this transactions was associated with */
|
|
34513
|
+
height: number;
|
|
34514
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
34515
|
+
hash: string;
|
|
34516
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
34517
|
+
index_hash: string;
|
|
34518
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34519
|
+
time: number;
|
|
34520
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
34521
|
+
tx_index: number;
|
|
34522
|
+
};
|
|
34523
|
+
bitcoin_block: {
|
|
34524
|
+
/** @description Height of the anchor burn block. */
|
|
34525
|
+
height: number;
|
|
34526
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34527
|
+
time: number;
|
|
34528
|
+
};
|
|
34529
|
+
/** @description Status of the transaction */
|
|
34530
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
34531
|
+
/** @enum {string} */
|
|
34532
|
+
type: "smart_contract";
|
|
34533
|
+
smart_contract: {
|
|
34534
|
+
clarity_version: number | null;
|
|
34535
|
+
/** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
|
|
34536
|
+
contract_id: string;
|
|
34537
|
+
};
|
|
34538
|
+
} | {
|
|
34539
|
+
/** @description Transaction ID */
|
|
34540
|
+
tx_id: string;
|
|
34541
|
+
sender: {
|
|
34542
|
+
/** @description Address of the transaction initiator */
|
|
34543
|
+
address: string;
|
|
34544
|
+
/** @description Nonce of the transaction initiator */
|
|
34545
|
+
nonce: number;
|
|
34546
|
+
};
|
|
34547
|
+
sponsor: {
|
|
34548
|
+
/** @description Address of the transaction initiator */
|
|
34549
|
+
address: string;
|
|
34550
|
+
/** @description Nonce of the transaction initiator */
|
|
34551
|
+
nonce: number;
|
|
34552
|
+
} | null;
|
|
34553
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34554
|
+
fee_rate: string;
|
|
34555
|
+
block: {
|
|
34556
|
+
/** @description Height of the block this transactions was associated with */
|
|
34557
|
+
height: number;
|
|
34558
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
34559
|
+
hash: string;
|
|
34560
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
34561
|
+
index_hash: string;
|
|
34562
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34563
|
+
time: number;
|
|
34564
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
34565
|
+
tx_index: number;
|
|
34566
|
+
};
|
|
34567
|
+
bitcoin_block: {
|
|
34568
|
+
/** @description Height of the anchor burn block. */
|
|
34569
|
+
height: number;
|
|
34570
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34571
|
+
time: number;
|
|
34572
|
+
};
|
|
34573
|
+
/** @description Status of the transaction */
|
|
34574
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
34575
|
+
/** @enum {string} */
|
|
34576
|
+
type: "contract_call";
|
|
34577
|
+
contract_call: {
|
|
34578
|
+
/** @description Contract identifier formatted as `<principaladdress>.<contract_name>` */
|
|
34579
|
+
contract_id: string;
|
|
34580
|
+
/** @description Name of the Clarity function to be invoked */
|
|
34581
|
+
function_name: string;
|
|
34582
|
+
};
|
|
34583
|
+
} | {
|
|
34584
|
+
/** @description Transaction ID */
|
|
34585
|
+
tx_id: string;
|
|
34586
|
+
sender: {
|
|
34587
|
+
/** @description Address of the transaction initiator */
|
|
34588
|
+
address: string;
|
|
34589
|
+
/** @description Nonce of the transaction initiator */
|
|
34590
|
+
nonce: number;
|
|
34591
|
+
};
|
|
34592
|
+
sponsor: {
|
|
34593
|
+
/** @description Address of the transaction initiator */
|
|
34594
|
+
address: string;
|
|
34595
|
+
/** @description Nonce of the transaction initiator */
|
|
34596
|
+
nonce: number;
|
|
34597
|
+
} | null;
|
|
34598
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34599
|
+
fee_rate: string;
|
|
34600
|
+
block: {
|
|
34601
|
+
/** @description Height of the block this transactions was associated with */
|
|
34602
|
+
height: number;
|
|
34603
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
34604
|
+
hash: string;
|
|
34605
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
34606
|
+
index_hash: string;
|
|
34607
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34608
|
+
time: number;
|
|
34609
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
34610
|
+
tx_index: number;
|
|
34611
|
+
};
|
|
34612
|
+
bitcoin_block: {
|
|
34613
|
+
/** @description Height of the anchor burn block. */
|
|
34614
|
+
height: number;
|
|
34615
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34616
|
+
time: number;
|
|
34617
|
+
};
|
|
34618
|
+
/** @description Status of the transaction */
|
|
34619
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
34620
|
+
/** @enum {string} */
|
|
34621
|
+
type: "poison_microblock";
|
|
34622
|
+
} | {
|
|
34623
|
+
/** @description Transaction ID */
|
|
34624
|
+
tx_id: string;
|
|
34625
|
+
sender: {
|
|
34626
|
+
/** @description Address of the transaction initiator */
|
|
34627
|
+
address: string;
|
|
34628
|
+
/** @description Nonce of the transaction initiator */
|
|
34629
|
+
nonce: number;
|
|
34630
|
+
};
|
|
34631
|
+
sponsor: {
|
|
34632
|
+
/** @description Address of the transaction initiator */
|
|
34633
|
+
address: string;
|
|
34634
|
+
/** @description Nonce of the transaction initiator */
|
|
34635
|
+
nonce: number;
|
|
34636
|
+
} | null;
|
|
34637
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34638
|
+
fee_rate: string;
|
|
34639
|
+
block: {
|
|
34640
|
+
/** @description Height of the block this transactions was associated with */
|
|
34641
|
+
height: number;
|
|
34642
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
34643
|
+
hash: string;
|
|
34644
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
34645
|
+
index_hash: string;
|
|
34646
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34647
|
+
time: number;
|
|
34648
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
34649
|
+
tx_index: number;
|
|
34650
|
+
};
|
|
34651
|
+
bitcoin_block: {
|
|
34652
|
+
/** @description Height of the anchor burn block. */
|
|
34653
|
+
height: number;
|
|
34654
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34655
|
+
time: number;
|
|
34656
|
+
};
|
|
34657
|
+
/** @description Status of the transaction */
|
|
34658
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
34659
|
+
/** @enum {string} */
|
|
34660
|
+
type: "coinbase";
|
|
34661
|
+
coinbase: {
|
|
34662
|
+
alt_recipient: string | null;
|
|
34663
|
+
};
|
|
34664
|
+
} | {
|
|
34665
|
+
/** @description Transaction ID */
|
|
34666
|
+
tx_id: string;
|
|
34667
|
+
sender: {
|
|
34668
|
+
/** @description Address of the transaction initiator */
|
|
34669
|
+
address: string;
|
|
34670
|
+
/** @description Nonce of the transaction initiator */
|
|
34671
|
+
nonce: number;
|
|
34672
|
+
};
|
|
34673
|
+
sponsor: {
|
|
34674
|
+
/** @description Address of the transaction initiator */
|
|
34675
|
+
address: string;
|
|
34676
|
+
/** @description Nonce of the transaction initiator */
|
|
34677
|
+
nonce: number;
|
|
34678
|
+
} | null;
|
|
34679
|
+
/** @description Transaction fee as Integer string (64-bit unsigned integer). */
|
|
34680
|
+
fee_rate: string;
|
|
34681
|
+
block: {
|
|
34682
|
+
/** @description Height of the block this transactions was associated with */
|
|
34683
|
+
height: number;
|
|
34684
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
34685
|
+
hash: string;
|
|
34686
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
34687
|
+
index_hash: string;
|
|
34688
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34689
|
+
time: number;
|
|
34690
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
34691
|
+
tx_index: number;
|
|
34692
|
+
};
|
|
34693
|
+
bitcoin_block: {
|
|
34694
|
+
/** @description Height of the anchor burn block. */
|
|
34695
|
+
height: number;
|
|
34696
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34697
|
+
time: number;
|
|
34698
|
+
};
|
|
34699
|
+
/** @description Status of the transaction */
|
|
34700
|
+
status: "success" | "abort_by_response" | "abort_by_post_condition";
|
|
34701
|
+
/** @enum {string} */
|
|
34702
|
+
type: "tenure_change";
|
|
34703
|
+
tenure_change: {
|
|
34704
|
+
/** @description Cause of change in mining tenure. Depending on cause, tenure can be ended or extended. */
|
|
34705
|
+
cause: "block_found" | "extended" | "extended_runtime" | "extended_read_count" | "extended_read_length" | "extended_write_count" | "extended_write_length";
|
|
34706
|
+
};
|
|
34707
|
+
})[];
|
|
34708
|
+
};
|
|
34709
|
+
};
|
|
34710
|
+
};
|
|
34711
|
+
/** @description Default Response */
|
|
34712
|
+
"4XX": {
|
|
34713
|
+
headers: {
|
|
34714
|
+
[name: string]: unknown;
|
|
34715
|
+
};
|
|
34716
|
+
content: {
|
|
34717
|
+
"application/json": {
|
|
34718
|
+
error: string;
|
|
34719
|
+
message?: string;
|
|
34720
|
+
} & {
|
|
34721
|
+
[key: string]: unknown;
|
|
34722
|
+
};
|
|
34723
|
+
};
|
|
34724
|
+
};
|
|
34725
|
+
};
|
|
34726
|
+
};
|
|
32022
34727
|
get_historical_zone_file: {
|
|
32023
34728
|
parameters: {
|
|
32024
34729
|
query?: {
|