@alephium/web3 1.11.5 → 1.12.0-beta.0
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/dist/alephium-web3.min.js +1 -1
- package/dist/alephium-web3.min.js.map +1 -1
- package/dist/src/address/address.d.ts +11 -1
- package/dist/src/address/address.js +117 -11
- package/dist/src/api/api-alephium.d.ts +101 -4
- package/dist/src/api/api-alephium.js +51 -1
- package/dist/src/api/node-provider.d.ts +2 -0
- package/dist/src/api/node-provider.js +1 -0
- package/dist/src/api/types.d.ts +1 -1
- package/dist/src/api/types.js +10 -5
- package/dist/src/codec/lockup-script-codec.d.ts +11 -2
- package/dist/src/codec/lockup-script-codec.js +8 -1
- package/dist/src/codec/unlock-script-codec.d.ts +11 -3
- package/dist/src/codec/unlock-script-codec.js +14 -4
- package/dist/src/contract/contract.d.ts +3 -3
- package/dist/src/contract/contract.js +12 -5
- package/dist/src/contract/ralph.js +2 -1
- package/dist/src/signer/signer.js +1 -1
- package/dist/src/signer/tx-builder.d.ts +7 -1
- package/dist/src/signer/tx-builder.js +67 -0
- package/dist/src/signer/types.d.ts +29 -2
- package/dist/src/signer/types.js +3 -0
- package/dist/src/utils/sign.js +2 -2
- package/dist/src/utils/webcrypto.d.ts +3 -1
- package/package.json +3 -3
- package/src/address/address.ts +120 -12
- package/src/api/api-alephium.ts +474 -144
- package/src/api/node-provider.ts +3 -0
- package/src/api/types.ts +10 -5
- package/src/codec/lockup-script-codec.ts +19 -2
- package/src/codec/unlock-script-codec.ts +23 -8
- package/src/contract/contract.ts +33 -10
- package/src/contract/ralph.ts +5 -2
- package/src/signer/signer.ts +1 -1
- package/src/signer/tx-builder.ts +88 -1
- package/src/signer/types.ts +36 -2
- package/src/utils/sign.ts +2 -2
package/src/api/api-alephium.ts
CHANGED
|
@@ -9,6 +9,15 @@
|
|
|
9
9
|
* ---------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/** AddressAssetState */
|
|
13
|
+
export interface AddressAssetState {
|
|
14
|
+
/** @format address */
|
|
15
|
+
address: string
|
|
16
|
+
/** @format uint256 */
|
|
17
|
+
attoAlphAmount: string
|
|
18
|
+
tokens?: Token[]
|
|
19
|
+
}
|
|
20
|
+
|
|
12
21
|
/** AddressBalance */
|
|
13
22
|
export interface AddressBalance {
|
|
14
23
|
/** @format address */
|
|
@@ -308,7 +317,63 @@ export interface BuildExecuteScriptTxResult {
|
|
|
308
317
|
gasPrice: string
|
|
309
318
|
/** @format 32-byte-hash */
|
|
310
319
|
txId: string
|
|
311
|
-
|
|
320
|
+
simulationResult: SimulationResult
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/** BuildGrouplessDeployContractTx */
|
|
324
|
+
export interface BuildGrouplessDeployContractTx {
|
|
325
|
+
fromAddress: string
|
|
326
|
+
/** @format hex-string */
|
|
327
|
+
bytecode: string
|
|
328
|
+
/** @format uint256 */
|
|
329
|
+
initialAttoAlphAmount?: string
|
|
330
|
+
initialTokenAmounts?: Token[]
|
|
331
|
+
/** @format uint256 */
|
|
332
|
+
issueTokenAmount?: string
|
|
333
|
+
/** @format address */
|
|
334
|
+
issueTokenTo?: string
|
|
335
|
+
/** @format uint256 */
|
|
336
|
+
gasPrice?: string
|
|
337
|
+
/** @format block-hash */
|
|
338
|
+
targetBlockHash?: string
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/** BuildGrouplessDeployContractTxResult */
|
|
342
|
+
export interface BuildGrouplessDeployContractTxResult {
|
|
343
|
+
transferTxs: BuildTransferTxResult[]
|
|
344
|
+
deployContractTx: BuildDeployContractTxResult
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/** BuildGrouplessExecuteScriptTx */
|
|
348
|
+
export interface BuildGrouplessExecuteScriptTx {
|
|
349
|
+
fromAddress: string
|
|
350
|
+
/** @format hex-string */
|
|
351
|
+
bytecode: string
|
|
352
|
+
/** @format uint256 */
|
|
353
|
+
attoAlphAmount?: string
|
|
354
|
+
tokens?: Token[]
|
|
355
|
+
/** @format uint256 */
|
|
356
|
+
gasPrice?: string
|
|
357
|
+
/** @format block-hash */
|
|
358
|
+
targetBlockHash?: string
|
|
359
|
+
/** @format double */
|
|
360
|
+
gasEstimationMultiplier?: number
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/** BuildGrouplessExecuteScriptTxResult */
|
|
364
|
+
export interface BuildGrouplessExecuteScriptTxResult {
|
|
365
|
+
transferTxs: BuildTransferTxResult[]
|
|
366
|
+
executeScriptTx: BuildExecuteScriptTxResult
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/** BuildGrouplessTransferTx */
|
|
370
|
+
export interface BuildGrouplessTransferTx {
|
|
371
|
+
fromAddress: string
|
|
372
|
+
destinations: Destination[]
|
|
373
|
+
/** @format uint256 */
|
|
374
|
+
gasPrice?: string
|
|
375
|
+
/** @format block-hash */
|
|
376
|
+
targetBlockHash?: string
|
|
312
377
|
}
|
|
313
378
|
|
|
314
379
|
/** BuildInfo */
|
|
@@ -715,7 +780,7 @@ export interface Destination {
|
|
|
715
780
|
/** @format address */
|
|
716
781
|
address: string
|
|
717
782
|
/** @format uint256 */
|
|
718
|
-
attoAlphAmount
|
|
783
|
+
attoAlphAmount?: string
|
|
719
784
|
tokens?: Token[]
|
|
720
785
|
/** @format int64 */
|
|
721
786
|
lockTime?: number
|
|
@@ -781,6 +846,11 @@ export interface FunctionSig {
|
|
|
781
846
|
returnTypes: string[]
|
|
782
847
|
}
|
|
783
848
|
|
|
849
|
+
/** GatewayTimeout */
|
|
850
|
+
export interface GatewayTimeout {
|
|
851
|
+
detail: string
|
|
852
|
+
}
|
|
853
|
+
|
|
784
854
|
/** GhostUncleBlockEntry */
|
|
785
855
|
export interface GhostUncleBlockEntry {
|
|
786
856
|
/** @format block-hash */
|
|
@@ -1098,6 +1168,12 @@ export interface SignResult {
|
|
|
1098
1168
|
signature: string
|
|
1099
1169
|
}
|
|
1100
1170
|
|
|
1171
|
+
/** SimulationResult */
|
|
1172
|
+
export interface SimulationResult {
|
|
1173
|
+
contractInputs: AddressAssetState[]
|
|
1174
|
+
generatedOutputs: AddressAssetState[]
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1101
1177
|
/** Source */
|
|
1102
1178
|
export interface Source {
|
|
1103
1179
|
/** @format hex-string */
|
|
@@ -1194,7 +1270,7 @@ export interface TestContract {
|
|
|
1194
1270
|
/** @format address */
|
|
1195
1271
|
address?: string
|
|
1196
1272
|
/** @format address */
|
|
1197
|
-
|
|
1273
|
+
callerContractAddress?: string
|
|
1198
1274
|
/** @format contract */
|
|
1199
1275
|
bytecode: string
|
|
1200
1276
|
initialImmFields?: Val[]
|
|
@@ -1544,8 +1620,8 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
1544
1620
|
property instanceof Blob
|
|
1545
1621
|
? property
|
|
1546
1622
|
: typeof property === 'object' && property !== null
|
|
1547
|
-
|
|
1548
|
-
|
|
1623
|
+
? JSON.stringify(property)
|
|
1624
|
+
: `${property}`
|
|
1549
1625
|
)
|
|
1550
1626
|
return formData
|
|
1551
1627
|
}, new FormData()),
|
|
@@ -1625,18 +1701,18 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
1625
1701
|
const data = !responseFormat
|
|
1626
1702
|
? r
|
|
1627
1703
|
: await response[responseFormat]()
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1704
|
+
.then((data) => {
|
|
1705
|
+
if (r.ok) {
|
|
1706
|
+
r.data = data
|
|
1707
|
+
} else {
|
|
1708
|
+
r.error = data
|
|
1709
|
+
}
|
|
1710
|
+
return r
|
|
1711
|
+
})
|
|
1712
|
+
.catch((e) => {
|
|
1713
|
+
r.error = e
|
|
1714
|
+
return r
|
|
1715
|
+
})
|
|
1640
1716
|
|
|
1641
1717
|
if (cancelToken) {
|
|
1642
1718
|
this.abortControllers.delete(cancelToken)
|
|
@@ -1649,7 +1725,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
1649
1725
|
|
|
1650
1726
|
/**
|
|
1651
1727
|
* @title Alephium API
|
|
1652
|
-
* @version 3.
|
|
1728
|
+
* @version 3.12.2
|
|
1653
1729
|
* @baseUrl ../
|
|
1654
1730
|
*/
|
|
1655
1731
|
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
@@ -1663,7 +1739,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1663
1739
|
* @request GET:/wallets
|
|
1664
1740
|
*/
|
|
1665
1741
|
getWallets: (params: RequestParams = {}) =>
|
|
1666
|
-
this.request<
|
|
1742
|
+
this.request<
|
|
1743
|
+
WalletStatus[],
|
|
1744
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1745
|
+
>({
|
|
1667
1746
|
path: `/wallets`,
|
|
1668
1747
|
method: 'GET',
|
|
1669
1748
|
format: 'json',
|
|
@@ -1681,7 +1760,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1681
1760
|
putWallets: (data: WalletRestore, params: RequestParams = {}) =>
|
|
1682
1761
|
this.request<
|
|
1683
1762
|
WalletRestoreResult,
|
|
1684
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
1763
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1685
1764
|
>({
|
|
1686
1765
|
path: `/wallets`,
|
|
1687
1766
|
method: 'PUT',
|
|
@@ -1702,7 +1781,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1702
1781
|
postWallets: (data: WalletCreation, params: RequestParams = {}) =>
|
|
1703
1782
|
this.request<
|
|
1704
1783
|
WalletCreationResult,
|
|
1705
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
1784
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1706
1785
|
>({
|
|
1707
1786
|
path: `/wallets`,
|
|
1708
1787
|
method: 'POST',
|
|
@@ -1721,7 +1800,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1721
1800
|
* @request GET:/wallets/{wallet_name}
|
|
1722
1801
|
*/
|
|
1723
1802
|
getWalletsWalletName: (walletName: string, params: RequestParams = {}) =>
|
|
1724
|
-
this.request<
|
|
1803
|
+
this.request<
|
|
1804
|
+
WalletStatus,
|
|
1805
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1806
|
+
>({
|
|
1725
1807
|
path: `/wallets/${walletName}`,
|
|
1726
1808
|
method: 'GET',
|
|
1727
1809
|
format: 'json',
|
|
@@ -1743,7 +1825,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1743
1825
|
},
|
|
1744
1826
|
params: RequestParams = {}
|
|
1745
1827
|
) =>
|
|
1746
|
-
this.request<
|
|
1828
|
+
this.request<
|
|
1829
|
+
void,
|
|
1830
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1831
|
+
>({
|
|
1747
1832
|
path: `/wallets/${walletName}`,
|
|
1748
1833
|
method: 'DELETE',
|
|
1749
1834
|
query: query,
|
|
@@ -1759,7 +1844,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1759
1844
|
* @request POST:/wallets/{wallet_name}/lock
|
|
1760
1845
|
*/
|
|
1761
1846
|
postWalletsWalletNameLock: (walletName: string, params: RequestParams = {}) =>
|
|
1762
|
-
this.request<
|
|
1847
|
+
this.request<
|
|
1848
|
+
void,
|
|
1849
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1850
|
+
>({
|
|
1763
1851
|
path: `/wallets/${walletName}/lock`,
|
|
1764
1852
|
method: 'POST',
|
|
1765
1853
|
...params
|
|
@@ -1774,7 +1862,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1774
1862
|
* @request POST:/wallets/{wallet_name}/unlock
|
|
1775
1863
|
*/
|
|
1776
1864
|
postWalletsWalletNameUnlock: (walletName: string, data: WalletUnlock, params: RequestParams = {}) =>
|
|
1777
|
-
this.request<
|
|
1865
|
+
this.request<
|
|
1866
|
+
void,
|
|
1867
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1868
|
+
>({
|
|
1778
1869
|
path: `/wallets/${walletName}/unlock`,
|
|
1779
1870
|
method: 'POST',
|
|
1780
1871
|
body: data,
|
|
@@ -1791,7 +1882,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1791
1882
|
* @request GET:/wallets/{wallet_name}/balances
|
|
1792
1883
|
*/
|
|
1793
1884
|
getWalletsWalletNameBalances: (walletName: string, params: RequestParams = {}) =>
|
|
1794
|
-
this.request<
|
|
1885
|
+
this.request<
|
|
1886
|
+
Balances,
|
|
1887
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1888
|
+
>({
|
|
1795
1889
|
path: `/wallets/${walletName}/balances`,
|
|
1796
1890
|
method: 'GET',
|
|
1797
1891
|
format: 'json',
|
|
@@ -1809,7 +1903,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1809
1903
|
postWalletsWalletNameRevealMnemonic: (walletName: string, data: RevealMnemonic, params: RequestParams = {}) =>
|
|
1810
1904
|
this.request<
|
|
1811
1905
|
RevealMnemonicResult,
|
|
1812
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
1906
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1813
1907
|
>({
|
|
1814
1908
|
path: `/wallets/${walletName}/reveal-mnemonic`,
|
|
1815
1909
|
method: 'POST',
|
|
@@ -1828,7 +1922,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1828
1922
|
* @request POST:/wallets/{wallet_name}/transfer
|
|
1829
1923
|
*/
|
|
1830
1924
|
postWalletsWalletNameTransfer: (walletName: string, data: Transfer, params: RequestParams = {}) =>
|
|
1831
|
-
this.request<
|
|
1925
|
+
this.request<
|
|
1926
|
+
TransferResult,
|
|
1927
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1928
|
+
>({
|
|
1832
1929
|
path: `/wallets/${walletName}/transfer`,
|
|
1833
1930
|
method: 'POST',
|
|
1834
1931
|
body: data,
|
|
@@ -1846,7 +1943,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1846
1943
|
* @request POST:/wallets/{wallet_name}/sweep-active-address
|
|
1847
1944
|
*/
|
|
1848
1945
|
postWalletsWalletNameSweepActiveAddress: (walletName: string, data: Sweep, params: RequestParams = {}) =>
|
|
1849
|
-
this.request<
|
|
1946
|
+
this.request<
|
|
1947
|
+
TransferResults,
|
|
1948
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1949
|
+
>({
|
|
1850
1950
|
path: `/wallets/${walletName}/sweep-active-address`,
|
|
1851
1951
|
method: 'POST',
|
|
1852
1952
|
body: data,
|
|
@@ -1864,7 +1964,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1864
1964
|
* @request POST:/wallets/{wallet_name}/sweep-all-addresses
|
|
1865
1965
|
*/
|
|
1866
1966
|
postWalletsWalletNameSweepAllAddresses: (walletName: string, data: Sweep, params: RequestParams = {}) =>
|
|
1867
|
-
this.request<
|
|
1967
|
+
this.request<
|
|
1968
|
+
TransferResults,
|
|
1969
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1970
|
+
>({
|
|
1868
1971
|
path: `/wallets/${walletName}/sweep-all-addresses`,
|
|
1869
1972
|
method: 'POST',
|
|
1870
1973
|
body: data,
|
|
@@ -1882,7 +1985,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1882
1985
|
* @request POST:/wallets/{wallet_name}/sign
|
|
1883
1986
|
*/
|
|
1884
1987
|
postWalletsWalletNameSign: (walletName: string, data: Sign, params: RequestParams = {}) =>
|
|
1885
|
-
this.request<
|
|
1988
|
+
this.request<
|
|
1989
|
+
SignResult,
|
|
1990
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1991
|
+
>({
|
|
1886
1992
|
path: `/wallets/${walletName}/sign`,
|
|
1887
1993
|
method: 'POST',
|
|
1888
1994
|
body: data,
|
|
@@ -1900,7 +2006,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1900
2006
|
* @request GET:/wallets/{wallet_name}/addresses
|
|
1901
2007
|
*/
|
|
1902
2008
|
getWalletsWalletNameAddresses: (walletName: string, params: RequestParams = {}) =>
|
|
1903
|
-
this.request<
|
|
2009
|
+
this.request<
|
|
2010
|
+
Addresses,
|
|
2011
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2012
|
+
>({
|
|
1904
2013
|
path: `/wallets/${walletName}/addresses`,
|
|
1905
2014
|
method: 'GET',
|
|
1906
2015
|
format: 'json',
|
|
@@ -1916,7 +2025,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1916
2025
|
* @request GET:/wallets/{wallet_name}/addresses/{address}
|
|
1917
2026
|
*/
|
|
1918
2027
|
getWalletsWalletNameAddressesAddress: (walletName: string, address: string, params: RequestParams = {}) =>
|
|
1919
|
-
this.request<
|
|
2028
|
+
this.request<
|
|
2029
|
+
AddressInfo,
|
|
2030
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2031
|
+
>({
|
|
1920
2032
|
path: `/wallets/${walletName}/addresses/${address}`,
|
|
1921
2033
|
method: 'GET',
|
|
1922
2034
|
format: 'json',
|
|
@@ -1934,7 +2046,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1934
2046
|
getWalletsWalletNameMinerAddresses: (walletName: string, params: RequestParams = {}) =>
|
|
1935
2047
|
this.request<
|
|
1936
2048
|
MinerAddressesInfo[],
|
|
1937
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2049
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1938
2050
|
>({
|
|
1939
2051
|
path: `/wallets/${walletName}/miner-addresses`,
|
|
1940
2052
|
method: 'GET',
|
|
@@ -1958,7 +2070,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1958
2070
|
},
|
|
1959
2071
|
params: RequestParams = {}
|
|
1960
2072
|
) =>
|
|
1961
|
-
this.request<
|
|
2073
|
+
this.request<
|
|
2074
|
+
AddressInfo,
|
|
2075
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2076
|
+
>({
|
|
1962
2077
|
path: `/wallets/${walletName}/derive-next-address`,
|
|
1963
2078
|
method: 'POST',
|
|
1964
2079
|
query: query,
|
|
@@ -1975,7 +2090,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1975
2090
|
* @request POST:/wallets/{wallet_name}/derive-next-miner-addresses
|
|
1976
2091
|
*/
|
|
1977
2092
|
postWalletsWalletNameDeriveNextMinerAddresses: (walletName: string, params: RequestParams = {}) =>
|
|
1978
|
-
this.request<
|
|
2093
|
+
this.request<
|
|
2094
|
+
AddressInfo[],
|
|
2095
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2096
|
+
>({
|
|
1979
2097
|
path: `/wallets/${walletName}/derive-next-miner-addresses`,
|
|
1980
2098
|
method: 'POST',
|
|
1981
2099
|
format: 'json',
|
|
@@ -1995,7 +2113,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1995
2113
|
data: ChangeActiveAddress,
|
|
1996
2114
|
params: RequestParams = {}
|
|
1997
2115
|
) =>
|
|
1998
|
-
this.request<
|
|
2116
|
+
this.request<
|
|
2117
|
+
void,
|
|
2118
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2119
|
+
>({
|
|
1999
2120
|
path: `/wallets/${walletName}/change-active-address`,
|
|
2000
2121
|
method: 'POST',
|
|
2001
2122
|
body: data,
|
|
@@ -2013,7 +2134,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2013
2134
|
* @request GET:/infos/node
|
|
2014
2135
|
*/
|
|
2015
2136
|
getInfosNode: (params: RequestParams = {}) =>
|
|
2016
|
-
this.request<
|
|
2137
|
+
this.request<
|
|
2138
|
+
NodeInfo,
|
|
2139
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2140
|
+
>({
|
|
2017
2141
|
path: `/infos/node`,
|
|
2018
2142
|
method: 'GET',
|
|
2019
2143
|
format: 'json',
|
|
@@ -2029,7 +2153,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2029
2153
|
* @request GET:/infos/version
|
|
2030
2154
|
*/
|
|
2031
2155
|
getInfosVersion: (params: RequestParams = {}) =>
|
|
2032
|
-
this.request<
|
|
2156
|
+
this.request<
|
|
2157
|
+
NodeVersion,
|
|
2158
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2159
|
+
>({
|
|
2033
2160
|
path: `/infos/version`,
|
|
2034
2161
|
method: 'GET',
|
|
2035
2162
|
format: 'json',
|
|
@@ -2045,7 +2172,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2045
2172
|
* @request GET:/infos/chain-params
|
|
2046
2173
|
*/
|
|
2047
2174
|
getInfosChainParams: (params: RequestParams = {}) =>
|
|
2048
|
-
this.request<
|
|
2175
|
+
this.request<
|
|
2176
|
+
ChainParams,
|
|
2177
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2178
|
+
>({
|
|
2049
2179
|
path: `/infos/chain-params`,
|
|
2050
2180
|
method: 'GET',
|
|
2051
2181
|
format: 'json',
|
|
@@ -2061,7 +2191,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2061
2191
|
* @request GET:/infos/self-clique
|
|
2062
2192
|
*/
|
|
2063
2193
|
getInfosSelfClique: (params: RequestParams = {}) =>
|
|
2064
|
-
this.request<
|
|
2194
|
+
this.request<
|
|
2195
|
+
SelfClique,
|
|
2196
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2197
|
+
>({
|
|
2065
2198
|
path: `/infos/self-clique`,
|
|
2066
2199
|
method: 'GET',
|
|
2067
2200
|
format: 'json',
|
|
@@ -2079,7 +2212,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2079
2212
|
getInfosInterCliquePeerInfo: (params: RequestParams = {}) =>
|
|
2080
2213
|
this.request<
|
|
2081
2214
|
InterCliquePeerInfo[],
|
|
2082
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2215
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2083
2216
|
>({
|
|
2084
2217
|
path: `/infos/inter-clique-peer-info`,
|
|
2085
2218
|
method: 'GET',
|
|
@@ -2096,7 +2229,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2096
2229
|
* @request GET:/infos/discovered-neighbors
|
|
2097
2230
|
*/
|
|
2098
2231
|
getInfosDiscoveredNeighbors: (params: RequestParams = {}) =>
|
|
2099
|
-
this.request<
|
|
2232
|
+
this.request<
|
|
2233
|
+
BrokerInfo[],
|
|
2234
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2235
|
+
>({
|
|
2100
2236
|
path: `/infos/discovered-neighbors`,
|
|
2101
2237
|
method: 'GET',
|
|
2102
2238
|
format: 'json',
|
|
@@ -2112,7 +2248,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2112
2248
|
* @request GET:/infos/misbehaviors
|
|
2113
2249
|
*/
|
|
2114
2250
|
getInfosMisbehaviors: (params: RequestParams = {}) =>
|
|
2115
|
-
this.request<
|
|
2251
|
+
this.request<
|
|
2252
|
+
PeerMisbehavior[],
|
|
2253
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2254
|
+
>({
|
|
2116
2255
|
path: `/infos/misbehaviors`,
|
|
2117
2256
|
method: 'GET',
|
|
2118
2257
|
format: 'json',
|
|
@@ -2128,7 +2267,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2128
2267
|
* @request POST:/infos/misbehaviors
|
|
2129
2268
|
*/
|
|
2130
2269
|
postInfosMisbehaviors: (data: MisbehaviorAction, params: RequestParams = {}) =>
|
|
2131
|
-
this.request<
|
|
2270
|
+
this.request<
|
|
2271
|
+
void,
|
|
2272
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2273
|
+
>({
|
|
2132
2274
|
path: `/infos/misbehaviors`,
|
|
2133
2275
|
method: 'POST',
|
|
2134
2276
|
body: data,
|
|
@@ -2145,7 +2287,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2145
2287
|
* @request GET:/infos/unreachable
|
|
2146
2288
|
*/
|
|
2147
2289
|
getInfosUnreachable: (params: RequestParams = {}) =>
|
|
2148
|
-
this.request<
|
|
2290
|
+
this.request<
|
|
2291
|
+
string[],
|
|
2292
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2293
|
+
>({
|
|
2149
2294
|
path: `/infos/unreachable`,
|
|
2150
2295
|
method: 'GET',
|
|
2151
2296
|
format: 'json',
|
|
@@ -2161,7 +2306,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2161
2306
|
* @request POST:/infos/discovery
|
|
2162
2307
|
*/
|
|
2163
2308
|
postInfosDiscovery: (data: DiscoveryAction, params: RequestParams = {}) =>
|
|
2164
|
-
this.request<
|
|
2309
|
+
this.request<
|
|
2310
|
+
void,
|
|
2311
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2312
|
+
>({
|
|
2165
2313
|
path: `/infos/discovery`,
|
|
2166
2314
|
method: 'POST',
|
|
2167
2315
|
body: data,
|
|
@@ -2192,7 +2340,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2192
2340
|
},
|
|
2193
2341
|
params: RequestParams = {}
|
|
2194
2342
|
) =>
|
|
2195
|
-
this.request<
|
|
2343
|
+
this.request<
|
|
2344
|
+
HashRateResponse,
|
|
2345
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2346
|
+
>({
|
|
2196
2347
|
path: `/infos/history-hashrate`,
|
|
2197
2348
|
method: 'GET',
|
|
2198
2349
|
query: query,
|
|
@@ -2218,7 +2369,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2218
2369
|
},
|
|
2219
2370
|
params: RequestParams = {}
|
|
2220
2371
|
) =>
|
|
2221
|
-
this.request<
|
|
2372
|
+
this.request<
|
|
2373
|
+
HashRateResponse,
|
|
2374
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2375
|
+
>({
|
|
2222
2376
|
path: `/infos/current-hashrate`,
|
|
2223
2377
|
method: 'GET',
|
|
2224
2378
|
query: query,
|
|
@@ -2235,7 +2389,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2235
2389
|
* @request GET:/infos/current-difficulty
|
|
2236
2390
|
*/
|
|
2237
2391
|
getInfosCurrentDifficulty: (params: RequestParams = {}) =>
|
|
2238
|
-
this.request<
|
|
2392
|
+
this.request<
|
|
2393
|
+
CurrentDifficulty,
|
|
2394
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2395
|
+
>({
|
|
2239
2396
|
path: `/infos/current-difficulty`,
|
|
2240
2397
|
method: 'GET',
|
|
2241
2398
|
format: 'json',
|
|
@@ -2268,7 +2425,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2268
2425
|
) =>
|
|
2269
2426
|
this.request<
|
|
2270
2427
|
BlocksPerTimeStampRange,
|
|
2271
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2428
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2272
2429
|
>({
|
|
2273
2430
|
path: `/blockflow/blocks`,
|
|
2274
2431
|
method: 'GET',
|
|
@@ -2302,7 +2459,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2302
2459
|
) =>
|
|
2303
2460
|
this.request<
|
|
2304
2461
|
BlocksAndEventsPerTimeStampRange,
|
|
2305
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2462
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2306
2463
|
>({
|
|
2307
2464
|
path: `/blockflow/blocks-with-events`,
|
|
2308
2465
|
method: 'GET',
|
|
@@ -2336,7 +2493,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2336
2493
|
) =>
|
|
2337
2494
|
this.request<
|
|
2338
2495
|
RichBlocksAndEventsPerTimeStampRange,
|
|
2339
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2496
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2340
2497
|
>({
|
|
2341
2498
|
path: `/blockflow/rich-blocks`,
|
|
2342
2499
|
method: 'GET',
|
|
@@ -2354,7 +2511,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2354
2511
|
* @request GET:/blockflow/blocks/{block_hash}
|
|
2355
2512
|
*/
|
|
2356
2513
|
getBlockflowBlocksBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2357
|
-
this.request<
|
|
2514
|
+
this.request<
|
|
2515
|
+
BlockEntry,
|
|
2516
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2517
|
+
>({
|
|
2358
2518
|
path: `/blockflow/blocks/${blockHash}`,
|
|
2359
2519
|
method: 'GET',
|
|
2360
2520
|
format: 'json',
|
|
@@ -2370,7 +2530,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2370
2530
|
* @request GET:/blockflow/main-chain-block-by-ghost-uncle/{ghost_uncle_hash}
|
|
2371
2531
|
*/
|
|
2372
2532
|
getBlockflowMainChainBlockByGhostUncleGhostUncleHash: (ghostUncleHash: string, params: RequestParams = {}) =>
|
|
2373
|
-
this.request<
|
|
2533
|
+
this.request<
|
|
2534
|
+
BlockEntry,
|
|
2535
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2536
|
+
>({
|
|
2374
2537
|
path: `/blockflow/main-chain-block-by-ghost-uncle/${ghostUncleHash}`,
|
|
2375
2538
|
method: 'GET',
|
|
2376
2539
|
format: 'json',
|
|
@@ -2386,7 +2549,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2386
2549
|
* @request GET:/blockflow/blocks-with-events/{block_hash}
|
|
2387
2550
|
*/
|
|
2388
2551
|
getBlockflowBlocksWithEventsBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2389
|
-
this.request<
|
|
2552
|
+
this.request<
|
|
2553
|
+
BlockAndEvents,
|
|
2554
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2555
|
+
>({
|
|
2390
2556
|
path: `/blockflow/blocks-with-events/${blockHash}`,
|
|
2391
2557
|
method: 'GET',
|
|
2392
2558
|
format: 'json',
|
|
@@ -2402,14 +2568,15 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2402
2568
|
* @request GET:/blockflow/rich-blocks/{block_hash}
|
|
2403
2569
|
*/
|
|
2404
2570
|
getBlockflowRichBlocksBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2405
|
-
this.request<
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2571
|
+
this.request<
|
|
2572
|
+
RichBlockAndEvents,
|
|
2573
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2574
|
+
>({
|
|
2575
|
+
path: `/blockflow/rich-blocks/${blockHash}`,
|
|
2576
|
+
method: 'GET',
|
|
2577
|
+
format: 'json',
|
|
2578
|
+
...params
|
|
2579
|
+
}).then(convertHttpResponse),
|
|
2413
2580
|
|
|
2414
2581
|
/**
|
|
2415
2582
|
* No description
|
|
@@ -2426,7 +2593,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2426
2593
|
},
|
|
2427
2594
|
params: RequestParams = {}
|
|
2428
2595
|
) =>
|
|
2429
|
-
this.request<
|
|
2596
|
+
this.request<
|
|
2597
|
+
boolean,
|
|
2598
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2599
|
+
>({
|
|
2430
2600
|
path: `/blockflow/is-block-in-main-chain`,
|
|
2431
2601
|
method: 'GET',
|
|
2432
2602
|
query: query,
|
|
@@ -2453,7 +2623,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2453
2623
|
},
|
|
2454
2624
|
params: RequestParams = {}
|
|
2455
2625
|
) =>
|
|
2456
|
-
this.request<
|
|
2626
|
+
this.request<
|
|
2627
|
+
HashesAtHeight,
|
|
2628
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2629
|
+
>({
|
|
2457
2630
|
path: `/blockflow/hashes`,
|
|
2458
2631
|
method: 'GET',
|
|
2459
2632
|
query: query,
|
|
@@ -2478,7 +2651,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2478
2651
|
},
|
|
2479
2652
|
params: RequestParams = {}
|
|
2480
2653
|
) =>
|
|
2481
|
-
this.request<
|
|
2654
|
+
this.request<
|
|
2655
|
+
ChainInfo,
|
|
2656
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2657
|
+
>({
|
|
2482
2658
|
path: `/blockflow/chain-info`,
|
|
2483
2659
|
method: 'GET',
|
|
2484
2660
|
query: query,
|
|
@@ -2495,7 +2671,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2495
2671
|
* @request GET:/blockflow/headers/{block_hash}
|
|
2496
2672
|
*/
|
|
2497
2673
|
getBlockflowHeadersBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2498
|
-
this.request<
|
|
2674
|
+
this.request<
|
|
2675
|
+
BlockHeaderEntry,
|
|
2676
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2677
|
+
>({
|
|
2499
2678
|
path: `/blockflow/headers/${blockHash}`,
|
|
2500
2679
|
method: 'GET',
|
|
2501
2680
|
format: 'json',
|
|
@@ -2511,7 +2690,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2511
2690
|
* @request GET:/blockflow/raw-blocks/{block_hash}
|
|
2512
2691
|
*/
|
|
2513
2692
|
getBlockflowRawBlocksBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2514
|
-
this.request<
|
|
2693
|
+
this.request<
|
|
2694
|
+
RawBlock,
|
|
2695
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2696
|
+
>({
|
|
2515
2697
|
path: `/blockflow/raw-blocks/${blockHash}`,
|
|
2516
2698
|
method: 'GET',
|
|
2517
2699
|
format: 'json',
|
|
@@ -2534,7 +2716,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2534
2716
|
},
|
|
2535
2717
|
params: RequestParams = {}
|
|
2536
2718
|
) =>
|
|
2537
|
-
this.request<
|
|
2719
|
+
this.request<
|
|
2720
|
+
Balance,
|
|
2721
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2722
|
+
>({
|
|
2538
2723
|
path: `/addresses/${address}/balance`,
|
|
2539
2724
|
method: 'GET',
|
|
2540
2725
|
query: query,
|
|
@@ -2551,7 +2736,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2551
2736
|
* @request GET:/addresses/{address}/utxos
|
|
2552
2737
|
*/
|
|
2553
2738
|
getAddressesAddressUtxos: (address: string, params: RequestParams = {}) =>
|
|
2554
|
-
this.request<
|
|
2739
|
+
this.request<
|
|
2740
|
+
UTXOs,
|
|
2741
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2742
|
+
>({
|
|
2555
2743
|
path: `/addresses/${address}/utxos`,
|
|
2556
2744
|
method: 'GET',
|
|
2557
2745
|
format: 'json',
|
|
@@ -2567,7 +2755,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2567
2755
|
* @request GET:/addresses/{address}/group
|
|
2568
2756
|
*/
|
|
2569
2757
|
getAddressesAddressGroup: (address: string, params: RequestParams = {}) =>
|
|
2570
|
-
this.request<
|
|
2758
|
+
this.request<
|
|
2759
|
+
Group,
|
|
2760
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2761
|
+
>({
|
|
2571
2762
|
path: `/addresses/${address}/group`,
|
|
2572
2763
|
method: 'GET',
|
|
2573
2764
|
format: 'json',
|
|
@@ -2586,7 +2777,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2586
2777
|
postTransactionsBuild: (data: BuildTransferTx, params: RequestParams = {}) =>
|
|
2587
2778
|
this.request<
|
|
2588
2779
|
BuildTransferTxResult,
|
|
2589
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2780
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2590
2781
|
>({
|
|
2591
2782
|
path: `/transactions/build`,
|
|
2592
2783
|
method: 'POST',
|
|
@@ -2607,7 +2798,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2607
2798
|
postTransactionsBuildTransferFromOneToManyGroups: (data: BuildTransferTx, params: RequestParams = {}) =>
|
|
2608
2799
|
this.request<
|
|
2609
2800
|
BuildTransferTxResult[],
|
|
2610
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2801
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2611
2802
|
>({
|
|
2612
2803
|
path: `/transactions/build-transfer-from-one-to-many-groups`,
|
|
2613
2804
|
method: 'POST',
|
|
@@ -2628,7 +2819,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2628
2819
|
postTransactionsBuildMultiAddresses: (data: BuildMultiAddressesTransaction, params: RequestParams = {}) =>
|
|
2629
2820
|
this.request<
|
|
2630
2821
|
BuildTransferTxResult,
|
|
2631
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2822
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2632
2823
|
>({
|
|
2633
2824
|
path: `/transactions/build-multi-addresses`,
|
|
2634
2825
|
method: 'POST',
|
|
@@ -2649,7 +2840,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2649
2840
|
postTransactionsSweepAddressBuild: (data: BuildSweepAddressTransactions, params: RequestParams = {}) =>
|
|
2650
2841
|
this.request<
|
|
2651
2842
|
BuildSweepAddressTransactionsResult,
|
|
2652
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2843
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2653
2844
|
>({
|
|
2654
2845
|
path: `/transactions/sweep-address/build`,
|
|
2655
2846
|
method: 'POST',
|
|
@@ -2668,7 +2859,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2668
2859
|
* @request POST:/transactions/submit
|
|
2669
2860
|
*/
|
|
2670
2861
|
postTransactionsSubmit: (data: SubmitTransaction, params: RequestParams = {}) =>
|
|
2671
|
-
this.request<
|
|
2862
|
+
this.request<
|
|
2863
|
+
SubmitTxResult,
|
|
2864
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2865
|
+
>({
|
|
2672
2866
|
path: `/transactions/submit`,
|
|
2673
2867
|
method: 'POST',
|
|
2674
2868
|
body: data,
|
|
@@ -2688,7 +2882,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2688
2882
|
postTransactionsDecodeUnsignedTx: (data: DecodeUnsignedTx, params: RequestParams = {}) =>
|
|
2689
2883
|
this.request<
|
|
2690
2884
|
DecodeUnsignedTxResult,
|
|
2691
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2885
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2692
2886
|
>({
|
|
2693
2887
|
path: `/transactions/decode-unsigned-tx`,
|
|
2694
2888
|
method: 'POST',
|
|
@@ -2716,7 +2910,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2716
2910
|
},
|
|
2717
2911
|
params: RequestParams = {}
|
|
2718
2912
|
) =>
|
|
2719
|
-
this.request<
|
|
2913
|
+
this.request<
|
|
2914
|
+
Transaction,
|
|
2915
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2916
|
+
>({
|
|
2720
2917
|
path: `/transactions/details/${txId}`,
|
|
2721
2918
|
method: 'GET',
|
|
2722
2919
|
query: query,
|
|
@@ -2742,7 +2939,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2742
2939
|
},
|
|
2743
2940
|
params: RequestParams = {}
|
|
2744
2941
|
) =>
|
|
2745
|
-
this.request<
|
|
2942
|
+
this.request<
|
|
2943
|
+
RichTransaction,
|
|
2944
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2945
|
+
>({
|
|
2746
2946
|
path: `/transactions/rich-details/${txId}`,
|
|
2747
2947
|
method: 'GET',
|
|
2748
2948
|
query: query,
|
|
@@ -2768,7 +2968,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2768
2968
|
},
|
|
2769
2969
|
params: RequestParams = {}
|
|
2770
2970
|
) =>
|
|
2771
|
-
this.request<
|
|
2971
|
+
this.request<
|
|
2972
|
+
RawTransaction,
|
|
2973
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2974
|
+
>({
|
|
2772
2975
|
path: `/transactions/raw/${txId}`,
|
|
2773
2976
|
method: 'GET',
|
|
2774
2977
|
query: query,
|
|
@@ -2795,7 +2998,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2795
2998
|
},
|
|
2796
2999
|
params: RequestParams = {}
|
|
2797
3000
|
) =>
|
|
2798
|
-
this.request<
|
|
3001
|
+
this.request<
|
|
3002
|
+
TxStatus,
|
|
3003
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3004
|
+
>({
|
|
2799
3005
|
path: `/transactions/status`,
|
|
2800
3006
|
method: 'GET',
|
|
2801
3007
|
query: query,
|
|
@@ -2820,7 +3026,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2820
3026
|
},
|
|
2821
3027
|
params: RequestParams = {}
|
|
2822
3028
|
) =>
|
|
2823
|
-
this.request<
|
|
3029
|
+
this.request<
|
|
3030
|
+
string,
|
|
3031
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3032
|
+
>({
|
|
2824
3033
|
path: `/transactions/tx-id-from-outputref`,
|
|
2825
3034
|
method: 'GET',
|
|
2826
3035
|
query: query,
|
|
@@ -2839,7 +3048,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2839
3048
|
postTransactionsBuildChained: (data: BuildChainedTx[], params: RequestParams = {}) =>
|
|
2840
3049
|
this.request<
|
|
2841
3050
|
BuildChainedTxResult[],
|
|
2842
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3051
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2843
3052
|
>({
|
|
2844
3053
|
path: `/transactions/build-chained`,
|
|
2845
3054
|
method: 'POST',
|
|
@@ -2861,7 +3070,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2861
3070
|
getMempoolTransactions: (params: RequestParams = {}) =>
|
|
2862
3071
|
this.request<
|
|
2863
3072
|
MempoolTransactions[],
|
|
2864
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3073
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2865
3074
|
>({
|
|
2866
3075
|
path: `/mempool/transactions`,
|
|
2867
3076
|
method: 'GET',
|
|
@@ -2878,7 +3087,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2878
3087
|
* @request DELETE:/mempool/transactions
|
|
2879
3088
|
*/
|
|
2880
3089
|
deleteMempoolTransactions: (params: RequestParams = {}) =>
|
|
2881
|
-
this.request<
|
|
3090
|
+
this.request<
|
|
3091
|
+
void,
|
|
3092
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3093
|
+
>({
|
|
2882
3094
|
path: `/mempool/transactions`,
|
|
2883
3095
|
method: 'DELETE',
|
|
2884
3096
|
...params
|
|
@@ -2899,7 +3111,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2899
3111
|
},
|
|
2900
3112
|
params: RequestParams = {}
|
|
2901
3113
|
) =>
|
|
2902
|
-
this.request<
|
|
3114
|
+
this.request<
|
|
3115
|
+
void,
|
|
3116
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3117
|
+
>({
|
|
2903
3118
|
path: `/mempool/transactions/rebroadcast`,
|
|
2904
3119
|
method: 'PUT',
|
|
2905
3120
|
query: query,
|
|
@@ -2915,7 +3130,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2915
3130
|
* @request PUT:/mempool/transactions/validate
|
|
2916
3131
|
*/
|
|
2917
3132
|
putMempoolTransactionsValidate: (params: RequestParams = {}) =>
|
|
2918
|
-
this.request<
|
|
3133
|
+
this.request<
|
|
3134
|
+
void,
|
|
3135
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3136
|
+
>({
|
|
2919
3137
|
path: `/mempool/transactions/validate`,
|
|
2920
3138
|
method: 'PUT',
|
|
2921
3139
|
...params
|
|
@@ -2933,7 +3151,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2933
3151
|
postContractsCompileScript: (data: Script, params: RequestParams = {}) =>
|
|
2934
3152
|
this.request<
|
|
2935
3153
|
CompileScriptResult,
|
|
2936
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3154
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2937
3155
|
>({
|
|
2938
3156
|
path: `/contracts/compile-script`,
|
|
2939
3157
|
method: 'POST',
|
|
@@ -2954,7 +3172,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2954
3172
|
postContractsUnsignedTxExecuteScript: (data: BuildExecuteScriptTx, params: RequestParams = {}) =>
|
|
2955
3173
|
this.request<
|
|
2956
3174
|
BuildExecuteScriptTxResult,
|
|
2957
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3175
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2958
3176
|
>({
|
|
2959
3177
|
path: `/contracts/unsigned-tx/execute-script`,
|
|
2960
3178
|
method: 'POST',
|
|
@@ -2975,7 +3193,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2975
3193
|
postContractsCompileContract: (data: Contract, params: RequestParams = {}) =>
|
|
2976
3194
|
this.request<
|
|
2977
3195
|
CompileContractResult,
|
|
2978
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3196
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2979
3197
|
>({
|
|
2980
3198
|
path: `/contracts/compile-contract`,
|
|
2981
3199
|
method: 'POST',
|
|
@@ -2996,7 +3214,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2996
3214
|
postContractsCompileProject: (data: Project, params: RequestParams = {}) =>
|
|
2997
3215
|
this.request<
|
|
2998
3216
|
CompileProjectResult,
|
|
2999
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3217
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3000
3218
|
>({
|
|
3001
3219
|
path: `/contracts/compile-project`,
|
|
3002
3220
|
method: 'POST',
|
|
@@ -3017,7 +3235,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3017
3235
|
postContractsUnsignedTxDeployContract: (data: BuildDeployContractTx, params: RequestParams = {}) =>
|
|
3018
3236
|
this.request<
|
|
3019
3237
|
BuildDeployContractTxResult,
|
|
3020
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3238
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3021
3239
|
>({
|
|
3022
3240
|
path: `/contracts/unsigned-tx/deploy-contract`,
|
|
3023
3241
|
method: 'POST',
|
|
@@ -3036,7 +3254,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3036
3254
|
* @request GET:/contracts/{address}/state
|
|
3037
3255
|
*/
|
|
3038
3256
|
getContractsAddressState: (address: string, params: RequestParams = {}) =>
|
|
3039
|
-
this.request<
|
|
3257
|
+
this.request<
|
|
3258
|
+
ContractState,
|
|
3259
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3260
|
+
>({
|
|
3040
3261
|
path: `/contracts/${address}/state`,
|
|
3041
3262
|
method: 'GET',
|
|
3042
3263
|
format: 'json',
|
|
@@ -3052,7 +3273,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3052
3273
|
* @request GET:/contracts/{codeHash}/code
|
|
3053
3274
|
*/
|
|
3054
3275
|
getContractsCodehashCode: (codeHash: string, params: RequestParams = {}) =>
|
|
3055
|
-
this.request<
|
|
3276
|
+
this.request<
|
|
3277
|
+
string,
|
|
3278
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3279
|
+
>({
|
|
3056
3280
|
path: `/contracts/${codeHash}/code`,
|
|
3057
3281
|
method: 'GET',
|
|
3058
3282
|
format: 'json',
|
|
@@ -3068,16 +3292,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3068
3292
|
* @request POST:/contracts/test-contract
|
|
3069
3293
|
*/
|
|
3070
3294
|
postContractsTestContract: (data: TestContract, params: RequestParams = {}) =>
|
|
3071
|
-
this.request<
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3295
|
+
this.request<
|
|
3296
|
+
TestContractResult,
|
|
3297
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3298
|
+
>({
|
|
3299
|
+
path: `/contracts/test-contract`,
|
|
3300
|
+
method: 'POST',
|
|
3301
|
+
body: data,
|
|
3302
|
+
type: ContentType.Json,
|
|
3303
|
+
format: 'json',
|
|
3304
|
+
...params
|
|
3305
|
+
}).then(convertHttpResponse),
|
|
3081
3306
|
|
|
3082
3307
|
/**
|
|
3083
3308
|
* No description
|
|
@@ -3088,16 +3313,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3088
3313
|
* @request POST:/contracts/call-contract
|
|
3089
3314
|
*/
|
|
3090
3315
|
postContractsCallContract: (data: CallContract, params: RequestParams = {}) =>
|
|
3091
|
-
this.request<
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3316
|
+
this.request<
|
|
3317
|
+
CallContractResult,
|
|
3318
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3319
|
+
>({
|
|
3320
|
+
path: `/contracts/call-contract`,
|
|
3321
|
+
method: 'POST',
|
|
3322
|
+
body: data,
|
|
3323
|
+
type: ContentType.Json,
|
|
3324
|
+
format: 'json',
|
|
3325
|
+
...params
|
|
3326
|
+
}).then(convertHttpResponse),
|
|
3101
3327
|
|
|
3102
3328
|
/**
|
|
3103
3329
|
* No description
|
|
@@ -3110,7 +3336,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3110
3336
|
postContractsMulticallContract: (data: MultipleCallContract, params: RequestParams = {}) =>
|
|
3111
3337
|
this.request<
|
|
3112
3338
|
MultipleCallContractResult,
|
|
3113
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3339
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3114
3340
|
>({
|
|
3115
3341
|
path: `/contracts/multicall-contract`,
|
|
3116
3342
|
method: 'POST',
|
|
@@ -3129,7 +3355,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3129
3355
|
* @request GET:/contracts/{address}/parent
|
|
3130
3356
|
*/
|
|
3131
3357
|
getContractsAddressParent: (address: string, params: RequestParams = {}) =>
|
|
3132
|
-
this.request<
|
|
3358
|
+
this.request<
|
|
3359
|
+
string,
|
|
3360
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3361
|
+
>({
|
|
3133
3362
|
path: `/contracts/${address}/parent`,
|
|
3134
3363
|
method: 'GET',
|
|
3135
3364
|
format: 'json',
|
|
@@ -3154,7 +3383,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3154
3383
|
},
|
|
3155
3384
|
params: RequestParams = {}
|
|
3156
3385
|
) =>
|
|
3157
|
-
this.request<
|
|
3386
|
+
this.request<
|
|
3387
|
+
SubContracts,
|
|
3388
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3389
|
+
>({
|
|
3158
3390
|
path: `/contracts/${address}/sub-contracts`,
|
|
3159
3391
|
method: 'GET',
|
|
3160
3392
|
query: query,
|
|
@@ -3171,7 +3403,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3171
3403
|
* @request GET:/contracts/{address}/sub-contracts/current-count
|
|
3172
3404
|
*/
|
|
3173
3405
|
getContractsAddressSubContractsCurrentCount: (address: string, params: RequestParams = {}) =>
|
|
3174
|
-
this.request<
|
|
3406
|
+
this.request<
|
|
3407
|
+
number,
|
|
3408
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3409
|
+
>({
|
|
3175
3410
|
path: `/contracts/${address}/sub-contracts/current-count`,
|
|
3176
3411
|
method: 'GET',
|
|
3177
3412
|
format: 'json',
|
|
@@ -3187,16 +3422,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3187
3422
|
* @request POST:/contracts/call-tx-script
|
|
3188
3423
|
*/
|
|
3189
3424
|
postContractsCallTxScript: (data: CallTxScript, params: RequestParams = {}) =>
|
|
3190
|
-
this.request<
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3425
|
+
this.request<
|
|
3426
|
+
CallTxScriptResult,
|
|
3427
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3428
|
+
>({
|
|
3429
|
+
path: `/contracts/call-tx-script`,
|
|
3430
|
+
method: 'POST',
|
|
3431
|
+
body: data,
|
|
3432
|
+
type: ContentType.Json,
|
|
3433
|
+
format: 'json',
|
|
3434
|
+
...params
|
|
3435
|
+
}).then(convertHttpResponse)
|
|
3200
3436
|
}
|
|
3201
3437
|
multisig = {
|
|
3202
3438
|
/**
|
|
@@ -3210,7 +3446,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3210
3446
|
postMultisigAddress: (data: BuildMultisigAddress, params: RequestParams = {}) =>
|
|
3211
3447
|
this.request<
|
|
3212
3448
|
BuildMultisigAddressResult,
|
|
3213
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3449
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3214
3450
|
>({
|
|
3215
3451
|
path: `/multisig/address`,
|
|
3216
3452
|
method: 'POST',
|
|
@@ -3231,7 +3467,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3231
3467
|
postMultisigBuild: (data: BuildMultisig, params: RequestParams = {}) =>
|
|
3232
3468
|
this.request<
|
|
3233
3469
|
BuildTransferTxResult,
|
|
3234
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3470
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3235
3471
|
>({
|
|
3236
3472
|
path: `/multisig/build`,
|
|
3237
3473
|
method: 'POST',
|
|
@@ -3252,7 +3488,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3252
3488
|
postMultisigSweep: (data: BuildSweepMultisig, params: RequestParams = {}) =>
|
|
3253
3489
|
this.request<
|
|
3254
3490
|
BuildSweepAddressTransactionsResult,
|
|
3255
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3491
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3256
3492
|
>({
|
|
3257
3493
|
path: `/multisig/sweep`,
|
|
3258
3494
|
method: 'POST',
|
|
@@ -3271,7 +3507,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3271
3507
|
* @request POST:/multisig/submit
|
|
3272
3508
|
*/
|
|
3273
3509
|
postMultisigSubmit: (data: SubmitMultisig, params: RequestParams = {}) =>
|
|
3274
|
-
this.request<
|
|
3510
|
+
this.request<
|
|
3511
|
+
SubmitTxResult,
|
|
3512
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3513
|
+
>({
|
|
3275
3514
|
path: `/multisig/submit`,
|
|
3276
3515
|
method: 'POST',
|
|
3277
3516
|
body: data,
|
|
@@ -3295,7 +3534,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3295
3534
|
},
|
|
3296
3535
|
params: RequestParams = {}
|
|
3297
3536
|
) =>
|
|
3298
|
-
this.request<
|
|
3537
|
+
this.request<
|
|
3538
|
+
boolean,
|
|
3539
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3540
|
+
>({
|
|
3299
3541
|
path: `/miners/cpu-mining`,
|
|
3300
3542
|
method: 'POST',
|
|
3301
3543
|
query: query,
|
|
@@ -3320,7 +3562,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3320
3562
|
},
|
|
3321
3563
|
params: RequestParams = {}
|
|
3322
3564
|
) =>
|
|
3323
|
-
this.request<
|
|
3565
|
+
this.request<
|
|
3566
|
+
boolean,
|
|
3567
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3568
|
+
>({
|
|
3324
3569
|
path: `/miners/cpu-mining/mine-one-block`,
|
|
3325
3570
|
method: 'POST',
|
|
3326
3571
|
query: query,
|
|
@@ -3337,7 +3582,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3337
3582
|
* @request GET:/miners/addresses
|
|
3338
3583
|
*/
|
|
3339
3584
|
getMinersAddresses: (params: RequestParams = {}) =>
|
|
3340
|
-
this.request<
|
|
3585
|
+
this.request<
|
|
3586
|
+
MinerAddresses,
|
|
3587
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3588
|
+
>({
|
|
3341
3589
|
path: `/miners/addresses`,
|
|
3342
3590
|
method: 'GET',
|
|
3343
3591
|
format: 'json',
|
|
@@ -3353,7 +3601,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3353
3601
|
* @request PUT:/miners/addresses
|
|
3354
3602
|
*/
|
|
3355
3603
|
putMinersAddresses: (data: MinerAddresses, params: RequestParams = {}) =>
|
|
3356
|
-
this.request<
|
|
3604
|
+
this.request<
|
|
3605
|
+
void,
|
|
3606
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3607
|
+
>({
|
|
3357
3608
|
path: `/miners/addresses`,
|
|
3358
3609
|
method: 'PUT',
|
|
3359
3610
|
body: data,
|
|
@@ -3382,7 +3633,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3382
3633
|
},
|
|
3383
3634
|
params: RequestParams = {}
|
|
3384
3635
|
) =>
|
|
3385
|
-
this.request<
|
|
3636
|
+
this.request<
|
|
3637
|
+
ContractEvents,
|
|
3638
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3639
|
+
>({
|
|
3386
3640
|
path: `/events/contract/${contractAddress}`,
|
|
3387
3641
|
method: 'GET',
|
|
3388
3642
|
query: query,
|
|
@@ -3399,7 +3653,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3399
3653
|
* @request GET:/events/contract/{contractAddress}/current-count
|
|
3400
3654
|
*/
|
|
3401
3655
|
getEventsContractContractaddressCurrentCount: (contractAddress: string, params: RequestParams = {}) =>
|
|
3402
|
-
this.request<
|
|
3656
|
+
this.request<
|
|
3657
|
+
number,
|
|
3658
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3659
|
+
>({
|
|
3403
3660
|
path: `/events/contract/${contractAddress}/current-count`,
|
|
3404
3661
|
method: 'GET',
|
|
3405
3662
|
format: 'json',
|
|
@@ -3424,7 +3681,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3424
3681
|
) =>
|
|
3425
3682
|
this.request<
|
|
3426
3683
|
ContractEventsByTxId,
|
|
3427
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3684
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3428
3685
|
>({
|
|
3429
3686
|
path: `/events/tx-id/${txId}`,
|
|
3430
3687
|
method: 'GET',
|
|
@@ -3451,7 +3708,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3451
3708
|
) =>
|
|
3452
3709
|
this.request<
|
|
3453
3710
|
ContractEventsByBlockHash,
|
|
3454
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3711
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3455
3712
|
>({
|
|
3456
3713
|
path: `/events/block-hash/${blockHash}`,
|
|
3457
3714
|
method: 'GET',
|
|
@@ -3470,7 +3727,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3470
3727
|
* @request POST:/utils/verify-signature
|
|
3471
3728
|
*/
|
|
3472
3729
|
postUtilsVerifySignature: (data: VerifySignature, params: RequestParams = {}) =>
|
|
3473
|
-
this.request<
|
|
3730
|
+
this.request<
|
|
3731
|
+
boolean,
|
|
3732
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3733
|
+
>({
|
|
3474
3734
|
path: `/utils/verify-signature`,
|
|
3475
3735
|
method: 'POST',
|
|
3476
3736
|
body: data,
|
|
@@ -3488,7 +3748,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3488
3748
|
* @request POST:/utils/target-to-hashrate
|
|
3489
3749
|
*/
|
|
3490
3750
|
postUtilsTargetToHashrate: (data: TargetToHashrate, params: RequestParams = {}) =>
|
|
3491
|
-
this.request<
|
|
3751
|
+
this.request<
|
|
3752
|
+
Result,
|
|
3753
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3754
|
+
>({
|
|
3492
3755
|
path: `/utils/target-to-hashrate`,
|
|
3493
3756
|
method: 'POST',
|
|
3494
3757
|
body: data,
|
|
@@ -3506,10 +3769,77 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3506
3769
|
* @request PUT:/utils/check-hash-indexing
|
|
3507
3770
|
*/
|
|
3508
3771
|
putUtilsCheckHashIndexing: (params: RequestParams = {}) =>
|
|
3509
|
-
this.request<
|
|
3772
|
+
this.request<
|
|
3773
|
+
void,
|
|
3774
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3775
|
+
>({
|
|
3510
3776
|
path: `/utils/check-hash-indexing`,
|
|
3511
3777
|
method: 'PUT',
|
|
3512
3778
|
...params
|
|
3513
3779
|
}).then(convertHttpResponse)
|
|
3514
3780
|
}
|
|
3781
|
+
groupless = {
|
|
3782
|
+
/**
|
|
3783
|
+
* No description
|
|
3784
|
+
*
|
|
3785
|
+
* @tags Groupless
|
|
3786
|
+
* @name PostGrouplessTransfer
|
|
3787
|
+
* @summary Build unsigned transfer transactions from a groupless address
|
|
3788
|
+
* @request POST:/groupless/transfer
|
|
3789
|
+
*/
|
|
3790
|
+
postGrouplessTransfer: (data: BuildGrouplessTransferTx, params: RequestParams = {}) =>
|
|
3791
|
+
this.request<
|
|
3792
|
+
BuildTransferTxResult[],
|
|
3793
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3794
|
+
>({
|
|
3795
|
+
path: `/groupless/transfer`,
|
|
3796
|
+
method: 'POST',
|
|
3797
|
+
body: data,
|
|
3798
|
+
type: ContentType.Json,
|
|
3799
|
+
format: 'json',
|
|
3800
|
+
...params
|
|
3801
|
+
}).then(convertHttpResponse),
|
|
3802
|
+
|
|
3803
|
+
/**
|
|
3804
|
+
* No description
|
|
3805
|
+
*
|
|
3806
|
+
* @tags Groupless
|
|
3807
|
+
* @name PostGrouplessExecuteScript
|
|
3808
|
+
* @summary Build an unsigned execute script transaction from a groupless address
|
|
3809
|
+
* @request POST:/groupless/execute-script
|
|
3810
|
+
*/
|
|
3811
|
+
postGrouplessExecuteScript: (data: BuildGrouplessExecuteScriptTx, params: RequestParams = {}) =>
|
|
3812
|
+
this.request<
|
|
3813
|
+
BuildGrouplessExecuteScriptTxResult,
|
|
3814
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3815
|
+
>({
|
|
3816
|
+
path: `/groupless/execute-script`,
|
|
3817
|
+
method: 'POST',
|
|
3818
|
+
body: data,
|
|
3819
|
+
type: ContentType.Json,
|
|
3820
|
+
format: 'json',
|
|
3821
|
+
...params
|
|
3822
|
+
}).then(convertHttpResponse),
|
|
3823
|
+
|
|
3824
|
+
/**
|
|
3825
|
+
* No description
|
|
3826
|
+
*
|
|
3827
|
+
* @tags Groupless
|
|
3828
|
+
* @name PostGrouplessDeployContract
|
|
3829
|
+
* @summary Build an unsigned deploy contract transaction from a groupless address
|
|
3830
|
+
* @request POST:/groupless/deploy-contract
|
|
3831
|
+
*/
|
|
3832
|
+
postGrouplessDeployContract: (data: BuildGrouplessDeployContractTx, params: RequestParams = {}) =>
|
|
3833
|
+
this.request<
|
|
3834
|
+
BuildGrouplessDeployContractTxResult,
|
|
3835
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3836
|
+
>({
|
|
3837
|
+
path: `/groupless/deploy-contract`,
|
|
3838
|
+
method: 'POST',
|
|
3839
|
+
body: data,
|
|
3840
|
+
type: ContentType.Json,
|
|
3841
|
+
format: 'json',
|
|
3842
|
+
...params
|
|
3843
|
+
}).then(convertHttpResponse)
|
|
3844
|
+
}
|
|
3515
3845
|
}
|