@stacks/blockchain-api-client 9.0.0-pox5.7 → 9.0.0-pox5.8
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 +337 -2
- package/package.json +1 -1
- package/src/generated/schema.d.ts +337 -2
|
@@ -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;
|
|
@@ -1761,7 +1788,67 @@ export interface paths {
|
|
|
1761
1788
|
* Get principal staking balances
|
|
1762
1789
|
* @description Get a principal's staking balances: its bond positions (staked amounts and accrued rewards) across all bonds it is enrolled in
|
|
1763
1790
|
*/
|
|
1764
|
-
get: operations["
|
|
1791
|
+
get: operations["get_principal_balances_staking"];
|
|
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}/balances/stx": {
|
|
1801
|
+
parameters: {
|
|
1802
|
+
query?: never;
|
|
1803
|
+
header?: never;
|
|
1804
|
+
path?: never;
|
|
1805
|
+
cookie?: never;
|
|
1806
|
+
};
|
|
1807
|
+
/**
|
|
1808
|
+
* Get principal STX balance
|
|
1809
|
+
* @description Get a principal's STX balance: its total and spendable (available) balance, any locked STX, and the projected balance from pending mempool transactions.
|
|
1810
|
+
*/
|
|
1811
|
+
get: operations["get_principal_balances_stx"];
|
|
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}/balances/ft": {
|
|
1821
|
+
parameters: {
|
|
1822
|
+
query?: never;
|
|
1823
|
+
header?: never;
|
|
1824
|
+
path?: never;
|
|
1825
|
+
cookie?: never;
|
|
1826
|
+
};
|
|
1827
|
+
/**
|
|
1828
|
+
* Get principal FT balances
|
|
1829
|
+
* @description Get a principal's fungible-token balances, sorted by balance descending.
|
|
1830
|
+
*/
|
|
1831
|
+
get: operations["get_principal_balances_ft"];
|
|
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}/balances/nft": {
|
|
1841
|
+
parameters: {
|
|
1842
|
+
query?: never;
|
|
1843
|
+
header?: never;
|
|
1844
|
+
path?: never;
|
|
1845
|
+
cookie?: never;
|
|
1846
|
+
};
|
|
1847
|
+
/**
|
|
1848
|
+
* Get principal NFT balances
|
|
1849
|
+
* @description Get the non-fungible token instances currently owned by a principal, ordered by asset identifier and value.
|
|
1850
|
+
*/
|
|
1851
|
+
get: operations["get_principal_balances_nft"];
|
|
1765
1852
|
put?: never;
|
|
1766
1853
|
post?: never;
|
|
1767
1854
|
delete?: never;
|
|
@@ -27703,6 +27790,59 @@ export interface operations {
|
|
|
27703
27790
|
};
|
|
27704
27791
|
};
|
|
27705
27792
|
};
|
|
27793
|
+
run_faucet_sbtc: {
|
|
27794
|
+
parameters: {
|
|
27795
|
+
query?: {
|
|
27796
|
+
/**
|
|
27797
|
+
* @description A valid testnet STX address
|
|
27798
|
+
* @example ST3M7N9Q9HDRM7RVP1Q26P0EE69358PZZAZD7KMXQ
|
|
27799
|
+
*/
|
|
27800
|
+
address?: string;
|
|
27801
|
+
};
|
|
27802
|
+
header?: never;
|
|
27803
|
+
path?: never;
|
|
27804
|
+
cookie?: never;
|
|
27805
|
+
};
|
|
27806
|
+
requestBody?: never;
|
|
27807
|
+
responses: {
|
|
27808
|
+
/** @description POST request that initiates a transfer of tokens to a specified testnet address */
|
|
27809
|
+
200: {
|
|
27810
|
+
headers: {
|
|
27811
|
+
[name: string]: unknown;
|
|
27812
|
+
};
|
|
27813
|
+
content: {
|
|
27814
|
+
"application/json": {
|
|
27815
|
+
/**
|
|
27816
|
+
* @description Indicates if the faucet call was successful
|
|
27817
|
+
* @enum {boolean}
|
|
27818
|
+
*/
|
|
27819
|
+
success: true;
|
|
27820
|
+
/** @description The transaction ID for the faucet call */
|
|
27821
|
+
txId: string;
|
|
27822
|
+
/** @description Raw transaction in hex string representation */
|
|
27823
|
+
txRaw: string;
|
|
27824
|
+
};
|
|
27825
|
+
};
|
|
27826
|
+
};
|
|
27827
|
+
/** @description Default Response */
|
|
27828
|
+
"4XX": {
|
|
27829
|
+
headers: {
|
|
27830
|
+
[name: string]: unknown;
|
|
27831
|
+
};
|
|
27832
|
+
content: {
|
|
27833
|
+
"application/json": {
|
|
27834
|
+
/**
|
|
27835
|
+
* @description Indicates if the faucet call was successful
|
|
27836
|
+
* @enum {boolean}
|
|
27837
|
+
*/
|
|
27838
|
+
success: false;
|
|
27839
|
+
/** @description Error message */
|
|
27840
|
+
error: string;
|
|
27841
|
+
};
|
|
27842
|
+
};
|
|
27843
|
+
};
|
|
27844
|
+
};
|
|
27845
|
+
};
|
|
27706
27846
|
get_blocks: {
|
|
27707
27847
|
parameters: {
|
|
27708
27848
|
query?: {
|
|
@@ -32798,7 +32938,7 @@ export interface operations {
|
|
|
32798
32938
|
};
|
|
32799
32939
|
};
|
|
32800
32940
|
};
|
|
32801
|
-
|
|
32941
|
+
get_principal_balances_staking: {
|
|
32802
32942
|
parameters: {
|
|
32803
32943
|
query?: never;
|
|
32804
32944
|
header?: never;
|
|
@@ -32868,6 +33008,201 @@ export interface operations {
|
|
|
32868
33008
|
};
|
|
32869
33009
|
};
|
|
32870
33010
|
};
|
|
33011
|
+
get_principal_balances_stx: {
|
|
33012
|
+
parameters: {
|
|
33013
|
+
query?: never;
|
|
33014
|
+
header?: never;
|
|
33015
|
+
path: {
|
|
33016
|
+
principal: string;
|
|
33017
|
+
};
|
|
33018
|
+
cookie?: never;
|
|
33019
|
+
};
|
|
33020
|
+
requestBody?: never;
|
|
33021
|
+
responses: {
|
|
33022
|
+
/** @description Default Response */
|
|
33023
|
+
200: {
|
|
33024
|
+
headers: {
|
|
33025
|
+
[name: string]: unknown;
|
|
33026
|
+
};
|
|
33027
|
+
content: {
|
|
33028
|
+
"application/json": {
|
|
33029
|
+
/** @description Total micro-STX balance (available plus locked) */
|
|
33030
|
+
balance: string;
|
|
33031
|
+
/** @description Spendable micro-STX balance (balance minus locked) */
|
|
33032
|
+
available: string;
|
|
33033
|
+
locked: {
|
|
33034
|
+
/** @description The amount of locked micro-STX */
|
|
33035
|
+
amount: string;
|
|
33036
|
+
/** @description The PoX contract version that created the lock (e.g. 4, 5) */
|
|
33037
|
+
pox_version: number;
|
|
33038
|
+
/**
|
|
33039
|
+
* Transaction ID
|
|
33040
|
+
* @description Transaction ID
|
|
33041
|
+
*/
|
|
33042
|
+
lock_tx_id: string;
|
|
33043
|
+
/** @description The Stacks block height at which the lock was created */
|
|
33044
|
+
stacks_lock_height: number;
|
|
33045
|
+
/** @description The burnchain block height at which the lock was created */
|
|
33046
|
+
burn_lock_height: number;
|
|
33047
|
+
/** @description The burnchain block height at which the locked STX unlocks */
|
|
33048
|
+
burn_unlock_height: number;
|
|
33049
|
+
} | null;
|
|
33050
|
+
mempool: {
|
|
33051
|
+
/** @description Estimated spendable micro-STX balance once pending mempool txs confirm */
|
|
33052
|
+
estimated_balance: string;
|
|
33053
|
+
/** @description Pending inbound micro-STX from the mempool */
|
|
33054
|
+
inbound: string;
|
|
33055
|
+
/** @description Pending outbound micro-STX from the mempool (transfers plus fees) */
|
|
33056
|
+
outbound: string;
|
|
33057
|
+
} | null;
|
|
33058
|
+
};
|
|
33059
|
+
};
|
|
33060
|
+
};
|
|
33061
|
+
/** @description Default Response */
|
|
33062
|
+
"4XX": {
|
|
33063
|
+
headers: {
|
|
33064
|
+
[name: string]: unknown;
|
|
33065
|
+
};
|
|
33066
|
+
content: {
|
|
33067
|
+
"application/json": {
|
|
33068
|
+
error: string;
|
|
33069
|
+
message?: string;
|
|
33070
|
+
} & {
|
|
33071
|
+
[key: string]: unknown;
|
|
33072
|
+
};
|
|
33073
|
+
};
|
|
33074
|
+
};
|
|
33075
|
+
};
|
|
33076
|
+
};
|
|
33077
|
+
get_principal_balances_ft: {
|
|
33078
|
+
parameters: {
|
|
33079
|
+
query?: {
|
|
33080
|
+
/** @description Number of results per page */
|
|
33081
|
+
limit?: number;
|
|
33082
|
+
/** @description Cursor for paginating FT balances (sorted by balance, descending). Format: balance:asset_identifier */
|
|
33083
|
+
cursor?: string;
|
|
33084
|
+
};
|
|
33085
|
+
header?: never;
|
|
33086
|
+
path: {
|
|
33087
|
+
principal: string;
|
|
33088
|
+
};
|
|
33089
|
+
cookie?: never;
|
|
33090
|
+
};
|
|
33091
|
+
requestBody?: never;
|
|
33092
|
+
responses: {
|
|
33093
|
+
/** @description Default Response */
|
|
33094
|
+
200: {
|
|
33095
|
+
headers: {
|
|
33096
|
+
[name: string]: unknown;
|
|
33097
|
+
};
|
|
33098
|
+
content: {
|
|
33099
|
+
"application/json": {
|
|
33100
|
+
/** @example 1 */
|
|
33101
|
+
total: number;
|
|
33102
|
+
/**
|
|
33103
|
+
* @description Number of results per page
|
|
33104
|
+
* @default 100
|
|
33105
|
+
*/
|
|
33106
|
+
limit: number;
|
|
33107
|
+
cursor: {
|
|
33108
|
+
next: string | null;
|
|
33109
|
+
previous: string | null;
|
|
33110
|
+
current: string | null;
|
|
33111
|
+
};
|
|
33112
|
+
results: {
|
|
33113
|
+
/**
|
|
33114
|
+
* @description Fungible token asset identifier
|
|
33115
|
+
* @example SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token::sbtc-token
|
|
33116
|
+
*/
|
|
33117
|
+
asset_identifier: string;
|
|
33118
|
+
/** @description The principal's balance of this token, as a string-quoted integer in base units */
|
|
33119
|
+
balance: string;
|
|
33120
|
+
}[];
|
|
33121
|
+
};
|
|
33122
|
+
};
|
|
33123
|
+
};
|
|
33124
|
+
/** @description Default Response */
|
|
33125
|
+
"4XX": {
|
|
33126
|
+
headers: {
|
|
33127
|
+
[name: string]: unknown;
|
|
33128
|
+
};
|
|
33129
|
+
content: {
|
|
33130
|
+
"application/json": {
|
|
33131
|
+
error: string;
|
|
33132
|
+
message?: string;
|
|
33133
|
+
} & {
|
|
33134
|
+
[key: string]: unknown;
|
|
33135
|
+
};
|
|
33136
|
+
};
|
|
33137
|
+
};
|
|
33138
|
+
};
|
|
33139
|
+
};
|
|
33140
|
+
get_principal_balances_nft: {
|
|
33141
|
+
parameters: {
|
|
33142
|
+
query?: {
|
|
33143
|
+
/** @description Number of results per page */
|
|
33144
|
+
limit?: number;
|
|
33145
|
+
/** @description Cursor for paginating NFT balances (sorted by asset identifier then value). Format: value:asset_identifier */
|
|
33146
|
+
cursor?: string;
|
|
33147
|
+
};
|
|
33148
|
+
header?: never;
|
|
33149
|
+
path: {
|
|
33150
|
+
principal: string;
|
|
33151
|
+
};
|
|
33152
|
+
cookie?: never;
|
|
33153
|
+
};
|
|
33154
|
+
requestBody?: never;
|
|
33155
|
+
responses: {
|
|
33156
|
+
/** @description Default Response */
|
|
33157
|
+
200: {
|
|
33158
|
+
headers: {
|
|
33159
|
+
[name: string]: unknown;
|
|
33160
|
+
};
|
|
33161
|
+
content: {
|
|
33162
|
+
"application/json": {
|
|
33163
|
+
/** @example 1 */
|
|
33164
|
+
total: number;
|
|
33165
|
+
/**
|
|
33166
|
+
* @description Number of results per page
|
|
33167
|
+
* @default 100
|
|
33168
|
+
*/
|
|
33169
|
+
limit: number;
|
|
33170
|
+
cursor: {
|
|
33171
|
+
next: string | null;
|
|
33172
|
+
previous: string | null;
|
|
33173
|
+
current: string | null;
|
|
33174
|
+
};
|
|
33175
|
+
results: {
|
|
33176
|
+
/**
|
|
33177
|
+
* @description Non-fungible token asset identifier
|
|
33178
|
+
* @example SP2X0TZ59D5SZ8ACQ6YMCHHNR2ZN51Z32E2CJ173.the-explorer-guild::The-Explorer-Guild
|
|
33179
|
+
*/
|
|
33180
|
+
asset_identifier: string;
|
|
33181
|
+
/** @description The NFT instance identifier, as a Clarity value */
|
|
33182
|
+
value: {
|
|
33183
|
+
hex: string;
|
|
33184
|
+
repr: string;
|
|
33185
|
+
};
|
|
33186
|
+
}[];
|
|
33187
|
+
};
|
|
33188
|
+
};
|
|
33189
|
+
};
|
|
33190
|
+
/** @description Default Response */
|
|
33191
|
+
"4XX": {
|
|
33192
|
+
headers: {
|
|
33193
|
+
[name: string]: unknown;
|
|
33194
|
+
};
|
|
33195
|
+
content: {
|
|
33196
|
+
"application/json": {
|
|
33197
|
+
error: string;
|
|
33198
|
+
message?: string;
|
|
33199
|
+
} & {
|
|
33200
|
+
[key: string]: unknown;
|
|
33201
|
+
};
|
|
33202
|
+
};
|
|
33203
|
+
};
|
|
33204
|
+
};
|
|
33205
|
+
};
|
|
32871
33206
|
get_bonds: {
|
|
32872
33207
|
parameters: {
|
|
32873
33208
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacks/blockchain-api-client",
|
|
3
|
-
"version": "9.0.0-pox5.
|
|
3
|
+
"version": "9.0.0-pox5.8",
|
|
4
4
|
"access": "public",
|
|
5
5
|
"description": "Client for the Stacks Blockchain API",
|
|
6
6
|
"homepage": "https://github.com/hirosystems/stacks-blockchain-api/tree/master/client#readme",
|
|
@@ -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;
|
|
@@ -1761,7 +1788,67 @@ export interface paths {
|
|
|
1761
1788
|
* Get principal staking balances
|
|
1762
1789
|
* @description Get a principal's staking balances: its bond positions (staked amounts and accrued rewards) across all bonds it is enrolled in
|
|
1763
1790
|
*/
|
|
1764
|
-
get: operations["
|
|
1791
|
+
get: operations["get_principal_balances_staking"];
|
|
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}/balances/stx": {
|
|
1801
|
+
parameters: {
|
|
1802
|
+
query?: never;
|
|
1803
|
+
header?: never;
|
|
1804
|
+
path?: never;
|
|
1805
|
+
cookie?: never;
|
|
1806
|
+
};
|
|
1807
|
+
/**
|
|
1808
|
+
* Get principal STX balance
|
|
1809
|
+
* @description Get a principal's STX balance: its total and spendable (available) balance, any locked STX, and the projected balance from pending mempool transactions.
|
|
1810
|
+
*/
|
|
1811
|
+
get: operations["get_principal_balances_stx"];
|
|
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}/balances/ft": {
|
|
1821
|
+
parameters: {
|
|
1822
|
+
query?: never;
|
|
1823
|
+
header?: never;
|
|
1824
|
+
path?: never;
|
|
1825
|
+
cookie?: never;
|
|
1826
|
+
};
|
|
1827
|
+
/**
|
|
1828
|
+
* Get principal FT balances
|
|
1829
|
+
* @description Get a principal's fungible-token balances, sorted by balance descending.
|
|
1830
|
+
*/
|
|
1831
|
+
get: operations["get_principal_balances_ft"];
|
|
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}/balances/nft": {
|
|
1841
|
+
parameters: {
|
|
1842
|
+
query?: never;
|
|
1843
|
+
header?: never;
|
|
1844
|
+
path?: never;
|
|
1845
|
+
cookie?: never;
|
|
1846
|
+
};
|
|
1847
|
+
/**
|
|
1848
|
+
* Get principal NFT balances
|
|
1849
|
+
* @description Get the non-fungible token instances currently owned by a principal, ordered by asset identifier and value.
|
|
1850
|
+
*/
|
|
1851
|
+
get: operations["get_principal_balances_nft"];
|
|
1765
1852
|
put?: never;
|
|
1766
1853
|
post?: never;
|
|
1767
1854
|
delete?: never;
|
|
@@ -27703,6 +27790,59 @@ export interface operations {
|
|
|
27703
27790
|
};
|
|
27704
27791
|
};
|
|
27705
27792
|
};
|
|
27793
|
+
run_faucet_sbtc: {
|
|
27794
|
+
parameters: {
|
|
27795
|
+
query?: {
|
|
27796
|
+
/**
|
|
27797
|
+
* @description A valid testnet STX address
|
|
27798
|
+
* @example ST3M7N9Q9HDRM7RVP1Q26P0EE69358PZZAZD7KMXQ
|
|
27799
|
+
*/
|
|
27800
|
+
address?: string;
|
|
27801
|
+
};
|
|
27802
|
+
header?: never;
|
|
27803
|
+
path?: never;
|
|
27804
|
+
cookie?: never;
|
|
27805
|
+
};
|
|
27806
|
+
requestBody?: never;
|
|
27807
|
+
responses: {
|
|
27808
|
+
/** @description POST request that initiates a transfer of tokens to a specified testnet address */
|
|
27809
|
+
200: {
|
|
27810
|
+
headers: {
|
|
27811
|
+
[name: string]: unknown;
|
|
27812
|
+
};
|
|
27813
|
+
content: {
|
|
27814
|
+
"application/json": {
|
|
27815
|
+
/**
|
|
27816
|
+
* @description Indicates if the faucet call was successful
|
|
27817
|
+
* @enum {boolean}
|
|
27818
|
+
*/
|
|
27819
|
+
success: true;
|
|
27820
|
+
/** @description The transaction ID for the faucet call */
|
|
27821
|
+
txId: string;
|
|
27822
|
+
/** @description Raw transaction in hex string representation */
|
|
27823
|
+
txRaw: string;
|
|
27824
|
+
};
|
|
27825
|
+
};
|
|
27826
|
+
};
|
|
27827
|
+
/** @description Default Response */
|
|
27828
|
+
"4XX": {
|
|
27829
|
+
headers: {
|
|
27830
|
+
[name: string]: unknown;
|
|
27831
|
+
};
|
|
27832
|
+
content: {
|
|
27833
|
+
"application/json": {
|
|
27834
|
+
/**
|
|
27835
|
+
* @description Indicates if the faucet call was successful
|
|
27836
|
+
* @enum {boolean}
|
|
27837
|
+
*/
|
|
27838
|
+
success: false;
|
|
27839
|
+
/** @description Error message */
|
|
27840
|
+
error: string;
|
|
27841
|
+
};
|
|
27842
|
+
};
|
|
27843
|
+
};
|
|
27844
|
+
};
|
|
27845
|
+
};
|
|
27706
27846
|
get_blocks: {
|
|
27707
27847
|
parameters: {
|
|
27708
27848
|
query?: {
|
|
@@ -32798,7 +32938,7 @@ export interface operations {
|
|
|
32798
32938
|
};
|
|
32799
32939
|
};
|
|
32800
32940
|
};
|
|
32801
|
-
|
|
32941
|
+
get_principal_balances_staking: {
|
|
32802
32942
|
parameters: {
|
|
32803
32943
|
query?: never;
|
|
32804
32944
|
header?: never;
|
|
@@ -32868,6 +33008,201 @@ export interface operations {
|
|
|
32868
33008
|
};
|
|
32869
33009
|
};
|
|
32870
33010
|
};
|
|
33011
|
+
get_principal_balances_stx: {
|
|
33012
|
+
parameters: {
|
|
33013
|
+
query?: never;
|
|
33014
|
+
header?: never;
|
|
33015
|
+
path: {
|
|
33016
|
+
principal: string;
|
|
33017
|
+
};
|
|
33018
|
+
cookie?: never;
|
|
33019
|
+
};
|
|
33020
|
+
requestBody?: never;
|
|
33021
|
+
responses: {
|
|
33022
|
+
/** @description Default Response */
|
|
33023
|
+
200: {
|
|
33024
|
+
headers: {
|
|
33025
|
+
[name: string]: unknown;
|
|
33026
|
+
};
|
|
33027
|
+
content: {
|
|
33028
|
+
"application/json": {
|
|
33029
|
+
/** @description Total micro-STX balance (available plus locked) */
|
|
33030
|
+
balance: string;
|
|
33031
|
+
/** @description Spendable micro-STX balance (balance minus locked) */
|
|
33032
|
+
available: string;
|
|
33033
|
+
locked: {
|
|
33034
|
+
/** @description The amount of locked micro-STX */
|
|
33035
|
+
amount: string;
|
|
33036
|
+
/** @description The PoX contract version that created the lock (e.g. 4, 5) */
|
|
33037
|
+
pox_version: number;
|
|
33038
|
+
/**
|
|
33039
|
+
* Transaction ID
|
|
33040
|
+
* @description Transaction ID
|
|
33041
|
+
*/
|
|
33042
|
+
lock_tx_id: string;
|
|
33043
|
+
/** @description The Stacks block height at which the lock was created */
|
|
33044
|
+
stacks_lock_height: number;
|
|
33045
|
+
/** @description The burnchain block height at which the lock was created */
|
|
33046
|
+
burn_lock_height: number;
|
|
33047
|
+
/** @description The burnchain block height at which the locked STX unlocks */
|
|
33048
|
+
burn_unlock_height: number;
|
|
33049
|
+
} | null;
|
|
33050
|
+
mempool: {
|
|
33051
|
+
/** @description Estimated spendable micro-STX balance once pending mempool txs confirm */
|
|
33052
|
+
estimated_balance: string;
|
|
33053
|
+
/** @description Pending inbound micro-STX from the mempool */
|
|
33054
|
+
inbound: string;
|
|
33055
|
+
/** @description Pending outbound micro-STX from the mempool (transfers plus fees) */
|
|
33056
|
+
outbound: string;
|
|
33057
|
+
} | null;
|
|
33058
|
+
};
|
|
33059
|
+
};
|
|
33060
|
+
};
|
|
33061
|
+
/** @description Default Response */
|
|
33062
|
+
"4XX": {
|
|
33063
|
+
headers: {
|
|
33064
|
+
[name: string]: unknown;
|
|
33065
|
+
};
|
|
33066
|
+
content: {
|
|
33067
|
+
"application/json": {
|
|
33068
|
+
error: string;
|
|
33069
|
+
message?: string;
|
|
33070
|
+
} & {
|
|
33071
|
+
[key: string]: unknown;
|
|
33072
|
+
};
|
|
33073
|
+
};
|
|
33074
|
+
};
|
|
33075
|
+
};
|
|
33076
|
+
};
|
|
33077
|
+
get_principal_balances_ft: {
|
|
33078
|
+
parameters: {
|
|
33079
|
+
query?: {
|
|
33080
|
+
/** @description Number of results per page */
|
|
33081
|
+
limit?: number;
|
|
33082
|
+
/** @description Cursor for paginating FT balances (sorted by balance, descending). Format: balance:asset_identifier */
|
|
33083
|
+
cursor?: string;
|
|
33084
|
+
};
|
|
33085
|
+
header?: never;
|
|
33086
|
+
path: {
|
|
33087
|
+
principal: string;
|
|
33088
|
+
};
|
|
33089
|
+
cookie?: never;
|
|
33090
|
+
};
|
|
33091
|
+
requestBody?: never;
|
|
33092
|
+
responses: {
|
|
33093
|
+
/** @description Default Response */
|
|
33094
|
+
200: {
|
|
33095
|
+
headers: {
|
|
33096
|
+
[name: string]: unknown;
|
|
33097
|
+
};
|
|
33098
|
+
content: {
|
|
33099
|
+
"application/json": {
|
|
33100
|
+
/** @example 1 */
|
|
33101
|
+
total: number;
|
|
33102
|
+
/**
|
|
33103
|
+
* @description Number of results per page
|
|
33104
|
+
* @default 100
|
|
33105
|
+
*/
|
|
33106
|
+
limit: number;
|
|
33107
|
+
cursor: {
|
|
33108
|
+
next: string | null;
|
|
33109
|
+
previous: string | null;
|
|
33110
|
+
current: string | null;
|
|
33111
|
+
};
|
|
33112
|
+
results: {
|
|
33113
|
+
/**
|
|
33114
|
+
* @description Fungible token asset identifier
|
|
33115
|
+
* @example SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token::sbtc-token
|
|
33116
|
+
*/
|
|
33117
|
+
asset_identifier: string;
|
|
33118
|
+
/** @description The principal's balance of this token, as a string-quoted integer in base units */
|
|
33119
|
+
balance: string;
|
|
33120
|
+
}[];
|
|
33121
|
+
};
|
|
33122
|
+
};
|
|
33123
|
+
};
|
|
33124
|
+
/** @description Default Response */
|
|
33125
|
+
"4XX": {
|
|
33126
|
+
headers: {
|
|
33127
|
+
[name: string]: unknown;
|
|
33128
|
+
};
|
|
33129
|
+
content: {
|
|
33130
|
+
"application/json": {
|
|
33131
|
+
error: string;
|
|
33132
|
+
message?: string;
|
|
33133
|
+
} & {
|
|
33134
|
+
[key: string]: unknown;
|
|
33135
|
+
};
|
|
33136
|
+
};
|
|
33137
|
+
};
|
|
33138
|
+
};
|
|
33139
|
+
};
|
|
33140
|
+
get_principal_balances_nft: {
|
|
33141
|
+
parameters: {
|
|
33142
|
+
query?: {
|
|
33143
|
+
/** @description Number of results per page */
|
|
33144
|
+
limit?: number;
|
|
33145
|
+
/** @description Cursor for paginating NFT balances (sorted by asset identifier then value). Format: value:asset_identifier */
|
|
33146
|
+
cursor?: string;
|
|
33147
|
+
};
|
|
33148
|
+
header?: never;
|
|
33149
|
+
path: {
|
|
33150
|
+
principal: string;
|
|
33151
|
+
};
|
|
33152
|
+
cookie?: never;
|
|
33153
|
+
};
|
|
33154
|
+
requestBody?: never;
|
|
33155
|
+
responses: {
|
|
33156
|
+
/** @description Default Response */
|
|
33157
|
+
200: {
|
|
33158
|
+
headers: {
|
|
33159
|
+
[name: string]: unknown;
|
|
33160
|
+
};
|
|
33161
|
+
content: {
|
|
33162
|
+
"application/json": {
|
|
33163
|
+
/** @example 1 */
|
|
33164
|
+
total: number;
|
|
33165
|
+
/**
|
|
33166
|
+
* @description Number of results per page
|
|
33167
|
+
* @default 100
|
|
33168
|
+
*/
|
|
33169
|
+
limit: number;
|
|
33170
|
+
cursor: {
|
|
33171
|
+
next: string | null;
|
|
33172
|
+
previous: string | null;
|
|
33173
|
+
current: string | null;
|
|
33174
|
+
};
|
|
33175
|
+
results: {
|
|
33176
|
+
/**
|
|
33177
|
+
* @description Non-fungible token asset identifier
|
|
33178
|
+
* @example SP2X0TZ59D5SZ8ACQ6YMCHHNR2ZN51Z32E2CJ173.the-explorer-guild::The-Explorer-Guild
|
|
33179
|
+
*/
|
|
33180
|
+
asset_identifier: string;
|
|
33181
|
+
/** @description The NFT instance identifier, as a Clarity value */
|
|
33182
|
+
value: {
|
|
33183
|
+
hex: string;
|
|
33184
|
+
repr: string;
|
|
33185
|
+
};
|
|
33186
|
+
}[];
|
|
33187
|
+
};
|
|
33188
|
+
};
|
|
33189
|
+
};
|
|
33190
|
+
/** @description Default Response */
|
|
33191
|
+
"4XX": {
|
|
33192
|
+
headers: {
|
|
33193
|
+
[name: string]: unknown;
|
|
33194
|
+
};
|
|
33195
|
+
content: {
|
|
33196
|
+
"application/json": {
|
|
33197
|
+
error: string;
|
|
33198
|
+
message?: string;
|
|
33199
|
+
} & {
|
|
33200
|
+
[key: string]: unknown;
|
|
33201
|
+
};
|
|
33202
|
+
};
|
|
33203
|
+
};
|
|
33204
|
+
};
|
|
33205
|
+
};
|
|
32871
33206
|
get_bonds: {
|
|
32872
33207
|
parameters: {
|
|
32873
33208
|
query?: {
|