@alephium/web3 1.11.4 → 1.11.6
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/api/api-alephium.d.ts +21 -4
- package/dist/src/api/api-alephium.js +1 -1
- package/dist/src/contract/contract.js +1 -1
- package/dist/src/signer/signer.js +1 -1
- package/dist/src/signer/types.d.ts +2 -1
- package/package.json +3 -3
- package/src/api/api-alephium.ts +340 -130
- package/src/contract/contract.ts +1 -1
- package/src/signer/signer.ts +1 -1
- package/src/signer/types.ts +2 -1
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,7 @@ export interface BuildExecuteScriptTxResult {
|
|
|
308
317
|
gasPrice: string
|
|
309
318
|
/** @format 32-byte-hash */
|
|
310
319
|
txId: string
|
|
311
|
-
|
|
320
|
+
simulationResult: SimulationResult
|
|
312
321
|
}
|
|
313
322
|
|
|
314
323
|
/** BuildInfo */
|
|
@@ -715,7 +724,7 @@ export interface Destination {
|
|
|
715
724
|
/** @format address */
|
|
716
725
|
address: string
|
|
717
726
|
/** @format uint256 */
|
|
718
|
-
attoAlphAmount
|
|
727
|
+
attoAlphAmount?: string
|
|
719
728
|
tokens?: Token[]
|
|
720
729
|
/** @format int64 */
|
|
721
730
|
lockTime?: number
|
|
@@ -781,6 +790,11 @@ export interface FunctionSig {
|
|
|
781
790
|
returnTypes: string[]
|
|
782
791
|
}
|
|
783
792
|
|
|
793
|
+
/** GatewayTimeout */
|
|
794
|
+
export interface GatewayTimeout {
|
|
795
|
+
detail: string
|
|
796
|
+
}
|
|
797
|
+
|
|
784
798
|
/** GhostUncleBlockEntry */
|
|
785
799
|
export interface GhostUncleBlockEntry {
|
|
786
800
|
/** @format block-hash */
|
|
@@ -1098,6 +1112,12 @@ export interface SignResult {
|
|
|
1098
1112
|
signature: string
|
|
1099
1113
|
}
|
|
1100
1114
|
|
|
1115
|
+
/** SimulationResult */
|
|
1116
|
+
export interface SimulationResult {
|
|
1117
|
+
contractInputs: AddressAssetState[]
|
|
1118
|
+
generatedOutputs: AddressAssetState[]
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1101
1121
|
/** Source */
|
|
1102
1122
|
export interface Source {
|
|
1103
1123
|
/** @format hex-string */
|
|
@@ -1194,7 +1214,7 @@ export interface TestContract {
|
|
|
1194
1214
|
/** @format address */
|
|
1195
1215
|
address?: string
|
|
1196
1216
|
/** @format address */
|
|
1197
|
-
|
|
1217
|
+
callerContractAddress?: string
|
|
1198
1218
|
/** @format contract */
|
|
1199
1219
|
bytecode: string
|
|
1200
1220
|
initialImmFields?: Val[]
|
|
@@ -1649,7 +1669,7 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
1649
1669
|
|
|
1650
1670
|
/**
|
|
1651
1671
|
* @title Alephium API
|
|
1652
|
-
* @version 3.
|
|
1672
|
+
* @version 3.12.2
|
|
1653
1673
|
* @baseUrl ../
|
|
1654
1674
|
*/
|
|
1655
1675
|
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
@@ -1663,7 +1683,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1663
1683
|
* @request GET:/wallets
|
|
1664
1684
|
*/
|
|
1665
1685
|
getWallets: (params: RequestParams = {}) =>
|
|
1666
|
-
this.request<
|
|
1686
|
+
this.request<
|
|
1687
|
+
WalletStatus[],
|
|
1688
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1689
|
+
>({
|
|
1667
1690
|
path: `/wallets`,
|
|
1668
1691
|
method: 'GET',
|
|
1669
1692
|
format: 'json',
|
|
@@ -1681,7 +1704,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1681
1704
|
putWallets: (data: WalletRestore, params: RequestParams = {}) =>
|
|
1682
1705
|
this.request<
|
|
1683
1706
|
WalletRestoreResult,
|
|
1684
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
1707
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1685
1708
|
>({
|
|
1686
1709
|
path: `/wallets`,
|
|
1687
1710
|
method: 'PUT',
|
|
@@ -1702,7 +1725,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1702
1725
|
postWallets: (data: WalletCreation, params: RequestParams = {}) =>
|
|
1703
1726
|
this.request<
|
|
1704
1727
|
WalletCreationResult,
|
|
1705
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
1728
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1706
1729
|
>({
|
|
1707
1730
|
path: `/wallets`,
|
|
1708
1731
|
method: 'POST',
|
|
@@ -1721,7 +1744,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1721
1744
|
* @request GET:/wallets/{wallet_name}
|
|
1722
1745
|
*/
|
|
1723
1746
|
getWalletsWalletName: (walletName: string, params: RequestParams = {}) =>
|
|
1724
|
-
this.request<
|
|
1747
|
+
this.request<
|
|
1748
|
+
WalletStatus,
|
|
1749
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1750
|
+
>({
|
|
1725
1751
|
path: `/wallets/${walletName}`,
|
|
1726
1752
|
method: 'GET',
|
|
1727
1753
|
format: 'json',
|
|
@@ -1743,7 +1769,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1743
1769
|
},
|
|
1744
1770
|
params: RequestParams = {}
|
|
1745
1771
|
) =>
|
|
1746
|
-
this.request<
|
|
1772
|
+
this.request<
|
|
1773
|
+
void,
|
|
1774
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1775
|
+
>({
|
|
1747
1776
|
path: `/wallets/${walletName}`,
|
|
1748
1777
|
method: 'DELETE',
|
|
1749
1778
|
query: query,
|
|
@@ -1759,7 +1788,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1759
1788
|
* @request POST:/wallets/{wallet_name}/lock
|
|
1760
1789
|
*/
|
|
1761
1790
|
postWalletsWalletNameLock: (walletName: string, params: RequestParams = {}) =>
|
|
1762
|
-
this.request<
|
|
1791
|
+
this.request<
|
|
1792
|
+
void,
|
|
1793
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1794
|
+
>({
|
|
1763
1795
|
path: `/wallets/${walletName}/lock`,
|
|
1764
1796
|
method: 'POST',
|
|
1765
1797
|
...params
|
|
@@ -1774,7 +1806,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1774
1806
|
* @request POST:/wallets/{wallet_name}/unlock
|
|
1775
1807
|
*/
|
|
1776
1808
|
postWalletsWalletNameUnlock: (walletName: string, data: WalletUnlock, params: RequestParams = {}) =>
|
|
1777
|
-
this.request<
|
|
1809
|
+
this.request<
|
|
1810
|
+
void,
|
|
1811
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1812
|
+
>({
|
|
1778
1813
|
path: `/wallets/${walletName}/unlock`,
|
|
1779
1814
|
method: 'POST',
|
|
1780
1815
|
body: data,
|
|
@@ -1791,7 +1826,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1791
1826
|
* @request GET:/wallets/{wallet_name}/balances
|
|
1792
1827
|
*/
|
|
1793
1828
|
getWalletsWalletNameBalances: (walletName: string, params: RequestParams = {}) =>
|
|
1794
|
-
this.request<
|
|
1829
|
+
this.request<
|
|
1830
|
+
Balances,
|
|
1831
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1832
|
+
>({
|
|
1795
1833
|
path: `/wallets/${walletName}/balances`,
|
|
1796
1834
|
method: 'GET',
|
|
1797
1835
|
format: 'json',
|
|
@@ -1809,7 +1847,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1809
1847
|
postWalletsWalletNameRevealMnemonic: (walletName: string, data: RevealMnemonic, params: RequestParams = {}) =>
|
|
1810
1848
|
this.request<
|
|
1811
1849
|
RevealMnemonicResult,
|
|
1812
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
1850
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1813
1851
|
>({
|
|
1814
1852
|
path: `/wallets/${walletName}/reveal-mnemonic`,
|
|
1815
1853
|
method: 'POST',
|
|
@@ -1828,7 +1866,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1828
1866
|
* @request POST:/wallets/{wallet_name}/transfer
|
|
1829
1867
|
*/
|
|
1830
1868
|
postWalletsWalletNameTransfer: (walletName: string, data: Transfer, params: RequestParams = {}) =>
|
|
1831
|
-
this.request<
|
|
1869
|
+
this.request<
|
|
1870
|
+
TransferResult,
|
|
1871
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1872
|
+
>({
|
|
1832
1873
|
path: `/wallets/${walletName}/transfer`,
|
|
1833
1874
|
method: 'POST',
|
|
1834
1875
|
body: data,
|
|
@@ -1846,7 +1887,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1846
1887
|
* @request POST:/wallets/{wallet_name}/sweep-active-address
|
|
1847
1888
|
*/
|
|
1848
1889
|
postWalletsWalletNameSweepActiveAddress: (walletName: string, data: Sweep, params: RequestParams = {}) =>
|
|
1849
|
-
this.request<
|
|
1890
|
+
this.request<
|
|
1891
|
+
TransferResults,
|
|
1892
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1893
|
+
>({
|
|
1850
1894
|
path: `/wallets/${walletName}/sweep-active-address`,
|
|
1851
1895
|
method: 'POST',
|
|
1852
1896
|
body: data,
|
|
@@ -1864,7 +1908,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1864
1908
|
* @request POST:/wallets/{wallet_name}/sweep-all-addresses
|
|
1865
1909
|
*/
|
|
1866
1910
|
postWalletsWalletNameSweepAllAddresses: (walletName: string, data: Sweep, params: RequestParams = {}) =>
|
|
1867
|
-
this.request<
|
|
1911
|
+
this.request<
|
|
1912
|
+
TransferResults,
|
|
1913
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1914
|
+
>({
|
|
1868
1915
|
path: `/wallets/${walletName}/sweep-all-addresses`,
|
|
1869
1916
|
method: 'POST',
|
|
1870
1917
|
body: data,
|
|
@@ -1882,7 +1929,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1882
1929
|
* @request POST:/wallets/{wallet_name}/sign
|
|
1883
1930
|
*/
|
|
1884
1931
|
postWalletsWalletNameSign: (walletName: string, data: Sign, params: RequestParams = {}) =>
|
|
1885
|
-
this.request<
|
|
1932
|
+
this.request<
|
|
1933
|
+
SignResult,
|
|
1934
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1935
|
+
>({
|
|
1886
1936
|
path: `/wallets/${walletName}/sign`,
|
|
1887
1937
|
method: 'POST',
|
|
1888
1938
|
body: data,
|
|
@@ -1900,7 +1950,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1900
1950
|
* @request GET:/wallets/{wallet_name}/addresses
|
|
1901
1951
|
*/
|
|
1902
1952
|
getWalletsWalletNameAddresses: (walletName: string, params: RequestParams = {}) =>
|
|
1903
|
-
this.request<
|
|
1953
|
+
this.request<
|
|
1954
|
+
Addresses,
|
|
1955
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1956
|
+
>({
|
|
1904
1957
|
path: `/wallets/${walletName}/addresses`,
|
|
1905
1958
|
method: 'GET',
|
|
1906
1959
|
format: 'json',
|
|
@@ -1916,7 +1969,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1916
1969
|
* @request GET:/wallets/{wallet_name}/addresses/{address}
|
|
1917
1970
|
*/
|
|
1918
1971
|
getWalletsWalletNameAddressesAddress: (walletName: string, address: string, params: RequestParams = {}) =>
|
|
1919
|
-
this.request<
|
|
1972
|
+
this.request<
|
|
1973
|
+
AddressInfo,
|
|
1974
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1975
|
+
>({
|
|
1920
1976
|
path: `/wallets/${walletName}/addresses/${address}`,
|
|
1921
1977
|
method: 'GET',
|
|
1922
1978
|
format: 'json',
|
|
@@ -1934,7 +1990,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1934
1990
|
getWalletsWalletNameMinerAddresses: (walletName: string, params: RequestParams = {}) =>
|
|
1935
1991
|
this.request<
|
|
1936
1992
|
MinerAddressesInfo[],
|
|
1937
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
1993
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
1938
1994
|
>({
|
|
1939
1995
|
path: `/wallets/${walletName}/miner-addresses`,
|
|
1940
1996
|
method: 'GET',
|
|
@@ -1958,7 +2014,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1958
2014
|
},
|
|
1959
2015
|
params: RequestParams = {}
|
|
1960
2016
|
) =>
|
|
1961
|
-
this.request<
|
|
2017
|
+
this.request<
|
|
2018
|
+
AddressInfo,
|
|
2019
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2020
|
+
>({
|
|
1962
2021
|
path: `/wallets/${walletName}/derive-next-address`,
|
|
1963
2022
|
method: 'POST',
|
|
1964
2023
|
query: query,
|
|
@@ -1975,7 +2034,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1975
2034
|
* @request POST:/wallets/{wallet_name}/derive-next-miner-addresses
|
|
1976
2035
|
*/
|
|
1977
2036
|
postWalletsWalletNameDeriveNextMinerAddresses: (walletName: string, params: RequestParams = {}) =>
|
|
1978
|
-
this.request<
|
|
2037
|
+
this.request<
|
|
2038
|
+
AddressInfo[],
|
|
2039
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2040
|
+
>({
|
|
1979
2041
|
path: `/wallets/${walletName}/derive-next-miner-addresses`,
|
|
1980
2042
|
method: 'POST',
|
|
1981
2043
|
format: 'json',
|
|
@@ -1995,7 +2057,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
1995
2057
|
data: ChangeActiveAddress,
|
|
1996
2058
|
params: RequestParams = {}
|
|
1997
2059
|
) =>
|
|
1998
|
-
this.request<
|
|
2060
|
+
this.request<
|
|
2061
|
+
void,
|
|
2062
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2063
|
+
>({
|
|
1999
2064
|
path: `/wallets/${walletName}/change-active-address`,
|
|
2000
2065
|
method: 'POST',
|
|
2001
2066
|
body: data,
|
|
@@ -2013,7 +2078,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2013
2078
|
* @request GET:/infos/node
|
|
2014
2079
|
*/
|
|
2015
2080
|
getInfosNode: (params: RequestParams = {}) =>
|
|
2016
|
-
this.request<
|
|
2081
|
+
this.request<
|
|
2082
|
+
NodeInfo,
|
|
2083
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2084
|
+
>({
|
|
2017
2085
|
path: `/infos/node`,
|
|
2018
2086
|
method: 'GET',
|
|
2019
2087
|
format: 'json',
|
|
@@ -2029,7 +2097,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2029
2097
|
* @request GET:/infos/version
|
|
2030
2098
|
*/
|
|
2031
2099
|
getInfosVersion: (params: RequestParams = {}) =>
|
|
2032
|
-
this.request<
|
|
2100
|
+
this.request<
|
|
2101
|
+
NodeVersion,
|
|
2102
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2103
|
+
>({
|
|
2033
2104
|
path: `/infos/version`,
|
|
2034
2105
|
method: 'GET',
|
|
2035
2106
|
format: 'json',
|
|
@@ -2045,7 +2116,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2045
2116
|
* @request GET:/infos/chain-params
|
|
2046
2117
|
*/
|
|
2047
2118
|
getInfosChainParams: (params: RequestParams = {}) =>
|
|
2048
|
-
this.request<
|
|
2119
|
+
this.request<
|
|
2120
|
+
ChainParams,
|
|
2121
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2122
|
+
>({
|
|
2049
2123
|
path: `/infos/chain-params`,
|
|
2050
2124
|
method: 'GET',
|
|
2051
2125
|
format: 'json',
|
|
@@ -2061,7 +2135,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2061
2135
|
* @request GET:/infos/self-clique
|
|
2062
2136
|
*/
|
|
2063
2137
|
getInfosSelfClique: (params: RequestParams = {}) =>
|
|
2064
|
-
this.request<
|
|
2138
|
+
this.request<
|
|
2139
|
+
SelfClique,
|
|
2140
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2141
|
+
>({
|
|
2065
2142
|
path: `/infos/self-clique`,
|
|
2066
2143
|
method: 'GET',
|
|
2067
2144
|
format: 'json',
|
|
@@ -2079,7 +2156,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2079
2156
|
getInfosInterCliquePeerInfo: (params: RequestParams = {}) =>
|
|
2080
2157
|
this.request<
|
|
2081
2158
|
InterCliquePeerInfo[],
|
|
2082
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2159
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2083
2160
|
>({
|
|
2084
2161
|
path: `/infos/inter-clique-peer-info`,
|
|
2085
2162
|
method: 'GET',
|
|
@@ -2096,7 +2173,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2096
2173
|
* @request GET:/infos/discovered-neighbors
|
|
2097
2174
|
*/
|
|
2098
2175
|
getInfosDiscoveredNeighbors: (params: RequestParams = {}) =>
|
|
2099
|
-
this.request<
|
|
2176
|
+
this.request<
|
|
2177
|
+
BrokerInfo[],
|
|
2178
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2179
|
+
>({
|
|
2100
2180
|
path: `/infos/discovered-neighbors`,
|
|
2101
2181
|
method: 'GET',
|
|
2102
2182
|
format: 'json',
|
|
@@ -2112,7 +2192,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2112
2192
|
* @request GET:/infos/misbehaviors
|
|
2113
2193
|
*/
|
|
2114
2194
|
getInfosMisbehaviors: (params: RequestParams = {}) =>
|
|
2115
|
-
this.request<
|
|
2195
|
+
this.request<
|
|
2196
|
+
PeerMisbehavior[],
|
|
2197
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2198
|
+
>({
|
|
2116
2199
|
path: `/infos/misbehaviors`,
|
|
2117
2200
|
method: 'GET',
|
|
2118
2201
|
format: 'json',
|
|
@@ -2128,7 +2211,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2128
2211
|
* @request POST:/infos/misbehaviors
|
|
2129
2212
|
*/
|
|
2130
2213
|
postInfosMisbehaviors: (data: MisbehaviorAction, params: RequestParams = {}) =>
|
|
2131
|
-
this.request<
|
|
2214
|
+
this.request<
|
|
2215
|
+
void,
|
|
2216
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2217
|
+
>({
|
|
2132
2218
|
path: `/infos/misbehaviors`,
|
|
2133
2219
|
method: 'POST',
|
|
2134
2220
|
body: data,
|
|
@@ -2145,7 +2231,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2145
2231
|
* @request GET:/infos/unreachable
|
|
2146
2232
|
*/
|
|
2147
2233
|
getInfosUnreachable: (params: RequestParams = {}) =>
|
|
2148
|
-
this.request<
|
|
2234
|
+
this.request<
|
|
2235
|
+
string[],
|
|
2236
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2237
|
+
>({
|
|
2149
2238
|
path: `/infos/unreachable`,
|
|
2150
2239
|
method: 'GET',
|
|
2151
2240
|
format: 'json',
|
|
@@ -2161,7 +2250,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2161
2250
|
* @request POST:/infos/discovery
|
|
2162
2251
|
*/
|
|
2163
2252
|
postInfosDiscovery: (data: DiscoveryAction, params: RequestParams = {}) =>
|
|
2164
|
-
this.request<
|
|
2253
|
+
this.request<
|
|
2254
|
+
void,
|
|
2255
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2256
|
+
>({
|
|
2165
2257
|
path: `/infos/discovery`,
|
|
2166
2258
|
method: 'POST',
|
|
2167
2259
|
body: data,
|
|
@@ -2192,7 +2284,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2192
2284
|
},
|
|
2193
2285
|
params: RequestParams = {}
|
|
2194
2286
|
) =>
|
|
2195
|
-
this.request<
|
|
2287
|
+
this.request<
|
|
2288
|
+
HashRateResponse,
|
|
2289
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2290
|
+
>({
|
|
2196
2291
|
path: `/infos/history-hashrate`,
|
|
2197
2292
|
method: 'GET',
|
|
2198
2293
|
query: query,
|
|
@@ -2218,7 +2313,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2218
2313
|
},
|
|
2219
2314
|
params: RequestParams = {}
|
|
2220
2315
|
) =>
|
|
2221
|
-
this.request<
|
|
2316
|
+
this.request<
|
|
2317
|
+
HashRateResponse,
|
|
2318
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2319
|
+
>({
|
|
2222
2320
|
path: `/infos/current-hashrate`,
|
|
2223
2321
|
method: 'GET',
|
|
2224
2322
|
query: query,
|
|
@@ -2235,7 +2333,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2235
2333
|
* @request GET:/infos/current-difficulty
|
|
2236
2334
|
*/
|
|
2237
2335
|
getInfosCurrentDifficulty: (params: RequestParams = {}) =>
|
|
2238
|
-
this.request<
|
|
2336
|
+
this.request<
|
|
2337
|
+
CurrentDifficulty,
|
|
2338
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2339
|
+
>({
|
|
2239
2340
|
path: `/infos/current-difficulty`,
|
|
2240
2341
|
method: 'GET',
|
|
2241
2342
|
format: 'json',
|
|
@@ -2268,7 +2369,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2268
2369
|
) =>
|
|
2269
2370
|
this.request<
|
|
2270
2371
|
BlocksPerTimeStampRange,
|
|
2271
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2372
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2272
2373
|
>({
|
|
2273
2374
|
path: `/blockflow/blocks`,
|
|
2274
2375
|
method: 'GET',
|
|
@@ -2302,7 +2403,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2302
2403
|
) =>
|
|
2303
2404
|
this.request<
|
|
2304
2405
|
BlocksAndEventsPerTimeStampRange,
|
|
2305
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2406
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2306
2407
|
>({
|
|
2307
2408
|
path: `/blockflow/blocks-with-events`,
|
|
2308
2409
|
method: 'GET',
|
|
@@ -2336,7 +2437,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2336
2437
|
) =>
|
|
2337
2438
|
this.request<
|
|
2338
2439
|
RichBlocksAndEventsPerTimeStampRange,
|
|
2339
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2440
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2340
2441
|
>({
|
|
2341
2442
|
path: `/blockflow/rich-blocks`,
|
|
2342
2443
|
method: 'GET',
|
|
@@ -2354,7 +2455,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2354
2455
|
* @request GET:/blockflow/blocks/{block_hash}
|
|
2355
2456
|
*/
|
|
2356
2457
|
getBlockflowBlocksBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2357
|
-
this.request<
|
|
2458
|
+
this.request<
|
|
2459
|
+
BlockEntry,
|
|
2460
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2461
|
+
>({
|
|
2358
2462
|
path: `/blockflow/blocks/${blockHash}`,
|
|
2359
2463
|
method: 'GET',
|
|
2360
2464
|
format: 'json',
|
|
@@ -2370,7 +2474,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2370
2474
|
* @request GET:/blockflow/main-chain-block-by-ghost-uncle/{ghost_uncle_hash}
|
|
2371
2475
|
*/
|
|
2372
2476
|
getBlockflowMainChainBlockByGhostUncleGhostUncleHash: (ghostUncleHash: string, params: RequestParams = {}) =>
|
|
2373
|
-
this.request<
|
|
2477
|
+
this.request<
|
|
2478
|
+
BlockEntry,
|
|
2479
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2480
|
+
>({
|
|
2374
2481
|
path: `/blockflow/main-chain-block-by-ghost-uncle/${ghostUncleHash}`,
|
|
2375
2482
|
method: 'GET',
|
|
2376
2483
|
format: 'json',
|
|
@@ -2386,7 +2493,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2386
2493
|
* @request GET:/blockflow/blocks-with-events/{block_hash}
|
|
2387
2494
|
*/
|
|
2388
2495
|
getBlockflowBlocksWithEventsBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2389
|
-
this.request<
|
|
2496
|
+
this.request<
|
|
2497
|
+
BlockAndEvents,
|
|
2498
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2499
|
+
>({
|
|
2390
2500
|
path: `/blockflow/blocks-with-events/${blockHash}`,
|
|
2391
2501
|
method: 'GET',
|
|
2392
2502
|
format: 'json',
|
|
@@ -2402,14 +2512,15 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2402
2512
|
* @request GET:/blockflow/rich-blocks/{block_hash}
|
|
2403
2513
|
*/
|
|
2404
2514
|
getBlockflowRichBlocksBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2405
|
-
this.request<
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2515
|
+
this.request<
|
|
2516
|
+
RichBlockAndEvents,
|
|
2517
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2518
|
+
>({
|
|
2519
|
+
path: `/blockflow/rich-blocks/${blockHash}`,
|
|
2520
|
+
method: 'GET',
|
|
2521
|
+
format: 'json',
|
|
2522
|
+
...params
|
|
2523
|
+
}).then(convertHttpResponse),
|
|
2413
2524
|
|
|
2414
2525
|
/**
|
|
2415
2526
|
* No description
|
|
@@ -2426,7 +2537,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2426
2537
|
},
|
|
2427
2538
|
params: RequestParams = {}
|
|
2428
2539
|
) =>
|
|
2429
|
-
this.request<
|
|
2540
|
+
this.request<
|
|
2541
|
+
boolean,
|
|
2542
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2543
|
+
>({
|
|
2430
2544
|
path: `/blockflow/is-block-in-main-chain`,
|
|
2431
2545
|
method: 'GET',
|
|
2432
2546
|
query: query,
|
|
@@ -2453,7 +2567,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2453
2567
|
},
|
|
2454
2568
|
params: RequestParams = {}
|
|
2455
2569
|
) =>
|
|
2456
|
-
this.request<
|
|
2570
|
+
this.request<
|
|
2571
|
+
HashesAtHeight,
|
|
2572
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2573
|
+
>({
|
|
2457
2574
|
path: `/blockflow/hashes`,
|
|
2458
2575
|
method: 'GET',
|
|
2459
2576
|
query: query,
|
|
@@ -2478,7 +2595,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2478
2595
|
},
|
|
2479
2596
|
params: RequestParams = {}
|
|
2480
2597
|
) =>
|
|
2481
|
-
this.request<
|
|
2598
|
+
this.request<
|
|
2599
|
+
ChainInfo,
|
|
2600
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2601
|
+
>({
|
|
2482
2602
|
path: `/blockflow/chain-info`,
|
|
2483
2603
|
method: 'GET',
|
|
2484
2604
|
query: query,
|
|
@@ -2495,7 +2615,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2495
2615
|
* @request GET:/blockflow/headers/{block_hash}
|
|
2496
2616
|
*/
|
|
2497
2617
|
getBlockflowHeadersBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2498
|
-
this.request<
|
|
2618
|
+
this.request<
|
|
2619
|
+
BlockHeaderEntry,
|
|
2620
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2621
|
+
>({
|
|
2499
2622
|
path: `/blockflow/headers/${blockHash}`,
|
|
2500
2623
|
method: 'GET',
|
|
2501
2624
|
format: 'json',
|
|
@@ -2511,7 +2634,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2511
2634
|
* @request GET:/blockflow/raw-blocks/{block_hash}
|
|
2512
2635
|
*/
|
|
2513
2636
|
getBlockflowRawBlocksBlockHash: (blockHash: string, params: RequestParams = {}) =>
|
|
2514
|
-
this.request<
|
|
2637
|
+
this.request<
|
|
2638
|
+
RawBlock,
|
|
2639
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2640
|
+
>({
|
|
2515
2641
|
path: `/blockflow/raw-blocks/${blockHash}`,
|
|
2516
2642
|
method: 'GET',
|
|
2517
2643
|
format: 'json',
|
|
@@ -2534,7 +2660,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2534
2660
|
},
|
|
2535
2661
|
params: RequestParams = {}
|
|
2536
2662
|
) =>
|
|
2537
|
-
this.request<
|
|
2663
|
+
this.request<
|
|
2664
|
+
Balance,
|
|
2665
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2666
|
+
>({
|
|
2538
2667
|
path: `/addresses/${address}/balance`,
|
|
2539
2668
|
method: 'GET',
|
|
2540
2669
|
query: query,
|
|
@@ -2551,7 +2680,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2551
2680
|
* @request GET:/addresses/{address}/utxos
|
|
2552
2681
|
*/
|
|
2553
2682
|
getAddressesAddressUtxos: (address: string, params: RequestParams = {}) =>
|
|
2554
|
-
this.request<
|
|
2683
|
+
this.request<
|
|
2684
|
+
UTXOs,
|
|
2685
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2686
|
+
>({
|
|
2555
2687
|
path: `/addresses/${address}/utxos`,
|
|
2556
2688
|
method: 'GET',
|
|
2557
2689
|
format: 'json',
|
|
@@ -2567,7 +2699,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2567
2699
|
* @request GET:/addresses/{address}/group
|
|
2568
2700
|
*/
|
|
2569
2701
|
getAddressesAddressGroup: (address: string, params: RequestParams = {}) =>
|
|
2570
|
-
this.request<
|
|
2702
|
+
this.request<
|
|
2703
|
+
Group,
|
|
2704
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2705
|
+
>({
|
|
2571
2706
|
path: `/addresses/${address}/group`,
|
|
2572
2707
|
method: 'GET',
|
|
2573
2708
|
format: 'json',
|
|
@@ -2586,7 +2721,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2586
2721
|
postTransactionsBuild: (data: BuildTransferTx, params: RequestParams = {}) =>
|
|
2587
2722
|
this.request<
|
|
2588
2723
|
BuildTransferTxResult,
|
|
2589
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2724
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2590
2725
|
>({
|
|
2591
2726
|
path: `/transactions/build`,
|
|
2592
2727
|
method: 'POST',
|
|
@@ -2607,7 +2742,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2607
2742
|
postTransactionsBuildTransferFromOneToManyGroups: (data: BuildTransferTx, params: RequestParams = {}) =>
|
|
2608
2743
|
this.request<
|
|
2609
2744
|
BuildTransferTxResult[],
|
|
2610
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2745
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2611
2746
|
>({
|
|
2612
2747
|
path: `/transactions/build-transfer-from-one-to-many-groups`,
|
|
2613
2748
|
method: 'POST',
|
|
@@ -2628,7 +2763,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2628
2763
|
postTransactionsBuildMultiAddresses: (data: BuildMultiAddressesTransaction, params: RequestParams = {}) =>
|
|
2629
2764
|
this.request<
|
|
2630
2765
|
BuildTransferTxResult,
|
|
2631
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2766
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2632
2767
|
>({
|
|
2633
2768
|
path: `/transactions/build-multi-addresses`,
|
|
2634
2769
|
method: 'POST',
|
|
@@ -2649,7 +2784,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2649
2784
|
postTransactionsSweepAddressBuild: (data: BuildSweepAddressTransactions, params: RequestParams = {}) =>
|
|
2650
2785
|
this.request<
|
|
2651
2786
|
BuildSweepAddressTransactionsResult,
|
|
2652
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2787
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2653
2788
|
>({
|
|
2654
2789
|
path: `/transactions/sweep-address/build`,
|
|
2655
2790
|
method: 'POST',
|
|
@@ -2668,7 +2803,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2668
2803
|
* @request POST:/transactions/submit
|
|
2669
2804
|
*/
|
|
2670
2805
|
postTransactionsSubmit: (data: SubmitTransaction, params: RequestParams = {}) =>
|
|
2671
|
-
this.request<
|
|
2806
|
+
this.request<
|
|
2807
|
+
SubmitTxResult,
|
|
2808
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2809
|
+
>({
|
|
2672
2810
|
path: `/transactions/submit`,
|
|
2673
2811
|
method: 'POST',
|
|
2674
2812
|
body: data,
|
|
@@ -2688,7 +2826,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2688
2826
|
postTransactionsDecodeUnsignedTx: (data: DecodeUnsignedTx, params: RequestParams = {}) =>
|
|
2689
2827
|
this.request<
|
|
2690
2828
|
DecodeUnsignedTxResult,
|
|
2691
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2829
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2692
2830
|
>({
|
|
2693
2831
|
path: `/transactions/decode-unsigned-tx`,
|
|
2694
2832
|
method: 'POST',
|
|
@@ -2716,7 +2854,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2716
2854
|
},
|
|
2717
2855
|
params: RequestParams = {}
|
|
2718
2856
|
) =>
|
|
2719
|
-
this.request<
|
|
2857
|
+
this.request<
|
|
2858
|
+
Transaction,
|
|
2859
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2860
|
+
>({
|
|
2720
2861
|
path: `/transactions/details/${txId}`,
|
|
2721
2862
|
method: 'GET',
|
|
2722
2863
|
query: query,
|
|
@@ -2742,7 +2883,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2742
2883
|
},
|
|
2743
2884
|
params: RequestParams = {}
|
|
2744
2885
|
) =>
|
|
2745
|
-
this.request<
|
|
2886
|
+
this.request<
|
|
2887
|
+
RichTransaction,
|
|
2888
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2889
|
+
>({
|
|
2746
2890
|
path: `/transactions/rich-details/${txId}`,
|
|
2747
2891
|
method: 'GET',
|
|
2748
2892
|
query: query,
|
|
@@ -2768,7 +2912,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2768
2912
|
},
|
|
2769
2913
|
params: RequestParams = {}
|
|
2770
2914
|
) =>
|
|
2771
|
-
this.request<
|
|
2915
|
+
this.request<
|
|
2916
|
+
RawTransaction,
|
|
2917
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2918
|
+
>({
|
|
2772
2919
|
path: `/transactions/raw/${txId}`,
|
|
2773
2920
|
method: 'GET',
|
|
2774
2921
|
query: query,
|
|
@@ -2795,7 +2942,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2795
2942
|
},
|
|
2796
2943
|
params: RequestParams = {}
|
|
2797
2944
|
) =>
|
|
2798
|
-
this.request<
|
|
2945
|
+
this.request<
|
|
2946
|
+
TxStatus,
|
|
2947
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2948
|
+
>({
|
|
2799
2949
|
path: `/transactions/status`,
|
|
2800
2950
|
method: 'GET',
|
|
2801
2951
|
query: query,
|
|
@@ -2820,7 +2970,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2820
2970
|
},
|
|
2821
2971
|
params: RequestParams = {}
|
|
2822
2972
|
) =>
|
|
2823
|
-
this.request<
|
|
2973
|
+
this.request<
|
|
2974
|
+
string,
|
|
2975
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2976
|
+
>({
|
|
2824
2977
|
path: `/transactions/tx-id-from-outputref`,
|
|
2825
2978
|
method: 'GET',
|
|
2826
2979
|
query: query,
|
|
@@ -2839,7 +2992,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2839
2992
|
postTransactionsBuildChained: (data: BuildChainedTx[], params: RequestParams = {}) =>
|
|
2840
2993
|
this.request<
|
|
2841
2994
|
BuildChainedTxResult[],
|
|
2842
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
2995
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2843
2996
|
>({
|
|
2844
2997
|
path: `/transactions/build-chained`,
|
|
2845
2998
|
method: 'POST',
|
|
@@ -2861,7 +3014,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2861
3014
|
getMempoolTransactions: (params: RequestParams = {}) =>
|
|
2862
3015
|
this.request<
|
|
2863
3016
|
MempoolTransactions[],
|
|
2864
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3017
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2865
3018
|
>({
|
|
2866
3019
|
path: `/mempool/transactions`,
|
|
2867
3020
|
method: 'GET',
|
|
@@ -2878,7 +3031,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2878
3031
|
* @request DELETE:/mempool/transactions
|
|
2879
3032
|
*/
|
|
2880
3033
|
deleteMempoolTransactions: (params: RequestParams = {}) =>
|
|
2881
|
-
this.request<
|
|
3034
|
+
this.request<
|
|
3035
|
+
void,
|
|
3036
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3037
|
+
>({
|
|
2882
3038
|
path: `/mempool/transactions`,
|
|
2883
3039
|
method: 'DELETE',
|
|
2884
3040
|
...params
|
|
@@ -2899,7 +3055,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2899
3055
|
},
|
|
2900
3056
|
params: RequestParams = {}
|
|
2901
3057
|
) =>
|
|
2902
|
-
this.request<
|
|
3058
|
+
this.request<
|
|
3059
|
+
void,
|
|
3060
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3061
|
+
>({
|
|
2903
3062
|
path: `/mempool/transactions/rebroadcast`,
|
|
2904
3063
|
method: 'PUT',
|
|
2905
3064
|
query: query,
|
|
@@ -2915,7 +3074,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2915
3074
|
* @request PUT:/mempool/transactions/validate
|
|
2916
3075
|
*/
|
|
2917
3076
|
putMempoolTransactionsValidate: (params: RequestParams = {}) =>
|
|
2918
|
-
this.request<
|
|
3077
|
+
this.request<
|
|
3078
|
+
void,
|
|
3079
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3080
|
+
>({
|
|
2919
3081
|
path: `/mempool/transactions/validate`,
|
|
2920
3082
|
method: 'PUT',
|
|
2921
3083
|
...params
|
|
@@ -2933,7 +3095,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2933
3095
|
postContractsCompileScript: (data: Script, params: RequestParams = {}) =>
|
|
2934
3096
|
this.request<
|
|
2935
3097
|
CompileScriptResult,
|
|
2936
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3098
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2937
3099
|
>({
|
|
2938
3100
|
path: `/contracts/compile-script`,
|
|
2939
3101
|
method: 'POST',
|
|
@@ -2954,7 +3116,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2954
3116
|
postContractsUnsignedTxExecuteScript: (data: BuildExecuteScriptTx, params: RequestParams = {}) =>
|
|
2955
3117
|
this.request<
|
|
2956
3118
|
BuildExecuteScriptTxResult,
|
|
2957
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3119
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2958
3120
|
>({
|
|
2959
3121
|
path: `/contracts/unsigned-tx/execute-script`,
|
|
2960
3122
|
method: 'POST',
|
|
@@ -2975,7 +3137,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2975
3137
|
postContractsCompileContract: (data: Contract, params: RequestParams = {}) =>
|
|
2976
3138
|
this.request<
|
|
2977
3139
|
CompileContractResult,
|
|
2978
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3140
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
2979
3141
|
>({
|
|
2980
3142
|
path: `/contracts/compile-contract`,
|
|
2981
3143
|
method: 'POST',
|
|
@@ -2996,7 +3158,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
2996
3158
|
postContractsCompileProject: (data: Project, params: RequestParams = {}) =>
|
|
2997
3159
|
this.request<
|
|
2998
3160
|
CompileProjectResult,
|
|
2999
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3161
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3000
3162
|
>({
|
|
3001
3163
|
path: `/contracts/compile-project`,
|
|
3002
3164
|
method: 'POST',
|
|
@@ -3017,7 +3179,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3017
3179
|
postContractsUnsignedTxDeployContract: (data: BuildDeployContractTx, params: RequestParams = {}) =>
|
|
3018
3180
|
this.request<
|
|
3019
3181
|
BuildDeployContractTxResult,
|
|
3020
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3182
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3021
3183
|
>({
|
|
3022
3184
|
path: `/contracts/unsigned-tx/deploy-contract`,
|
|
3023
3185
|
method: 'POST',
|
|
@@ -3036,7 +3198,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3036
3198
|
* @request GET:/contracts/{address}/state
|
|
3037
3199
|
*/
|
|
3038
3200
|
getContractsAddressState: (address: string, params: RequestParams = {}) =>
|
|
3039
|
-
this.request<
|
|
3201
|
+
this.request<
|
|
3202
|
+
ContractState,
|
|
3203
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3204
|
+
>({
|
|
3040
3205
|
path: `/contracts/${address}/state`,
|
|
3041
3206
|
method: 'GET',
|
|
3042
3207
|
format: 'json',
|
|
@@ -3052,7 +3217,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3052
3217
|
* @request GET:/contracts/{codeHash}/code
|
|
3053
3218
|
*/
|
|
3054
3219
|
getContractsCodehashCode: (codeHash: string, params: RequestParams = {}) =>
|
|
3055
|
-
this.request<
|
|
3220
|
+
this.request<
|
|
3221
|
+
string,
|
|
3222
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3223
|
+
>({
|
|
3056
3224
|
path: `/contracts/${codeHash}/code`,
|
|
3057
3225
|
method: 'GET',
|
|
3058
3226
|
format: 'json',
|
|
@@ -3068,16 +3236,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3068
3236
|
* @request POST:/contracts/test-contract
|
|
3069
3237
|
*/
|
|
3070
3238
|
postContractsTestContract: (data: TestContract, params: RequestParams = {}) =>
|
|
3071
|
-
this.request<
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3239
|
+
this.request<
|
|
3240
|
+
TestContractResult,
|
|
3241
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3242
|
+
>({
|
|
3243
|
+
path: `/contracts/test-contract`,
|
|
3244
|
+
method: 'POST',
|
|
3245
|
+
body: data,
|
|
3246
|
+
type: ContentType.Json,
|
|
3247
|
+
format: 'json',
|
|
3248
|
+
...params
|
|
3249
|
+
}).then(convertHttpResponse),
|
|
3081
3250
|
|
|
3082
3251
|
/**
|
|
3083
3252
|
* No description
|
|
@@ -3088,16 +3257,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3088
3257
|
* @request POST:/contracts/call-contract
|
|
3089
3258
|
*/
|
|
3090
3259
|
postContractsCallContract: (data: CallContract, params: RequestParams = {}) =>
|
|
3091
|
-
this.request<
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3260
|
+
this.request<
|
|
3261
|
+
CallContractResult,
|
|
3262
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3263
|
+
>({
|
|
3264
|
+
path: `/contracts/call-contract`,
|
|
3265
|
+
method: 'POST',
|
|
3266
|
+
body: data,
|
|
3267
|
+
type: ContentType.Json,
|
|
3268
|
+
format: 'json',
|
|
3269
|
+
...params
|
|
3270
|
+
}).then(convertHttpResponse),
|
|
3101
3271
|
|
|
3102
3272
|
/**
|
|
3103
3273
|
* No description
|
|
@@ -3110,7 +3280,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3110
3280
|
postContractsMulticallContract: (data: MultipleCallContract, params: RequestParams = {}) =>
|
|
3111
3281
|
this.request<
|
|
3112
3282
|
MultipleCallContractResult,
|
|
3113
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3283
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3114
3284
|
>({
|
|
3115
3285
|
path: `/contracts/multicall-contract`,
|
|
3116
3286
|
method: 'POST',
|
|
@@ -3129,7 +3299,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3129
3299
|
* @request GET:/contracts/{address}/parent
|
|
3130
3300
|
*/
|
|
3131
3301
|
getContractsAddressParent: (address: string, params: RequestParams = {}) =>
|
|
3132
|
-
this.request<
|
|
3302
|
+
this.request<
|
|
3303
|
+
string,
|
|
3304
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3305
|
+
>({
|
|
3133
3306
|
path: `/contracts/${address}/parent`,
|
|
3134
3307
|
method: 'GET',
|
|
3135
3308
|
format: 'json',
|
|
@@ -3154,7 +3327,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3154
3327
|
},
|
|
3155
3328
|
params: RequestParams = {}
|
|
3156
3329
|
) =>
|
|
3157
|
-
this.request<
|
|
3330
|
+
this.request<
|
|
3331
|
+
SubContracts,
|
|
3332
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3333
|
+
>({
|
|
3158
3334
|
path: `/contracts/${address}/sub-contracts`,
|
|
3159
3335
|
method: 'GET',
|
|
3160
3336
|
query: query,
|
|
@@ -3171,7 +3347,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3171
3347
|
* @request GET:/contracts/{address}/sub-contracts/current-count
|
|
3172
3348
|
*/
|
|
3173
3349
|
getContractsAddressSubContractsCurrentCount: (address: string, params: RequestParams = {}) =>
|
|
3174
|
-
this.request<
|
|
3350
|
+
this.request<
|
|
3351
|
+
number,
|
|
3352
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3353
|
+
>({
|
|
3175
3354
|
path: `/contracts/${address}/sub-contracts/current-count`,
|
|
3176
3355
|
method: 'GET',
|
|
3177
3356
|
format: 'json',
|
|
@@ -3187,16 +3366,17 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3187
3366
|
* @request POST:/contracts/call-tx-script
|
|
3188
3367
|
*/
|
|
3189
3368
|
postContractsCallTxScript: (data: CallTxScript, params: RequestParams = {}) =>
|
|
3190
|
-
this.request<
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3369
|
+
this.request<
|
|
3370
|
+
CallTxScriptResult,
|
|
3371
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3372
|
+
>({
|
|
3373
|
+
path: `/contracts/call-tx-script`,
|
|
3374
|
+
method: 'POST',
|
|
3375
|
+
body: data,
|
|
3376
|
+
type: ContentType.Json,
|
|
3377
|
+
format: 'json',
|
|
3378
|
+
...params
|
|
3379
|
+
}).then(convertHttpResponse)
|
|
3200
3380
|
}
|
|
3201
3381
|
multisig = {
|
|
3202
3382
|
/**
|
|
@@ -3210,7 +3390,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3210
3390
|
postMultisigAddress: (data: BuildMultisigAddress, params: RequestParams = {}) =>
|
|
3211
3391
|
this.request<
|
|
3212
3392
|
BuildMultisigAddressResult,
|
|
3213
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3393
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3214
3394
|
>({
|
|
3215
3395
|
path: `/multisig/address`,
|
|
3216
3396
|
method: 'POST',
|
|
@@ -3231,7 +3411,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3231
3411
|
postMultisigBuild: (data: BuildMultisig, params: RequestParams = {}) =>
|
|
3232
3412
|
this.request<
|
|
3233
3413
|
BuildTransferTxResult,
|
|
3234
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3414
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3235
3415
|
>({
|
|
3236
3416
|
path: `/multisig/build`,
|
|
3237
3417
|
method: 'POST',
|
|
@@ -3252,7 +3432,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3252
3432
|
postMultisigSweep: (data: BuildSweepMultisig, params: RequestParams = {}) =>
|
|
3253
3433
|
this.request<
|
|
3254
3434
|
BuildSweepAddressTransactionsResult,
|
|
3255
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3435
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3256
3436
|
>({
|
|
3257
3437
|
path: `/multisig/sweep`,
|
|
3258
3438
|
method: 'POST',
|
|
@@ -3271,7 +3451,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3271
3451
|
* @request POST:/multisig/submit
|
|
3272
3452
|
*/
|
|
3273
3453
|
postMultisigSubmit: (data: SubmitMultisig, params: RequestParams = {}) =>
|
|
3274
|
-
this.request<
|
|
3454
|
+
this.request<
|
|
3455
|
+
SubmitTxResult,
|
|
3456
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3457
|
+
>({
|
|
3275
3458
|
path: `/multisig/submit`,
|
|
3276
3459
|
method: 'POST',
|
|
3277
3460
|
body: data,
|
|
@@ -3295,7 +3478,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3295
3478
|
},
|
|
3296
3479
|
params: RequestParams = {}
|
|
3297
3480
|
) =>
|
|
3298
|
-
this.request<
|
|
3481
|
+
this.request<
|
|
3482
|
+
boolean,
|
|
3483
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3484
|
+
>({
|
|
3299
3485
|
path: `/miners/cpu-mining`,
|
|
3300
3486
|
method: 'POST',
|
|
3301
3487
|
query: query,
|
|
@@ -3320,7 +3506,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3320
3506
|
},
|
|
3321
3507
|
params: RequestParams = {}
|
|
3322
3508
|
) =>
|
|
3323
|
-
this.request<
|
|
3509
|
+
this.request<
|
|
3510
|
+
boolean,
|
|
3511
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3512
|
+
>({
|
|
3324
3513
|
path: `/miners/cpu-mining/mine-one-block`,
|
|
3325
3514
|
method: 'POST',
|
|
3326
3515
|
query: query,
|
|
@@ -3337,7 +3526,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3337
3526
|
* @request GET:/miners/addresses
|
|
3338
3527
|
*/
|
|
3339
3528
|
getMinersAddresses: (params: RequestParams = {}) =>
|
|
3340
|
-
this.request<
|
|
3529
|
+
this.request<
|
|
3530
|
+
MinerAddresses,
|
|
3531
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3532
|
+
>({
|
|
3341
3533
|
path: `/miners/addresses`,
|
|
3342
3534
|
method: 'GET',
|
|
3343
3535
|
format: 'json',
|
|
@@ -3353,7 +3545,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3353
3545
|
* @request PUT:/miners/addresses
|
|
3354
3546
|
*/
|
|
3355
3547
|
putMinersAddresses: (data: MinerAddresses, params: RequestParams = {}) =>
|
|
3356
|
-
this.request<
|
|
3548
|
+
this.request<
|
|
3549
|
+
void,
|
|
3550
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3551
|
+
>({
|
|
3357
3552
|
path: `/miners/addresses`,
|
|
3358
3553
|
method: 'PUT',
|
|
3359
3554
|
body: data,
|
|
@@ -3382,7 +3577,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3382
3577
|
},
|
|
3383
3578
|
params: RequestParams = {}
|
|
3384
3579
|
) =>
|
|
3385
|
-
this.request<
|
|
3580
|
+
this.request<
|
|
3581
|
+
ContractEvents,
|
|
3582
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3583
|
+
>({
|
|
3386
3584
|
path: `/events/contract/${contractAddress}`,
|
|
3387
3585
|
method: 'GET',
|
|
3388
3586
|
query: query,
|
|
@@ -3399,7 +3597,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3399
3597
|
* @request GET:/events/contract/{contractAddress}/current-count
|
|
3400
3598
|
*/
|
|
3401
3599
|
getEventsContractContractaddressCurrentCount: (contractAddress: string, params: RequestParams = {}) =>
|
|
3402
|
-
this.request<
|
|
3600
|
+
this.request<
|
|
3601
|
+
number,
|
|
3602
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3603
|
+
>({
|
|
3403
3604
|
path: `/events/contract/${contractAddress}/current-count`,
|
|
3404
3605
|
method: 'GET',
|
|
3405
3606
|
format: 'json',
|
|
@@ -3424,7 +3625,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3424
3625
|
) =>
|
|
3425
3626
|
this.request<
|
|
3426
3627
|
ContractEventsByTxId,
|
|
3427
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3628
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3428
3629
|
>({
|
|
3429
3630
|
path: `/events/tx-id/${txId}`,
|
|
3430
3631
|
method: 'GET',
|
|
@@ -3451,7 +3652,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3451
3652
|
) =>
|
|
3452
3653
|
this.request<
|
|
3453
3654
|
ContractEventsByBlockHash,
|
|
3454
|
-
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable
|
|
3655
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3455
3656
|
>({
|
|
3456
3657
|
path: `/events/block-hash/${blockHash}`,
|
|
3457
3658
|
method: 'GET',
|
|
@@ -3470,7 +3671,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3470
3671
|
* @request POST:/utils/verify-signature
|
|
3471
3672
|
*/
|
|
3472
3673
|
postUtilsVerifySignature: (data: VerifySignature, params: RequestParams = {}) =>
|
|
3473
|
-
this.request<
|
|
3674
|
+
this.request<
|
|
3675
|
+
boolean,
|
|
3676
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3677
|
+
>({
|
|
3474
3678
|
path: `/utils/verify-signature`,
|
|
3475
3679
|
method: 'POST',
|
|
3476
3680
|
body: data,
|
|
@@ -3488,7 +3692,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3488
3692
|
* @request POST:/utils/target-to-hashrate
|
|
3489
3693
|
*/
|
|
3490
3694
|
postUtilsTargetToHashrate: (data: TargetToHashrate, params: RequestParams = {}) =>
|
|
3491
|
-
this.request<
|
|
3695
|
+
this.request<
|
|
3696
|
+
Result,
|
|
3697
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3698
|
+
>({
|
|
3492
3699
|
path: `/utils/target-to-hashrate`,
|
|
3493
3700
|
method: 'POST',
|
|
3494
3701
|
body: data,
|
|
@@ -3506,7 +3713,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
3506
3713
|
* @request PUT:/utils/check-hash-indexing
|
|
3507
3714
|
*/
|
|
3508
3715
|
putUtilsCheckHashIndexing: (params: RequestParams = {}) =>
|
|
3509
|
-
this.request<
|
|
3716
|
+
this.request<
|
|
3717
|
+
void,
|
|
3718
|
+
BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable | GatewayTimeout
|
|
3719
|
+
>({
|
|
3510
3720
|
path: `/utils/check-hash-indexing`,
|
|
3511
3721
|
method: 'PUT',
|
|
3512
3722
|
...params
|