@stacks/blockchain-api-client 9.0.0-pox5.7 → 9.0.0-pox5.9
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 +853 -40
- package/package.json +1 -1
- package/src/generated/schema.d.ts +853 -40
|
@@ -1188,6 +1188,33 @@ export interface paths {
|
|
|
1188
1188
|
patch?: never;
|
|
1189
1189
|
trace?: never;
|
|
1190
1190
|
};
|
|
1191
|
+
"/extended/v1/faucets/sbtc": {
|
|
1192
|
+
parameters: {
|
|
1193
|
+
query?: never;
|
|
1194
|
+
header?: never;
|
|
1195
|
+
path?: never;
|
|
1196
|
+
cookie?: never;
|
|
1197
|
+
};
|
|
1198
|
+
get?: never;
|
|
1199
|
+
put?: never;
|
|
1200
|
+
/**
|
|
1201
|
+
* Get sBTC testnet tokens
|
|
1202
|
+
* @description Add sBTC tokens to the specified testnet address. The endpoint performs a SIP-010 `transfer`
|
|
1203
|
+
* contract call on the configured testnet sBTC token contract. Testnet STX addresses begin with `ST`.
|
|
1204
|
+
*
|
|
1205
|
+
* The endpoint returns the transaction ID, which you can use to view the transaction in the
|
|
1206
|
+
* [Stacks Explorer](https://explorer.hiro.so/?chain=testnet). The tokens are delivered once the transaction has
|
|
1207
|
+
* been included in a block.
|
|
1208
|
+
*
|
|
1209
|
+
* **Note:** This is a testnet only endpoint. This endpoint will not work on mainnet.
|
|
1210
|
+
*/
|
|
1211
|
+
post: operations["run_faucet_sbtc"];
|
|
1212
|
+
delete?: never;
|
|
1213
|
+
options?: never;
|
|
1214
|
+
head?: never;
|
|
1215
|
+
patch?: never;
|
|
1216
|
+
trace?: never;
|
|
1217
|
+
};
|
|
1191
1218
|
"/extended/v2/blocks/": {
|
|
1192
1219
|
parameters: {
|
|
1193
1220
|
query?: never;
|
|
@@ -1750,7 +1777,127 @@ export interface paths {
|
|
|
1750
1777
|
patch?: never;
|
|
1751
1778
|
trace?: never;
|
|
1752
1779
|
};
|
|
1753
|
-
"/extended/v3/principals/{principal}/
|
|
1780
|
+
"/extended/v3/principals/{principal}/transactions/{tx_id}/balance-changes": {
|
|
1781
|
+
parameters: {
|
|
1782
|
+
query?: never;
|
|
1783
|
+
header?: never;
|
|
1784
|
+
path?: never;
|
|
1785
|
+
cookie?: never;
|
|
1786
|
+
};
|
|
1787
|
+
/**
|
|
1788
|
+
* Get principal transaction balance changes
|
|
1789
|
+
* @description Returns the balance changes for a principal's transaction
|
|
1790
|
+
*/
|
|
1791
|
+
get: operations["get_principal_transaction_balance_changes"];
|
|
1792
|
+
put?: never;
|
|
1793
|
+
post?: never;
|
|
1794
|
+
delete?: never;
|
|
1795
|
+
options?: never;
|
|
1796
|
+
head?: never;
|
|
1797
|
+
patch?: never;
|
|
1798
|
+
trace?: never;
|
|
1799
|
+
};
|
|
1800
|
+
"/extended/v3/principals/{principal}/balance-changes": {
|
|
1801
|
+
parameters: {
|
|
1802
|
+
query?: never;
|
|
1803
|
+
header?: never;
|
|
1804
|
+
path?: never;
|
|
1805
|
+
cookie?: never;
|
|
1806
|
+
};
|
|
1807
|
+
/**
|
|
1808
|
+
* Get principal balance changes
|
|
1809
|
+
* @description Returns the balance changes for a principal across one or more transactions, as a single paginated flat array ordered by chain position descending then by asset.
|
|
1810
|
+
*/
|
|
1811
|
+
get: operations["get_principal_balance_changes"];
|
|
1812
|
+
put?: never;
|
|
1813
|
+
post?: never;
|
|
1814
|
+
delete?: never;
|
|
1815
|
+
options?: never;
|
|
1816
|
+
head?: never;
|
|
1817
|
+
patch?: never;
|
|
1818
|
+
trace?: never;
|
|
1819
|
+
};
|
|
1820
|
+
"/extended/v3/principals/{principal}/staking": {
|
|
1821
|
+
parameters: {
|
|
1822
|
+
query?: never;
|
|
1823
|
+
header?: never;
|
|
1824
|
+
path?: never;
|
|
1825
|
+
cookie?: never;
|
|
1826
|
+
};
|
|
1827
|
+
/**
|
|
1828
|
+
* Get principal staking summary
|
|
1829
|
+
* @description A one-call overview of a principal's staking: its pox-5 STX-staking position (locked STX and its sBTC rewards) plus aggregate totals across all of its bond positions. The per-bond breakdown is paginated at `/principals/:principal/staking/bonds`.
|
|
1830
|
+
*/
|
|
1831
|
+
get: operations["get_principal_staking_summary"];
|
|
1832
|
+
put?: never;
|
|
1833
|
+
post?: never;
|
|
1834
|
+
delete?: never;
|
|
1835
|
+
options?: never;
|
|
1836
|
+
head?: never;
|
|
1837
|
+
patch?: never;
|
|
1838
|
+
trace?: never;
|
|
1839
|
+
};
|
|
1840
|
+
"/extended/v3/principals/{principal}/staking/bonds": {
|
|
1841
|
+
parameters: {
|
|
1842
|
+
query?: never;
|
|
1843
|
+
header?: never;
|
|
1844
|
+
path?: never;
|
|
1845
|
+
cookie?: never;
|
|
1846
|
+
};
|
|
1847
|
+
/**
|
|
1848
|
+
* Get principal bond positions
|
|
1849
|
+
* @description Get a principal's bond positions — its enrollment, lock, status, and sBTC rewards in each bond it participates in.
|
|
1850
|
+
*/
|
|
1851
|
+
get: operations["get_principal_bond_positions"];
|
|
1852
|
+
put?: never;
|
|
1853
|
+
post?: never;
|
|
1854
|
+
delete?: never;
|
|
1855
|
+
options?: never;
|
|
1856
|
+
head?: never;
|
|
1857
|
+
patch?: never;
|
|
1858
|
+
trace?: never;
|
|
1859
|
+
};
|
|
1860
|
+
"/extended/v3/principals/{principal}/balances/stx": {
|
|
1861
|
+
parameters: {
|
|
1862
|
+
query?: never;
|
|
1863
|
+
header?: never;
|
|
1864
|
+
path?: never;
|
|
1865
|
+
cookie?: never;
|
|
1866
|
+
};
|
|
1867
|
+
/**
|
|
1868
|
+
* Get principal STX balance
|
|
1869
|
+
* @description Get a principal's STX balance: its total and spendable (available) balance, any locked STX, and the projected balance from pending mempool transactions.
|
|
1870
|
+
*/
|
|
1871
|
+
get: operations["get_principal_balances_stx"];
|
|
1872
|
+
put?: never;
|
|
1873
|
+
post?: never;
|
|
1874
|
+
delete?: never;
|
|
1875
|
+
options?: never;
|
|
1876
|
+
head?: never;
|
|
1877
|
+
patch?: never;
|
|
1878
|
+
trace?: never;
|
|
1879
|
+
};
|
|
1880
|
+
"/extended/v3/principals/{principal}/balances/ft": {
|
|
1881
|
+
parameters: {
|
|
1882
|
+
query?: never;
|
|
1883
|
+
header?: never;
|
|
1884
|
+
path?: never;
|
|
1885
|
+
cookie?: never;
|
|
1886
|
+
};
|
|
1887
|
+
/**
|
|
1888
|
+
* Get principal FT balances
|
|
1889
|
+
* @description Get a principal's fungible-token balances, sorted by balance descending.
|
|
1890
|
+
*/
|
|
1891
|
+
get: operations["get_principal_balances_ft"];
|
|
1892
|
+
put?: never;
|
|
1893
|
+
post?: never;
|
|
1894
|
+
delete?: never;
|
|
1895
|
+
options?: never;
|
|
1896
|
+
head?: never;
|
|
1897
|
+
patch?: never;
|
|
1898
|
+
trace?: never;
|
|
1899
|
+
};
|
|
1900
|
+
"/extended/v3/principals/{principal}/balances/nft": {
|
|
1754
1901
|
parameters: {
|
|
1755
1902
|
query?: never;
|
|
1756
1903
|
header?: never;
|
|
@@ -1758,10 +1905,10 @@ export interface paths {
|
|
|
1758
1905
|
cookie?: never;
|
|
1759
1906
|
};
|
|
1760
1907
|
/**
|
|
1761
|
-
* Get principal
|
|
1762
|
-
* @description Get
|
|
1908
|
+
* Get principal NFT balances
|
|
1909
|
+
* @description Get the non-fungible token instances currently owned by a principal, ordered by asset identifier and value.
|
|
1763
1910
|
*/
|
|
1764
|
-
get: operations["
|
|
1911
|
+
get: operations["get_principal_balances_nft"];
|
|
1765
1912
|
put?: never;
|
|
1766
1913
|
post?: never;
|
|
1767
1914
|
delete?: never;
|
|
@@ -1890,6 +2037,46 @@ export interface paths {
|
|
|
1890
2037
|
patch?: never;
|
|
1891
2038
|
trace?: never;
|
|
1892
2039
|
};
|
|
2040
|
+
"/extended/v3/staking/signers": {
|
|
2041
|
+
parameters: {
|
|
2042
|
+
query?: never;
|
|
2043
|
+
header?: never;
|
|
2044
|
+
path?: never;
|
|
2045
|
+
cookie?: never;
|
|
2046
|
+
};
|
|
2047
|
+
/**
|
|
2048
|
+
* Get staking signers
|
|
2049
|
+
* @description Get the registered pox-5 staking signers and their current signing keys.
|
|
2050
|
+
*/
|
|
2051
|
+
get: operations["get_staking_signers"];
|
|
2052
|
+
put?: never;
|
|
2053
|
+
post?: never;
|
|
2054
|
+
delete?: never;
|
|
2055
|
+
options?: never;
|
|
2056
|
+
head?: never;
|
|
2057
|
+
patch?: never;
|
|
2058
|
+
trace?: never;
|
|
2059
|
+
};
|
|
2060
|
+
"/extended/v3/staking/signers/{principal}": {
|
|
2061
|
+
parameters: {
|
|
2062
|
+
query?: never;
|
|
2063
|
+
header?: never;
|
|
2064
|
+
path?: never;
|
|
2065
|
+
cookie?: never;
|
|
2066
|
+
};
|
|
2067
|
+
/**
|
|
2068
|
+
* Get staking signer
|
|
2069
|
+
* @description Get a registered pox-5 staking signer along with the details of the transaction that registered its current key.
|
|
2070
|
+
*/
|
|
2071
|
+
get: operations["get_staking_signer"];
|
|
2072
|
+
put?: never;
|
|
2073
|
+
post?: never;
|
|
2074
|
+
delete?: never;
|
|
2075
|
+
options?: never;
|
|
2076
|
+
head?: never;
|
|
2077
|
+
patch?: never;
|
|
2078
|
+
trace?: never;
|
|
2079
|
+
};
|
|
1893
2080
|
"/extended/v3/transactions": {
|
|
1894
2081
|
parameters: {
|
|
1895
2082
|
query?: never;
|
|
@@ -27703,6 +27890,59 @@ export interface operations {
|
|
|
27703
27890
|
};
|
|
27704
27891
|
};
|
|
27705
27892
|
};
|
|
27893
|
+
run_faucet_sbtc: {
|
|
27894
|
+
parameters: {
|
|
27895
|
+
query?: {
|
|
27896
|
+
/**
|
|
27897
|
+
* @description A valid testnet STX address
|
|
27898
|
+
* @example ST3M7N9Q9HDRM7RVP1Q26P0EE69358PZZAZD7KMXQ
|
|
27899
|
+
*/
|
|
27900
|
+
address?: string;
|
|
27901
|
+
};
|
|
27902
|
+
header?: never;
|
|
27903
|
+
path?: never;
|
|
27904
|
+
cookie?: never;
|
|
27905
|
+
};
|
|
27906
|
+
requestBody?: never;
|
|
27907
|
+
responses: {
|
|
27908
|
+
/** @description POST request that initiates a transfer of tokens to a specified testnet address */
|
|
27909
|
+
200: {
|
|
27910
|
+
headers: {
|
|
27911
|
+
[name: string]: unknown;
|
|
27912
|
+
};
|
|
27913
|
+
content: {
|
|
27914
|
+
"application/json": {
|
|
27915
|
+
/**
|
|
27916
|
+
* @description Indicates if the faucet call was successful
|
|
27917
|
+
* @enum {boolean}
|
|
27918
|
+
*/
|
|
27919
|
+
success: true;
|
|
27920
|
+
/** @description The transaction ID for the faucet call */
|
|
27921
|
+
txId: string;
|
|
27922
|
+
/** @description Raw transaction in hex string representation */
|
|
27923
|
+
txRaw: string;
|
|
27924
|
+
};
|
|
27925
|
+
};
|
|
27926
|
+
};
|
|
27927
|
+
/** @description Default Response */
|
|
27928
|
+
"4XX": {
|
|
27929
|
+
headers: {
|
|
27930
|
+
[name: string]: unknown;
|
|
27931
|
+
};
|
|
27932
|
+
content: {
|
|
27933
|
+
"application/json": {
|
|
27934
|
+
/**
|
|
27935
|
+
* @description Indicates if the faucet call was successful
|
|
27936
|
+
* @enum {boolean}
|
|
27937
|
+
*/
|
|
27938
|
+
success: false;
|
|
27939
|
+
/** @description Error message */
|
|
27940
|
+
error: string;
|
|
27941
|
+
};
|
|
27942
|
+
};
|
|
27943
|
+
};
|
|
27944
|
+
};
|
|
27945
|
+
};
|
|
27706
27946
|
get_blocks: {
|
|
27707
27947
|
parameters: {
|
|
27708
27948
|
query?: {
|
|
@@ -32798,12 +33038,22 @@ export interface operations {
|
|
|
32798
33038
|
};
|
|
32799
33039
|
};
|
|
32800
33040
|
};
|
|
32801
|
-
|
|
33041
|
+
get_principal_transaction_balance_changes: {
|
|
32802
33042
|
parameters: {
|
|
32803
|
-
query?:
|
|
33043
|
+
query?: {
|
|
33044
|
+
/** @description Number of results per page */
|
|
33045
|
+
limit?: number;
|
|
33046
|
+
/** @description Cursor for paginating principal transaction balance changes. Format: `<asset_type>:<asset_identifier>` where `asset_type` is a numeric tag (1=STX, 2=FT, 3=NFT) and `asset_identifier` is `<stx>` for STX or a fully-qualified Clarity asset id such as `SP000…contract-name::asset-name` for FT/NFT. */
|
|
33047
|
+
cursor?: string;
|
|
33048
|
+
};
|
|
32804
33049
|
header?: never;
|
|
32805
33050
|
path: {
|
|
32806
33051
|
principal: string;
|
|
33052
|
+
/**
|
|
33053
|
+
* @description Transaction ID
|
|
33054
|
+
* @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
|
|
33055
|
+
*/
|
|
33056
|
+
tx_id: string;
|
|
32807
33057
|
};
|
|
32808
33058
|
cookie?: never;
|
|
32809
33059
|
};
|
|
@@ -32816,40 +33066,38 @@ export interface operations {
|
|
|
32816
33066
|
};
|
|
32817
33067
|
content: {
|
|
32818
33068
|
"application/json": {
|
|
32819
|
-
/** @
|
|
32820
|
-
|
|
32821
|
-
|
|
32822
|
-
|
|
32823
|
-
|
|
32824
|
-
|
|
32825
|
-
|
|
32826
|
-
|
|
32827
|
-
|
|
32828
|
-
|
|
32829
|
-
|
|
32830
|
-
};
|
|
32831
|
-
paid_out: {
|
|
32832
|
-
/** @description The total amount of BTC that has been paid out for this bond */
|
|
32833
|
-
btc: string;
|
|
32834
|
-
};
|
|
33069
|
+
/** @example 1 */
|
|
33070
|
+
total: number;
|
|
33071
|
+
/**
|
|
33072
|
+
* @description Number of results per page
|
|
33073
|
+
* @default 20
|
|
33074
|
+
*/
|
|
33075
|
+
limit: number;
|
|
33076
|
+
cursor: {
|
|
33077
|
+
next: string | null;
|
|
33078
|
+
previous: string | null;
|
|
33079
|
+
current: string | null;
|
|
32835
33080
|
};
|
|
32836
|
-
|
|
32837
|
-
|
|
32838
|
-
|
|
32839
|
-
|
|
32840
|
-
|
|
32841
|
-
|
|
32842
|
-
|
|
32843
|
-
|
|
32844
|
-
|
|
32845
|
-
amount: string;
|
|
33081
|
+
results: {
|
|
33082
|
+
asset: {
|
|
33083
|
+
/** @enum {string} */
|
|
33084
|
+
type: "stx";
|
|
33085
|
+
} | {
|
|
33086
|
+
/** @description The asset type that was affected by the balance change. */
|
|
33087
|
+
type: "ft" | "nft";
|
|
33088
|
+
/** @description The identifier of the asset that was affected by the balance change. */
|
|
33089
|
+
identifier: string;
|
|
32846
33090
|
};
|
|
32847
|
-
|
|
32848
|
-
|
|
32849
|
-
|
|
32850
|
-
|
|
32851
|
-
|
|
32852
|
-
|
|
33091
|
+
balance_change: {
|
|
33092
|
+
/** @description Amount sent by the principal */
|
|
33093
|
+
sent: string;
|
|
33094
|
+
/** @description Amount received by the principal */
|
|
33095
|
+
received: string;
|
|
33096
|
+
/** @description Net balance change for the principal */
|
|
33097
|
+
net: string;
|
|
33098
|
+
};
|
|
33099
|
+
}[];
|
|
33100
|
+
};
|
|
32853
33101
|
};
|
|
32854
33102
|
};
|
|
32855
33103
|
/** @description Default Response */
|
|
@@ -32868,9 +33116,445 @@ export interface operations {
|
|
|
32868
33116
|
};
|
|
32869
33117
|
};
|
|
32870
33118
|
};
|
|
32871
|
-
|
|
33119
|
+
get_principal_balance_changes: {
|
|
32872
33120
|
parameters: {
|
|
32873
|
-
query
|
|
33121
|
+
query: {
|
|
33122
|
+
/** @description Number of results per page */
|
|
33123
|
+
limit?: number;
|
|
33124
|
+
/** @description Cursor for paginating principal balance changes across multiple transactions. Format: `<block_height>:<microblock_sequence>:<tx_index>:<asset_type>:<asset_identifier>`. */
|
|
33125
|
+
cursor?: string;
|
|
33126
|
+
/** @description Transaction IDs to query balance changes for. Provide as repeated querystring values (`?tx_id=A&tx_id=B`) or as a single comma-separated value (`?tx_id=A,B`). */
|
|
33127
|
+
tx_id: string[];
|
|
33128
|
+
};
|
|
33129
|
+
header?: never;
|
|
33130
|
+
path: {
|
|
33131
|
+
principal: string;
|
|
33132
|
+
};
|
|
33133
|
+
cookie?: never;
|
|
33134
|
+
};
|
|
33135
|
+
requestBody?: never;
|
|
33136
|
+
responses: {
|
|
33137
|
+
/** @description Default Response */
|
|
33138
|
+
200: {
|
|
33139
|
+
headers: {
|
|
33140
|
+
[name: string]: unknown;
|
|
33141
|
+
};
|
|
33142
|
+
content: {
|
|
33143
|
+
"application/json": {
|
|
33144
|
+
/** @example 1 */
|
|
33145
|
+
total: number;
|
|
33146
|
+
/**
|
|
33147
|
+
* @description Number of results per page
|
|
33148
|
+
* @default 20
|
|
33149
|
+
*/
|
|
33150
|
+
limit: number;
|
|
33151
|
+
cursor: {
|
|
33152
|
+
next: string | null;
|
|
33153
|
+
previous: string | null;
|
|
33154
|
+
current: string | null;
|
|
33155
|
+
};
|
|
33156
|
+
results: {
|
|
33157
|
+
/**
|
|
33158
|
+
* Transaction ID
|
|
33159
|
+
* @description Transaction ID
|
|
33160
|
+
* @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
|
|
33161
|
+
*/
|
|
33162
|
+
tx_id: string;
|
|
33163
|
+
asset: {
|
|
33164
|
+
/** @enum {string} */
|
|
33165
|
+
type: "stx";
|
|
33166
|
+
} | {
|
|
33167
|
+
/** @description The asset type that was affected by the balance change. */
|
|
33168
|
+
type: "ft" | "nft";
|
|
33169
|
+
/** @description The identifier of the asset that was affected by the balance change. */
|
|
33170
|
+
identifier: string;
|
|
33171
|
+
};
|
|
33172
|
+
balance_change: {
|
|
33173
|
+
/** @description Amount sent by the principal */
|
|
33174
|
+
sent: string;
|
|
33175
|
+
/** @description Amount received by the principal */
|
|
33176
|
+
received: string;
|
|
33177
|
+
/** @description Net balance change for the principal */
|
|
33178
|
+
net: string;
|
|
33179
|
+
};
|
|
33180
|
+
}[];
|
|
33181
|
+
};
|
|
33182
|
+
};
|
|
33183
|
+
};
|
|
33184
|
+
/** @description Default Response */
|
|
33185
|
+
"4XX": {
|
|
33186
|
+
headers: {
|
|
33187
|
+
[name: string]: unknown;
|
|
33188
|
+
};
|
|
33189
|
+
content: {
|
|
33190
|
+
"application/json": {
|
|
33191
|
+
error: string;
|
|
33192
|
+
message?: string;
|
|
33193
|
+
} & {
|
|
33194
|
+
[key: string]: unknown;
|
|
33195
|
+
};
|
|
33196
|
+
};
|
|
33197
|
+
};
|
|
33198
|
+
};
|
|
33199
|
+
};
|
|
33200
|
+
get_principal_staking_summary: {
|
|
33201
|
+
parameters: {
|
|
33202
|
+
query?: never;
|
|
33203
|
+
header?: never;
|
|
33204
|
+
path: {
|
|
33205
|
+
principal: string;
|
|
33206
|
+
};
|
|
33207
|
+
cookie?: never;
|
|
33208
|
+
};
|
|
33209
|
+
requestBody?: never;
|
|
33210
|
+
responses: {
|
|
33211
|
+
/** @description Default Response */
|
|
33212
|
+
200: {
|
|
33213
|
+
headers: {
|
|
33214
|
+
[name: string]: unknown;
|
|
33215
|
+
};
|
|
33216
|
+
content: {
|
|
33217
|
+
"application/json": {
|
|
33218
|
+
stx: {
|
|
33219
|
+
/** @description The amount of uSTX currently locked in pox-5 STX staking */
|
|
33220
|
+
locked: string;
|
|
33221
|
+
rewards: {
|
|
33222
|
+
btc: {
|
|
33223
|
+
/** @description The lifetime sBTC reward sats accrued to this position */
|
|
33224
|
+
accrued: string;
|
|
33225
|
+
/** @description The lifetime sBTC reward sats already claimed against this position */
|
|
33226
|
+
claimed: string;
|
|
33227
|
+
/** @description The sBTC reward sats currently claimable (accrued minus claimed) */
|
|
33228
|
+
claimable: string;
|
|
33229
|
+
};
|
|
33230
|
+
};
|
|
33231
|
+
};
|
|
33232
|
+
bonds: {
|
|
33233
|
+
/** @description Number of bonds this principal has a position in */
|
|
33234
|
+
count: number;
|
|
33235
|
+
locked: {
|
|
33236
|
+
/** @description Total BTC locked across all bond positions */
|
|
33237
|
+
btc: string;
|
|
33238
|
+
/** @description Total STX locked across all bond positions */
|
|
33239
|
+
stx: string;
|
|
33240
|
+
};
|
|
33241
|
+
rewards: {
|
|
33242
|
+
btc: {
|
|
33243
|
+
/** @description The lifetime sBTC reward sats accrued to this position */
|
|
33244
|
+
accrued: string;
|
|
33245
|
+
/** @description The lifetime sBTC reward sats already claimed against this position */
|
|
33246
|
+
claimed: string;
|
|
33247
|
+
/** @description The sBTC reward sats currently claimable (accrued minus claimed) */
|
|
33248
|
+
claimable: string;
|
|
33249
|
+
};
|
|
33250
|
+
};
|
|
33251
|
+
};
|
|
33252
|
+
};
|
|
33253
|
+
};
|
|
33254
|
+
};
|
|
33255
|
+
/** @description Default Response */
|
|
33256
|
+
"4XX": {
|
|
33257
|
+
headers: {
|
|
33258
|
+
[name: string]: unknown;
|
|
33259
|
+
};
|
|
33260
|
+
content: {
|
|
33261
|
+
"application/json": {
|
|
33262
|
+
error: string;
|
|
33263
|
+
message?: string;
|
|
33264
|
+
} & {
|
|
33265
|
+
[key: string]: unknown;
|
|
33266
|
+
};
|
|
33267
|
+
};
|
|
33268
|
+
};
|
|
33269
|
+
};
|
|
33270
|
+
};
|
|
33271
|
+
get_principal_bond_positions: {
|
|
33272
|
+
parameters: {
|
|
33273
|
+
query?: {
|
|
33274
|
+
/** @description Number of results per page */
|
|
33275
|
+
limit?: number;
|
|
33276
|
+
/** @description Cursor for paginating bonds. Format: bond_index */
|
|
33277
|
+
cursor?: string;
|
|
33278
|
+
};
|
|
33279
|
+
header?: never;
|
|
33280
|
+
path: {
|
|
33281
|
+
principal: string;
|
|
33282
|
+
};
|
|
33283
|
+
cookie?: never;
|
|
33284
|
+
};
|
|
33285
|
+
requestBody?: never;
|
|
33286
|
+
responses: {
|
|
33287
|
+
/** @description Default Response */
|
|
33288
|
+
200: {
|
|
33289
|
+
headers: {
|
|
33290
|
+
[name: string]: unknown;
|
|
33291
|
+
};
|
|
33292
|
+
content: {
|
|
33293
|
+
"application/json": {
|
|
33294
|
+
/** @example 1 */
|
|
33295
|
+
total: number;
|
|
33296
|
+
/**
|
|
33297
|
+
* @description Number of results per page
|
|
33298
|
+
* @default 20
|
|
33299
|
+
*/
|
|
33300
|
+
limit: number;
|
|
33301
|
+
cursor: {
|
|
33302
|
+
next: string | null;
|
|
33303
|
+
previous: string | null;
|
|
33304
|
+
current: string | null;
|
|
33305
|
+
};
|
|
33306
|
+
results: {
|
|
33307
|
+
/** @description The index of the bond in the PoX-5 bond list */
|
|
33308
|
+
bond_index: number;
|
|
33309
|
+
status: "enrolled" | "running" | "early_exit" | "unlocked";
|
|
33310
|
+
/** @description Whether the position is active */
|
|
33311
|
+
active: boolean;
|
|
33312
|
+
enrollment: {
|
|
33313
|
+
/**
|
|
33314
|
+
* Transaction ID
|
|
33315
|
+
* @description Transaction ID
|
|
33316
|
+
* @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
|
|
33317
|
+
*/
|
|
33318
|
+
tx_id: string;
|
|
33319
|
+
btc_lockup: {
|
|
33320
|
+
/** @description The amount of BTC that is locked up for this principal */
|
|
33321
|
+
amount: string;
|
|
33322
|
+
};
|
|
33323
|
+
};
|
|
33324
|
+
locked: {
|
|
33325
|
+
/** @description The amount of BTC locked in this bond position */
|
|
33326
|
+
btc: string;
|
|
33327
|
+
/** @description The amount of STX locked in this bond position */
|
|
33328
|
+
stx: string;
|
|
33329
|
+
};
|
|
33330
|
+
rewards: {
|
|
33331
|
+
btc: {
|
|
33332
|
+
/** @description The lifetime sBTC reward sats accrued to this position */
|
|
33333
|
+
accrued: string;
|
|
33334
|
+
/** @description The lifetime sBTC reward sats already claimed against this position */
|
|
33335
|
+
claimed: string;
|
|
33336
|
+
/** @description The sBTC reward sats currently claimable (accrued minus claimed) */
|
|
33337
|
+
claimable: string;
|
|
33338
|
+
};
|
|
33339
|
+
};
|
|
33340
|
+
}[];
|
|
33341
|
+
};
|
|
33342
|
+
};
|
|
33343
|
+
};
|
|
33344
|
+
/** @description Default Response */
|
|
33345
|
+
"4XX": {
|
|
33346
|
+
headers: {
|
|
33347
|
+
[name: string]: unknown;
|
|
33348
|
+
};
|
|
33349
|
+
content: {
|
|
33350
|
+
"application/json": {
|
|
33351
|
+
error: string;
|
|
33352
|
+
message?: string;
|
|
33353
|
+
} & {
|
|
33354
|
+
[key: string]: unknown;
|
|
33355
|
+
};
|
|
33356
|
+
};
|
|
33357
|
+
};
|
|
33358
|
+
};
|
|
33359
|
+
};
|
|
33360
|
+
get_principal_balances_stx: {
|
|
33361
|
+
parameters: {
|
|
33362
|
+
query?: never;
|
|
33363
|
+
header?: never;
|
|
33364
|
+
path: {
|
|
33365
|
+
principal: string;
|
|
33366
|
+
};
|
|
33367
|
+
cookie?: never;
|
|
33368
|
+
};
|
|
33369
|
+
requestBody?: never;
|
|
33370
|
+
responses: {
|
|
33371
|
+
/** @description Default Response */
|
|
33372
|
+
200: {
|
|
33373
|
+
headers: {
|
|
33374
|
+
[name: string]: unknown;
|
|
33375
|
+
};
|
|
33376
|
+
content: {
|
|
33377
|
+
"application/json": {
|
|
33378
|
+
/** @description Total micro-STX balance (available plus locked) */
|
|
33379
|
+
balance: string;
|
|
33380
|
+
/** @description Spendable micro-STX balance (balance minus locked) */
|
|
33381
|
+
available: string;
|
|
33382
|
+
locked: {
|
|
33383
|
+
/** @description The amount of locked micro-STX */
|
|
33384
|
+
amount: string;
|
|
33385
|
+
/** @description The PoX contract version that created the lock (e.g. 4, 5) */
|
|
33386
|
+
pox_version: number;
|
|
33387
|
+
/**
|
|
33388
|
+
* Transaction ID
|
|
33389
|
+
* @description Transaction ID
|
|
33390
|
+
*/
|
|
33391
|
+
lock_tx_id: string;
|
|
33392
|
+
/** @description The Stacks block height at which the lock was created */
|
|
33393
|
+
stacks_lock_height: number;
|
|
33394
|
+
/** @description The burnchain block height at which the lock was created */
|
|
33395
|
+
burn_lock_height: number;
|
|
33396
|
+
/** @description The burnchain block height at which the locked STX unlocks */
|
|
33397
|
+
burn_unlock_height: number;
|
|
33398
|
+
} | null;
|
|
33399
|
+
mempool: {
|
|
33400
|
+
/** @description Estimated spendable micro-STX balance once pending mempool txs confirm */
|
|
33401
|
+
estimated_balance: string;
|
|
33402
|
+
/** @description Pending inbound micro-STX from the mempool */
|
|
33403
|
+
inbound: string;
|
|
33404
|
+
/** @description Pending outbound micro-STX from the mempool (transfers plus fees) */
|
|
33405
|
+
outbound: string;
|
|
33406
|
+
} | null;
|
|
33407
|
+
};
|
|
33408
|
+
};
|
|
33409
|
+
};
|
|
33410
|
+
/** @description Default Response */
|
|
33411
|
+
"4XX": {
|
|
33412
|
+
headers: {
|
|
33413
|
+
[name: string]: unknown;
|
|
33414
|
+
};
|
|
33415
|
+
content: {
|
|
33416
|
+
"application/json": {
|
|
33417
|
+
error: string;
|
|
33418
|
+
message?: string;
|
|
33419
|
+
} & {
|
|
33420
|
+
[key: string]: unknown;
|
|
33421
|
+
};
|
|
33422
|
+
};
|
|
33423
|
+
};
|
|
33424
|
+
};
|
|
33425
|
+
};
|
|
33426
|
+
get_principal_balances_ft: {
|
|
33427
|
+
parameters: {
|
|
33428
|
+
query?: {
|
|
33429
|
+
/** @description Number of results per page */
|
|
33430
|
+
limit?: number;
|
|
33431
|
+
/** @description Cursor for paginating FT balances (sorted by balance, descending). Format: balance:asset_identifier */
|
|
33432
|
+
cursor?: string;
|
|
33433
|
+
};
|
|
33434
|
+
header?: never;
|
|
33435
|
+
path: {
|
|
33436
|
+
principal: string;
|
|
33437
|
+
};
|
|
33438
|
+
cookie?: never;
|
|
33439
|
+
};
|
|
33440
|
+
requestBody?: never;
|
|
33441
|
+
responses: {
|
|
33442
|
+
/** @description Default Response */
|
|
33443
|
+
200: {
|
|
33444
|
+
headers: {
|
|
33445
|
+
[name: string]: unknown;
|
|
33446
|
+
};
|
|
33447
|
+
content: {
|
|
33448
|
+
"application/json": {
|
|
33449
|
+
/** @example 1 */
|
|
33450
|
+
total: number;
|
|
33451
|
+
/**
|
|
33452
|
+
* @description Number of results per page
|
|
33453
|
+
* @default 100
|
|
33454
|
+
*/
|
|
33455
|
+
limit: number;
|
|
33456
|
+
cursor: {
|
|
33457
|
+
next: string | null;
|
|
33458
|
+
previous: string | null;
|
|
33459
|
+
current: string | null;
|
|
33460
|
+
};
|
|
33461
|
+
results: {
|
|
33462
|
+
/**
|
|
33463
|
+
* @description Fungible token asset identifier
|
|
33464
|
+
* @example SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token::sbtc-token
|
|
33465
|
+
*/
|
|
33466
|
+
asset_identifier: string;
|
|
33467
|
+
/** @description The principal's balance of this token, as a string-quoted integer in base units */
|
|
33468
|
+
balance: string;
|
|
33469
|
+
}[];
|
|
33470
|
+
};
|
|
33471
|
+
};
|
|
33472
|
+
};
|
|
33473
|
+
/** @description Default Response */
|
|
33474
|
+
"4XX": {
|
|
33475
|
+
headers: {
|
|
33476
|
+
[name: string]: unknown;
|
|
33477
|
+
};
|
|
33478
|
+
content: {
|
|
33479
|
+
"application/json": {
|
|
33480
|
+
error: string;
|
|
33481
|
+
message?: string;
|
|
33482
|
+
} & {
|
|
33483
|
+
[key: string]: unknown;
|
|
33484
|
+
};
|
|
33485
|
+
};
|
|
33486
|
+
};
|
|
33487
|
+
};
|
|
33488
|
+
};
|
|
33489
|
+
get_principal_balances_nft: {
|
|
33490
|
+
parameters: {
|
|
33491
|
+
query?: {
|
|
33492
|
+
/** @description Number of results per page */
|
|
33493
|
+
limit?: number;
|
|
33494
|
+
/** @description Cursor for paginating NFT balances (sorted by asset identifier then value). Format: value:asset_identifier */
|
|
33495
|
+
cursor?: string;
|
|
33496
|
+
};
|
|
33497
|
+
header?: never;
|
|
33498
|
+
path: {
|
|
33499
|
+
principal: string;
|
|
33500
|
+
};
|
|
33501
|
+
cookie?: never;
|
|
33502
|
+
};
|
|
33503
|
+
requestBody?: never;
|
|
33504
|
+
responses: {
|
|
33505
|
+
/** @description Default Response */
|
|
33506
|
+
200: {
|
|
33507
|
+
headers: {
|
|
33508
|
+
[name: string]: unknown;
|
|
33509
|
+
};
|
|
33510
|
+
content: {
|
|
33511
|
+
"application/json": {
|
|
33512
|
+
/** @example 1 */
|
|
33513
|
+
total: number;
|
|
33514
|
+
/**
|
|
33515
|
+
* @description Number of results per page
|
|
33516
|
+
* @default 100
|
|
33517
|
+
*/
|
|
33518
|
+
limit: number;
|
|
33519
|
+
cursor: {
|
|
33520
|
+
next: string | null;
|
|
33521
|
+
previous: string | null;
|
|
33522
|
+
current: string | null;
|
|
33523
|
+
};
|
|
33524
|
+
results: {
|
|
33525
|
+
/**
|
|
33526
|
+
* @description Non-fungible token asset identifier
|
|
33527
|
+
* @example SP2X0TZ59D5SZ8ACQ6YMCHHNR2ZN51Z32E2CJ173.the-explorer-guild::The-Explorer-Guild
|
|
33528
|
+
*/
|
|
33529
|
+
asset_identifier: string;
|
|
33530
|
+
/** @description The NFT instance identifier, as a Clarity value */
|
|
33531
|
+
value: {
|
|
33532
|
+
hex: string;
|
|
33533
|
+
repr: string;
|
|
33534
|
+
};
|
|
33535
|
+
}[];
|
|
33536
|
+
};
|
|
33537
|
+
};
|
|
33538
|
+
};
|
|
33539
|
+
/** @description Default Response */
|
|
33540
|
+
"4XX": {
|
|
33541
|
+
headers: {
|
|
33542
|
+
[name: string]: unknown;
|
|
33543
|
+
};
|
|
33544
|
+
content: {
|
|
33545
|
+
"application/json": {
|
|
33546
|
+
error: string;
|
|
33547
|
+
message?: string;
|
|
33548
|
+
} & {
|
|
33549
|
+
[key: string]: unknown;
|
|
33550
|
+
};
|
|
33551
|
+
};
|
|
33552
|
+
};
|
|
33553
|
+
};
|
|
33554
|
+
};
|
|
33555
|
+
get_bonds: {
|
|
33556
|
+
parameters: {
|
|
33557
|
+
query?: {
|
|
32874
33558
|
/** @description Number of results per page */
|
|
32875
33559
|
limit?: number;
|
|
32876
33560
|
/** @description Cursor for paginating bonds. Format: bond_index */
|
|
@@ -33339,6 +34023,135 @@ export interface operations {
|
|
|
33339
34023
|
};
|
|
33340
34024
|
};
|
|
33341
34025
|
};
|
|
34026
|
+
get_staking_signers: {
|
|
34027
|
+
parameters: {
|
|
34028
|
+
query?: {
|
|
34029
|
+
/** @description Number of results per page */
|
|
34030
|
+
limit?: number;
|
|
34031
|
+
/** @description Cursor for paginating staking signers (sorted by signer). Format: signer principal */
|
|
34032
|
+
cursor?: string;
|
|
34033
|
+
};
|
|
34034
|
+
header?: never;
|
|
34035
|
+
path?: never;
|
|
34036
|
+
cookie?: never;
|
|
34037
|
+
};
|
|
34038
|
+
requestBody?: never;
|
|
34039
|
+
responses: {
|
|
34040
|
+
/** @description Default Response */
|
|
34041
|
+
200: {
|
|
34042
|
+
headers: {
|
|
34043
|
+
[name: string]: unknown;
|
|
34044
|
+
};
|
|
34045
|
+
content: {
|
|
34046
|
+
"application/json": {
|
|
34047
|
+
/** @example 1 */
|
|
34048
|
+
total: number;
|
|
34049
|
+
/**
|
|
34050
|
+
* @description Number of results per page
|
|
34051
|
+
* @default 100
|
|
34052
|
+
*/
|
|
34053
|
+
limit: number;
|
|
34054
|
+
cursor: {
|
|
34055
|
+
next: string | null;
|
|
34056
|
+
previous: string | null;
|
|
34057
|
+
current: string | null;
|
|
34058
|
+
};
|
|
34059
|
+
results: {
|
|
34060
|
+
signer: string;
|
|
34061
|
+
/**
|
|
34062
|
+
* @description The registered compressed secp256k1 public key, as a `0x`-prefixed hex string
|
|
34063
|
+
* @example 0x03a0f9e1...
|
|
34064
|
+
*/
|
|
34065
|
+
signer_key: string;
|
|
34066
|
+
}[];
|
|
34067
|
+
};
|
|
34068
|
+
};
|
|
34069
|
+
};
|
|
34070
|
+
/** @description Default Response */
|
|
34071
|
+
"4XX": {
|
|
34072
|
+
headers: {
|
|
34073
|
+
[name: string]: unknown;
|
|
34074
|
+
};
|
|
34075
|
+
content: {
|
|
34076
|
+
"application/json": {
|
|
34077
|
+
error: string;
|
|
34078
|
+
message?: string;
|
|
34079
|
+
} & {
|
|
34080
|
+
[key: string]: unknown;
|
|
34081
|
+
};
|
|
34082
|
+
};
|
|
34083
|
+
};
|
|
34084
|
+
};
|
|
34085
|
+
};
|
|
34086
|
+
get_staking_signer: {
|
|
34087
|
+
parameters: {
|
|
34088
|
+
query?: never;
|
|
34089
|
+
header?: never;
|
|
34090
|
+
path: {
|
|
34091
|
+
principal: string;
|
|
34092
|
+
};
|
|
34093
|
+
cookie?: never;
|
|
34094
|
+
};
|
|
34095
|
+
requestBody?: never;
|
|
34096
|
+
responses: {
|
|
34097
|
+
/** @description Default Response */
|
|
34098
|
+
200: {
|
|
34099
|
+
headers: {
|
|
34100
|
+
[name: string]: unknown;
|
|
34101
|
+
};
|
|
34102
|
+
content: {
|
|
34103
|
+
"application/json": {
|
|
34104
|
+
signer: string;
|
|
34105
|
+
/**
|
|
34106
|
+
* @description The registered compressed secp256k1 public key, as a `0x`-prefixed hex string
|
|
34107
|
+
* @example 0x03a0f9e1...
|
|
34108
|
+
*/
|
|
34109
|
+
signer_key: string;
|
|
34110
|
+
transaction: {
|
|
34111
|
+
/**
|
|
34112
|
+
* Transaction ID
|
|
34113
|
+
* @description Transaction ID
|
|
34114
|
+
* @example 0xf6bd5f4a7b26184a3466340b2e99fd003b4962c0e382a7e4b6a13df3dd7a91c6
|
|
34115
|
+
*/
|
|
34116
|
+
tx_id: string;
|
|
34117
|
+
block: {
|
|
34118
|
+
/** @description Height of the block this transactions was associated with */
|
|
34119
|
+
height: number;
|
|
34120
|
+
/** @description Hash of the blocked this transactions was associated with */
|
|
34121
|
+
hash: string;
|
|
34122
|
+
/** @description Hash of the index block this transactions was associated with */
|
|
34123
|
+
index_hash: string;
|
|
34124
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34125
|
+
time: number;
|
|
34126
|
+
/** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */
|
|
34127
|
+
tx_index: number;
|
|
34128
|
+
};
|
|
34129
|
+
bitcoin_block: {
|
|
34130
|
+
/** @description Height of the anchor burn block. */
|
|
34131
|
+
height: number;
|
|
34132
|
+
/** @description Unix timestamp (in seconds) indicating when this block was mined. */
|
|
34133
|
+
time: number;
|
|
34134
|
+
};
|
|
34135
|
+
};
|
|
34136
|
+
};
|
|
34137
|
+
};
|
|
34138
|
+
};
|
|
34139
|
+
/** @description Default Response */
|
|
34140
|
+
"4XX": {
|
|
34141
|
+
headers: {
|
|
34142
|
+
[name: string]: unknown;
|
|
34143
|
+
};
|
|
34144
|
+
content: {
|
|
34145
|
+
"application/json": {
|
|
34146
|
+
error: string;
|
|
34147
|
+
message?: string;
|
|
34148
|
+
} & {
|
|
34149
|
+
[key: string]: unknown;
|
|
34150
|
+
};
|
|
34151
|
+
};
|
|
34152
|
+
};
|
|
34153
|
+
};
|
|
34154
|
+
};
|
|
33342
34155
|
get_transactions: {
|
|
33343
34156
|
parameters: {
|
|
33344
34157
|
query?: {
|