wan-ton-sdk 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/Bridge.compile.d.ts +2 -0
  2. package/dist/Bridge.compile.js +9 -0
  3. package/dist/Bridge.d.ts +208 -0
  4. package/dist/Bridge.js +468 -0
  5. package/dist/Fake.compile.d.ts +2 -0
  6. package/dist/Fake.compile.js +9 -0
  7. package/dist/GroupApprove.compile.d.ts +2 -0
  8. package/dist/GroupApprove.compile.js +7 -0
  9. package/dist/GroupApprove.d.ts +124 -0
  10. package/dist/GroupApprove.js +181 -0
  11. package/dist/JettonMinter.compile.d.ts +2 -0
  12. package/dist/JettonMinter.compile.js +6 -0
  13. package/dist/JettonMinter.d.ts +45 -0
  14. package/dist/JettonMinter.js +124 -0
  15. package/dist/JettonWallet.compile.d.ts +2 -0
  16. package/dist/JettonWallet.compile.js +6 -0
  17. package/dist/JettonWallet.d.ts +26 -0
  18. package/dist/JettonWallet.js +103 -0
  19. package/dist/Signature.compile.d.ts +2 -0
  20. package/dist/Signature.compile.js +7 -0
  21. package/dist/Signature.d.ts +44 -0
  22. package/dist/Signature.js +106 -0
  23. package/dist/address.compile.d.ts +2 -0
  24. package/dist/address.compile.js +9 -0
  25. package/dist/client/client-interface.d.ts +35 -0
  26. package/dist/client/client-interface.js +9 -0
  27. package/dist/client/client.d.ts +22 -0
  28. package/dist/client/client.js +86 -0
  29. package/dist/client/tonapi-client.d.ts +4630 -0
  30. package/dist/client/tonapi-client.js +5376 -0
  31. package/dist/code/encode-decode.d.ts +132 -0
  32. package/dist/code/encode-decode.js +645 -0
  33. package/dist/code/userLock.d.ts +39 -0
  34. package/dist/code/userLock.js +284 -0
  35. package/dist/common.d.ts +9 -0
  36. package/dist/common.js +45 -0
  37. package/dist/config/config-ex.d.ts +7 -0
  38. package/dist/config/config-ex.js +73 -0
  39. package/dist/const/const-value.d.ts +21 -0
  40. package/dist/const/const-value.js +26 -0
  41. package/dist/contractAccess/bridgeAccess.d.ts +10 -0
  42. package/dist/contractAccess/bridgeAccess.js +55 -0
  43. package/dist/contractAccess/groupApproveAccess.d.ts +10 -0
  44. package/dist/contractAccess/groupApproveAccess.js +54 -0
  45. package/dist/db/Db.d.ts +24 -0
  46. package/dist/db/Db.js +739 -0
  47. package/dist/db/DbAccess.d.ts +24 -0
  48. package/dist/db/DbAccess.js +211 -0
  49. package/dist/db/common.d.ts +5 -0
  50. package/dist/db/common.js +114 -0
  51. package/dist/event/getEvents.d.ts +17 -0
  52. package/dist/event/getEvents.js +387 -0
  53. package/dist/example/db/createDb-ex.d.ts +1 -0
  54. package/{example/createDb-ex.ts → dist/example/db/createDb-ex.js} +3 -4
  55. package/dist/example/db/dbFeedTrans-ex.d.ts +1 -0
  56. package/{example/dbFeedTrans-ex.ts → dist/example/db/dbFeedTrans-ex.js} +9 -11
  57. package/dist/example/event/getAllEvents-ex.d.ts +1 -0
  58. package/dist/example/event/getAllEvents-ex.js +70 -0
  59. package/dist/example/event/getEventByHash-ex.d.ts +1 -0
  60. package/{example/getEventByHash-ex.ts → dist/example/event/getEventByHash-ex.js} +21 -25
  61. package/dist/example/event/getEventsByRange-ex.d.ts +1 -0
  62. package/dist/example/event/getEventsByRange-ex.js +58 -0
  63. package/dist/example/getAllTrans.d.ts +1 -0
  64. package/dist/example/getAllTrans.js +30 -0
  65. package/dist/example/jetton/getJettonInfo-ex.d.ts +1 -0
  66. package/dist/example/jetton/getJettonInfo-ex.js +32 -0
  67. package/dist/example/lock-release/smgRelease-ex.d.ts +1 -0
  68. package/dist/example/lock-release/smgRelease-ex.js +134 -0
  69. package/dist/example/lock-release/userLock-ex.d.ts +1 -0
  70. package/dist/example/lock-release/userLock-ex.js +69 -0
  71. package/dist/example/manage/addSmg-ex.d.ts +1 -0
  72. package/dist/example/manage/addSmg-ex.js +59 -0
  73. package/dist/example/manage/compileContract-ex.d.ts +1 -0
  74. package/dist/example/manage/compileContract-ex.js +11 -0
  75. package/dist/example/manage/deploy-ex.d.ts +1 -0
  76. package/dist/example/manage/deploy-ex.js +58 -0
  77. package/dist/example/manage/setFee-ex.d.ts +1 -0
  78. package/dist/example/manage/setFee-ex.js +61 -0
  79. package/dist/example/manage/setFeeProxy.d.ts +1 -0
  80. package/dist/example/manage/setFeeProxy.js +47 -0
  81. package/dist/example/manage/upgradeBridgeSc-ex.d.ts +1 -0
  82. package/dist/example/manage/upgradeBridgeSc-ex.js +44 -0
  83. package/dist/example/token/AddToken-ex.d.ts +1 -0
  84. package/dist/example/token/AddToken-ex.js +113 -0
  85. package/dist/example/token/addTokenPair-ex.d.ts +1 -0
  86. package/dist/example/token/addTokenPair-ex.js +59 -0
  87. package/dist/example/token/delTokenPair-ex.d.ts +1 -0
  88. package/dist/example/token/delTokenPair-ex.js +49 -0
  89. package/dist/example/token/getTokenPair-ex.d.ts +1 -0
  90. package/dist/example/token/getTokenPair-ex.js +39 -0
  91. package/dist/example/token/mintToken-ex.d.ts +1 -0
  92. package/dist/example/token/mintToken-ex.js +56 -0
  93. package/dist/example/tran/converTranToTonTran.d.ts +1 -0
  94. package/dist/example/tran/converTranToTonTran.js +32 -0
  95. package/dist/example/tran/getTransByRange-ex.d.ts +1 -0
  96. package/{example/getTransByRange-ex.ts → dist/example/tran/getTransByRange-ex.js} +26 -40
  97. package/dist/example/tran/getTransaction-ex.d.ts +1 -0
  98. package/dist/example/tran/getTransaction-ex.js +47 -0
  99. package/dist/example/tran/isTranSuccess-ex.d.ts +1 -0
  100. package/dist/example/tran/isTranSuccess-ex.js +27 -0
  101. package/dist/fee/fee.d.ts +12 -0
  102. package/dist/fee/fee.js +21 -0
  103. package/dist/index.d.ts +15 -0
  104. package/dist/index.js +95 -0
  105. package/dist/jest.config.d.ts +3 -0
  106. package/dist/jest.config.js +8 -0
  107. package/dist/opcodes.d.ts +55 -0
  108. package/dist/opcodes.js +59 -0
  109. package/dist/sign/buildHash.d.ts +6 -0
  110. package/dist/sign/buildHash.js +39 -0
  111. package/dist/sign/rawTrans.d.ts +36 -0
  112. package/dist/sign/rawTrans.js +89 -0
  113. package/dist/sign/tools-secp256k1.d.ts +21 -0
  114. package/{sign → dist/sign}/tools-secp256k1.js +18 -44
  115. package/dist/testData/JettonMinter.compile.func.d.ts +2 -0
  116. package/dist/testData/JettonMinter.compile.func.js +13 -0
  117. package/dist/testData/JettonWallet.compile.func.d.ts +2 -0
  118. package/dist/testData/JettonWallet.compile.func.js +13 -0
  119. package/dist/testData/bridge.compile.func.d.ts +2 -0
  120. package/dist/testData/bridge.compile.func.js +13 -0
  121. package/dist/transResult/transResult.d.ts +29 -0
  122. package/dist/transResult/transResult.js +528 -0
  123. package/dist/utils/compileContract.d.ts +13 -0
  124. package/dist/utils/compileContract.js +54 -0
  125. package/dist/utils/logger.d.ts +16 -0
  126. package/dist/utils/logger.js +94 -0
  127. package/dist/utils/utils.d.ts +26 -0
  128. package/dist/utils/utils.js +330 -0
  129. package/dist/wallet/balance.d.ts +5 -0
  130. package/dist/wallet/balance.js +29 -0
  131. package/dist/wallet/jetton.d.ts +16 -0
  132. package/dist/wallet/jetton.js +171 -0
  133. package/dist/wallet/walletContract.d.ts +31 -0
  134. package/dist/wallet/walletContract.js +106 -0
  135. package/package.json +8 -6
  136. package/Bridge.compile.ts +0 -8
  137. package/Bridge.ts +0 -645
  138. package/Bridge.ts.org +0 -647
  139. package/Fake.compile.ts +0 -8
  140. package/GroupApprove.compile.ts +0 -6
  141. package/GroupApprove.ts +0 -274
  142. package/JettonMinter.compile.ts +0 -5
  143. package/JettonMinter.ts +0 -135
  144. package/JettonWallet.compile.ts +0 -5
  145. package/JettonWallet.ts +0 -127
  146. package/Signature.compile.ts +0 -6
  147. package/Signature.ts +0 -105
  148. package/address.compile.ts +0 -8
  149. package/client/1.json +0 -1730
  150. package/client/client.ts +0 -73
  151. package/client/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +0 -15
  152. package/code/decode.spec.ts +0 -81
  153. package/code/encode-decode.ts +0 -622
  154. package/code/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +0 -20
  155. package/code/log/wan-ton-sdk.out.2025-01-20 +0 -0
  156. package/code/userLock.ts +0 -291
  157. package/common.ts +0 -62
  158. package/config/config-ex.ts +0 -25
  159. package/config/config.ts +0 -1
  160. package/const/const-value.ts +0 -33
  161. package/contractAccess/bridgeAccess.ts +0 -60
  162. package/contractAccess/groupApproveAccess.ts +0 -59
  163. package/data/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs.json +0 -7348
  164. package/db/Db.spec.ts +0 -193
  165. package/db/Db.ts +0 -736
  166. package/db/DbAccess.spec.ts +0 -23
  167. package/db/DbAccess.ts +0 -186
  168. package/db/common.ts +0 -94
  169. package/db/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +0 -15
  170. package/db/log/wan-ton-sdk.out.2025-04-21 +0 -0
  171. package/event/getEvents.ts +0 -441
  172. package/event/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +0 -15
  173. package/event/log/wan-ton-sdk.out.2024-12-19 +0 -0
  174. package/example/0:1.txt +0 -1
  175. package/example/AddToken-ex.ts +0 -148
  176. package/example/README.md +0 -21
  177. package/example/addSmg-ex.ts +0 -78
  178. package/example/addTokenPair-ex.ts +0 -73
  179. package/example/compileContract-ex.ts +0 -10
  180. package/example/converTranToTonTran.ts +0 -43
  181. package/example/delTokenPair-ex.ts +0 -63
  182. package/example/deploy-ex.ts +0 -68
  183. package/example/getAllEvents-ex.ts +0 -61
  184. package/example/getAllTrans.ts +0 -32
  185. package/example/getContractState-ex.ts +0 -33
  186. package/example/getEvents-ex.ts +0 -55
  187. package/example/getJettonInfo-ex.ts +0 -44
  188. package/example/getTokenPair-ex.ts +0 -47
  189. package/example/getTransaction-ex.ts +0 -62
  190. package/example/isTranSuccess-ex.ts +0 -33
  191. package/example/locateTx-ex.ts +0 -44
  192. package/example/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +0 -55
  193. package/example/log/wan-ton-sdk.out.2025-04-21 +0 -447
  194. package/example/log/wan-ton-sdk.out.2025-04-22 +0 -1918
  195. package/example/log/wan-ton-sdk.out.2025-04-23 +0 -4216
  196. package/example/log/wan-ton-sdk.out.2025-04-24.gz +0 -0
  197. package/example/log/wan-ton-sdk.out.2025-04-25 +0 -46814
  198. package/example/log/wan-ton-sdk.out.2025-04-27.gz +0 -0
  199. package/example/log/wan-ton-sdk.out.2025-04-28 +0 -4966
  200. package/example/log/wan-ton-sdk.out.2025-04-29 +0 -1328
  201. package/example/log/wan-ton-sdk.out.2025-04-30 +0 -9
  202. package/example/mintToken-ex.ts +0 -82
  203. package/example/setFee-ex.ts +0 -82
  204. package/example/setFeeProxy.ts +0 -70
  205. package/example/smgRelease-ex.ts +0 -173
  206. package/example/upgradeBridgeSc-ex.ts +0 -49
  207. package/example/userLock-ex.ts +0 -78
  208. package/fee/fee.ts +0 -23
  209. package/index.ts +0 -76
  210. package/jest.config.ts +0 -9
  211. package/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +0 -20
  212. package/log/wan-ton-sdk.out.2025-04-21 +0 -0
  213. package/log/wan-ton-sdk.out.2025-04-30 +0 -10
  214. package/opcodes.ts +0 -58
  215. package/publish.sh +0 -78
  216. package/sign/buildHash.ts +0 -47
  217. package/sign/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +0 -15
  218. package/sign/log/wan-ton-sdk.out.2025-04-14 +0 -3
  219. package/sign/rawTrans.spec.ts +0 -117
  220. package/sign/rawTrans.ts +0 -122
  221. package/testData/JettonMinter.compile.func.ts +0 -8
  222. package/testData/JettonWallet.compile.func.ts +0 -8
  223. package/testData/addressList.json +0 -6
  224. package/testData/bridge.compile.func.ts +0 -8
  225. package/testData/bridge.compiled.json +0 -1
  226. package/testData/contractAddress.json +0 -7
  227. package/testData/jettonTokenInfo.json +0 -14
  228. package/testData/prvlist.json +0 -6
  229. package/testData/smg.json +0 -5
  230. package/testData/tokenInfo.json +0 -23
  231. package/transResult/transResult.ts +0 -608
  232. package/tsconfig.json +0 -19
  233. package/utils/.compiled.json +0 -1
  234. package/utils/compileContract.ts +0 -60
  235. package/utils/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +0 -15
  236. package/utils/log/wan-ton-sdk.out.2025-01-08 +0 -0
  237. package/utils/logger.spec.ts +0 -14
  238. package/utils/logger.ts +0 -96
  239. package/utils/utils.spec.ts +0 -21
  240. package/utils/utils.ts +0 -295
  241. package/wallet/balance.ts +0 -29
  242. package/wallet/jetton.spec.ts +0 -27
  243. package/wallet/jetton.ts +0 -159
  244. package/wallet/walletContract.spec.ts +0 -111
  245. package/wallet/walletContract.ts +0 -105
  246. /package/{client/log/wan-ton-sdk.out.2024-12-19 → dist/config/config.d.ts} +0 -0
  247. /package/{code/log/wan-ton-sdk.out.2025-01-15 → dist/config/config.js} +0 -0
@@ -0,0 +1,4630 @@
1
+ import { Transaction as TonCoreTransaction } from "@ton/core";
2
+ export interface Error {
3
+ /** @example "error description" */
4
+ error: string;
5
+ }
6
+ export interface AccountAddress {
7
+ /**
8
+ * @format address
9
+ * @example "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365"
10
+ */
11
+ address: Address;
12
+ /**
13
+ * Display name. Data collected from different sources like moderation lists, dns, collections names and over.
14
+ * @example "Ton foundation"
15
+ */
16
+ name?: string;
17
+ /**
18
+ * Is this account was marked as part of scammers activity
19
+ * @example true
20
+ */
21
+ isScam: boolean;
22
+ /** @example "https://ton.org/logo.png" */
23
+ icon?: string;
24
+ /** @example true */
25
+ isWallet: boolean;
26
+ }
27
+ export interface BlockCurrencyCollection {
28
+ /**
29
+ * @format bigint
30
+ * @example 10000000000
31
+ */
32
+ grams: bigint;
33
+ other: {
34
+ /**
35
+ * @format int64
36
+ * @example 13
37
+ */
38
+ id: number;
39
+ /**
40
+ * @format bigint
41
+ * @example "10000000000"
42
+ */
43
+ value: bigint;
44
+ }[];
45
+ }
46
+ export interface BlockValueFlow {
47
+ fromPrevBlk: BlockCurrencyCollection;
48
+ toNextBlk: BlockCurrencyCollection;
49
+ imported: BlockCurrencyCollection;
50
+ exported: BlockCurrencyCollection;
51
+ feesCollected: BlockCurrencyCollection;
52
+ burned?: BlockCurrencyCollection;
53
+ feesImported: BlockCurrencyCollection;
54
+ recovered: BlockCurrencyCollection;
55
+ created: BlockCurrencyCollection;
56
+ minted: BlockCurrencyCollection;
57
+ }
58
+ export interface ServiceStatus {
59
+ /** @default true */
60
+ restOnline: boolean;
61
+ /** @example 100 */
62
+ indexingLatency: number;
63
+ /**
64
+ * @format int32
65
+ * @example 123456
66
+ */
67
+ lastKnownMasterchainSeqno: number;
68
+ }
69
+ export interface ReducedBlock {
70
+ /**
71
+ * @format int32
72
+ * @example 0
73
+ */
74
+ workchainId: number;
75
+ /** @example "8000000000000000" */
76
+ shard: string;
77
+ /**
78
+ * @format int32
79
+ * @example 21734019
80
+ */
81
+ seqno: number;
82
+ /** @example "(-1,4234234,8000000000000000)" */
83
+ masterRef?: string;
84
+ /** @example 130 */
85
+ txQuantity: number;
86
+ /**
87
+ * @format int64
88
+ * @example 23814011000000
89
+ */
90
+ utime: number;
91
+ shardsBlocks: string[];
92
+ parent: string[];
93
+ }
94
+ export interface BlockchainBlock {
95
+ /** @example 130 */
96
+ txQuantity: number;
97
+ valueFlow: BlockValueFlow;
98
+ /**
99
+ * @format int32
100
+ * @example 0
101
+ */
102
+ workchainId: number;
103
+ /** @example "8000000000000000" */
104
+ shard: string;
105
+ /**
106
+ * @format int32
107
+ * @example 21734019
108
+ */
109
+ seqno: number;
110
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
111
+ rootHash: string;
112
+ /** @example "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB" */
113
+ fileHash: string;
114
+ /**
115
+ * @format int32
116
+ * @example -239
117
+ */
118
+ globalId: number;
119
+ /**
120
+ * @format int32
121
+ * @example 0
122
+ */
123
+ version: number;
124
+ /** @example true */
125
+ afterMerge: boolean;
126
+ /** @example true */
127
+ beforeSplit: boolean;
128
+ /** @example true */
129
+ afterSplit: boolean;
130
+ /** @example true */
131
+ wantSplit: boolean;
132
+ /** @example true */
133
+ wantMerge: boolean;
134
+ /** @example true */
135
+ keyBlock: boolean;
136
+ /**
137
+ * @format int64
138
+ * @example 1674826775
139
+ */
140
+ genUtime: number;
141
+ /**
142
+ * @format bigint
143
+ * @example 23814011000000
144
+ */
145
+ startLt: bigint;
146
+ /**
147
+ * @format bigint
148
+ * @example 23814011000001
149
+ */
150
+ endLt: bigint;
151
+ /**
152
+ * @format int32
153
+ * @example 0
154
+ */
155
+ vertSeqno: number;
156
+ /**
157
+ * @format int32
158
+ * @example 0
159
+ */
160
+ genCatchainSeqno: number;
161
+ /**
162
+ * @format int32
163
+ * @example 0
164
+ */
165
+ minRefMcSeqno: number;
166
+ /**
167
+ * @format int32
168
+ * @example 0
169
+ */
170
+ prevKeyBlockSeqno: number;
171
+ /**
172
+ * @format int32
173
+ * @example 0
174
+ */
175
+ genSoftwareVersion?: number;
176
+ /**
177
+ * @format int64
178
+ * @example 0
179
+ */
180
+ genSoftwareCapabilities?: number;
181
+ /** @example "(-1,4234234,8000000000000000)" */
182
+ masterRef?: string;
183
+ prevRefs: string[];
184
+ /**
185
+ * @format int64
186
+ * @example 0
187
+ */
188
+ inMsgDescrLength: number;
189
+ /**
190
+ * @format int64
191
+ * @example 0
192
+ */
193
+ outMsgDescrLength: number;
194
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
195
+ randSeed: string;
196
+ /** @example "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB" */
197
+ createdBy: string;
198
+ }
199
+ export interface BlockchainBlocks {
200
+ blocks: BlockchainBlock[];
201
+ }
202
+ export interface ReducedBlocks {
203
+ blocks: ReducedBlock[];
204
+ }
205
+ export interface BlockchainBlockShards {
206
+ shards: {
207
+ /** @example "(0,8000000000000000,4234234)" */
208
+ lastKnownBlockId: string;
209
+ lastKnownBlock: BlockchainBlock;
210
+ }[];
211
+ }
212
+ /** @example "active" */
213
+ export declare enum AccountStatus {
214
+ Nonexist = "nonexist",
215
+ Uninit = "uninit",
216
+ Active = "active",
217
+ Frozen = "frozen"
218
+ }
219
+ export interface StateInit {
220
+ /**
221
+ * @format cell
222
+ * @example "b5ee9c72010106010044000114ff00f4a413f4bcf2c80b01020120020302014804050004f2300038d06c21d31f30ed44d0d33f3001c00197a4c8cb3fc9ed549330f206e20011a13431da89a1a67e61"
223
+ */
224
+ boc: Cell;
225
+ interfaces: string[];
226
+ }
227
+ export interface Message {
228
+ /** @example "int_msg" */
229
+ msgType: 'int_msg' | 'ext_in_msg' | 'ext_out_msg';
230
+ /**
231
+ * @format bigint
232
+ * @example 25713146000001
233
+ */
234
+ createdLt: bigint;
235
+ /** @example true */
236
+ ihrDisabled: boolean;
237
+ /** @example true */
238
+ bounce: boolean;
239
+ /** @example true */
240
+ bounced: boolean;
241
+ /**
242
+ * @format bigint
243
+ * @example 60000000
244
+ */
245
+ value: bigint;
246
+ valueExtra?: ExtraCurrency[];
247
+ /**
248
+ * @format bigint
249
+ * @example 5681002
250
+ */
251
+ fwdFee: bigint;
252
+ /**
253
+ * @format bigint
254
+ * @example 5681002
255
+ */
256
+ ihrFee: bigint;
257
+ destination?: AccountAddress;
258
+ source?: AccountAddress;
259
+ /**
260
+ * @format bigint
261
+ * @example 5681002
262
+ */
263
+ importFee: bigint;
264
+ /**
265
+ * @format int64
266
+ * @example 5681002
267
+ */
268
+ createdAt: number;
269
+ /**
270
+ * @format bigint
271
+ * @example "0xdeadbeaf"
272
+ */
273
+ opCode?: bigint;
274
+ init?: StateInit;
275
+ /** @example "1219de582369ac80ee1afe12147930f458a54ff1eea612611a8bc6bd31581a6c" */
276
+ hash: string;
277
+ /**
278
+ * hex-encoded BoC with raw message body
279
+ * @format cell
280
+ * @example "B5EE9C7201010101001100001D00048656C6C6F2C20776F726C64218"
281
+ */
282
+ rawBody?: Cell;
283
+ /** @example "nft_transfer" */
284
+ decodedOpName?: string;
285
+ decodedBody?: any;
286
+ }
287
+ /** @example "TransOrd" */
288
+ export declare enum TransactionType {
289
+ TransOrd = "TransOrd",
290
+ TransTickTock = "TransTickTock",
291
+ TransSplitPrepare = "TransSplitPrepare",
292
+ TransSplitInstall = "TransSplitInstall",
293
+ TransMergePrepare = "TransMergePrepare",
294
+ TransMergeInstall = "TransMergeInstall",
295
+ TransStorage = "TransStorage"
296
+ }
297
+ /** @example "acst_unchanged" */
298
+ export declare enum AccStatusChange {
299
+ AcstUnchanged = "acst_unchanged",
300
+ AcstFrozen = "acst_frozen",
301
+ AcstDeleted = "acst_deleted"
302
+ }
303
+ /** @example "cskip_no_state" */
304
+ export declare enum ComputeSkipReason {
305
+ CskipNoState = "cskip_no_state",
306
+ CskipBadState = "cskip_bad_state",
307
+ CskipNoGas = "cskip_no_gas"
308
+ }
309
+ /** @example "cskip_no_state" */
310
+ export declare enum BouncePhaseType {
311
+ TrPhaseBounceNegfunds = "TrPhaseBounceNegfunds",
312
+ TrPhaseBounceNofunds = "TrPhaseBounceNofunds",
313
+ TrPhaseBounceOk = "TrPhaseBounceOk"
314
+ }
315
+ export interface ComputePhase {
316
+ /** @example true */
317
+ skipped: boolean;
318
+ skipReason?: ComputeSkipReason;
319
+ /** @example true */
320
+ success?: boolean;
321
+ /**
322
+ * @format bigint
323
+ * @example 1000
324
+ */
325
+ gasFees?: bigint;
326
+ /**
327
+ * @format bigint
328
+ * @example 10000
329
+ */
330
+ gasUsed?: bigint;
331
+ /**
332
+ * @format int32
333
+ * @example 5
334
+ */
335
+ vmSteps?: number;
336
+ /**
337
+ * @format int32
338
+ * @example 0
339
+ */
340
+ exitCode?: number;
341
+ exitCodeDescription?: string;
342
+ }
343
+ export interface StoragePhase {
344
+ /**
345
+ * @format bigint
346
+ * @example 25713146000001
347
+ */
348
+ feesCollected: bigint;
349
+ /**
350
+ * @format bigint
351
+ * @example 25713146000001
352
+ */
353
+ feesDue?: bigint;
354
+ statusChange: AccStatusChange;
355
+ }
356
+ export interface CreditPhase {
357
+ /**
358
+ * @format bigint
359
+ * @example 100
360
+ */
361
+ feesCollected: bigint;
362
+ /**
363
+ * @format bigint
364
+ * @example 1000
365
+ */
366
+ credit: bigint;
367
+ }
368
+ export interface ActionPhase {
369
+ /** @example true */
370
+ success: boolean;
371
+ /**
372
+ * @format int32
373
+ * @example 5
374
+ */
375
+ resultCode: number;
376
+ /**
377
+ * @format int32
378
+ * @example 5
379
+ */
380
+ totalActions: number;
381
+ /**
382
+ * @format int32
383
+ * @example 5
384
+ */
385
+ skippedActions: number;
386
+ /**
387
+ * @format bigint
388
+ * @example 1000
389
+ */
390
+ fwdFees: bigint;
391
+ /**
392
+ * @format bigint
393
+ * @example 1000
394
+ */
395
+ totalFees: bigint;
396
+ resultCodeDescription?: string;
397
+ }
398
+ export interface Transaction {
399
+ /** @example "55e8809519cd3c49098c9ee45afdafcea7a894a74d0f628d94a115a50e045122" */
400
+ hash: string;
401
+ /**
402
+ * @format bigint
403
+ * @example 25713146000001
404
+ */
405
+ lt: bigint;
406
+ account: AccountAddress;
407
+ /** @example true */
408
+ success: boolean;
409
+ /**
410
+ * @format int64
411
+ * @example 1645544908
412
+ */
413
+ utime: number;
414
+ origStatus: AccountStatus;
415
+ endStatus: AccountStatus;
416
+ /**
417
+ * @format bigint
418
+ * @example 25713146000001
419
+ */
420
+ totalFees: bigint;
421
+ /**
422
+ * @format bigint
423
+ * @example 25713146000001
424
+ */
425
+ endBalance: bigint;
426
+ transactionType: TransactionType;
427
+ /** @example "55e8809519cd3c49098c9ee45afdafcea7a894a74d0f628d94a115a50e045122" */
428
+ stateUpdateOld: string;
429
+ /** @example "55e8809519cd3c49098c9ee45afdafcea7a894a74d0f628d94a115a50e045122" */
430
+ stateUpdateNew: string;
431
+ inMsg?: Message;
432
+ outMsgs: Message[];
433
+ /** @example "(-1,4234234,8000000000000000)" */
434
+ block: string;
435
+ /** @example "55e8809519cd3c49098c9ee45afdafcea7a894a74d0f628d94a115a50e045122" */
436
+ prevTransHash?: string;
437
+ /**
438
+ * @format bigint
439
+ * @example 25713146000001
440
+ */
441
+ prevTransLt?: bigint;
442
+ computePhase?: ComputePhase;
443
+ storagePhase?: StoragePhase;
444
+ creditPhase?: CreditPhase;
445
+ actionPhase?: ActionPhase;
446
+ bouncePhase?: BouncePhaseType;
447
+ /** @example true */
448
+ aborted: boolean;
449
+ /** @example true */
450
+ destroyed: boolean;
451
+ /**
452
+ * hex encoded boc with raw transaction
453
+ * @format cell
454
+ * @example "b5ee9c72410206010001380003b372cf3b5b8c891e517c9addbda1c0386a09ccacbb0e3faf630b51cfc8152325acb00002ac5795c0e41fdf79135cb7da03cc623b165d614b562a51eeccd8a5e097f405abf6b37f4e73000002ac5629732c1666887ed000144030480102030101a004008272abc8f2971aa4404ac6da1597720f348b2e1247b1ad9f55cbd3b6812f0a5f08b269bb65039fb1f6074d00f794e857f6dfd01131d299df456af10a8a4943d4d165000d0c80608840492001ab48015581f575c3b8c6ab3d6"
455
+ */
456
+ raw: Cell;
457
+ }
458
+ export interface Transactions {
459
+ transactions: Transaction[];
460
+ }
461
+ export interface ConfigProposalSetup {
462
+ /** @example 2 */
463
+ minTotRounds: number;
464
+ /** @example 6 */
465
+ maxTotRounds: number;
466
+ /** @example 2 */
467
+ minWins: number;
468
+ /** @example 6 */
469
+ maxLosses: number;
470
+ /**
471
+ * @format int64
472
+ * @example 1000000
473
+ */
474
+ minStoreSec: number;
475
+ /**
476
+ * @format int64
477
+ * @example 10000000
478
+ */
479
+ maxStoreSec: number;
480
+ /**
481
+ * @format int64
482
+ * @example 1
483
+ */
484
+ bitPrice: number;
485
+ /**
486
+ * @format int64
487
+ * @example 500
488
+ */
489
+ cellPrice: number;
490
+ }
491
+ export interface GasLimitPrices {
492
+ /** @format int64 */
493
+ specialGasLimit?: number;
494
+ /** @format int64 */
495
+ flatGasLimit?: number;
496
+ /** @format int64 */
497
+ flatGasPrice?: number;
498
+ /**
499
+ * @format int64
500
+ * @example 1
501
+ */
502
+ gasPrice: number;
503
+ /**
504
+ * @format int64
505
+ * @example 1000000
506
+ */
507
+ gasLimit: number;
508
+ /**
509
+ * @format int64
510
+ * @example 1000000
511
+ */
512
+ gasCredit: number;
513
+ /**
514
+ * @format int64
515
+ * @example 1000000
516
+ */
517
+ blockGasLimit: number;
518
+ /**
519
+ * @format int64
520
+ * @example 1000000
521
+ */
522
+ freezeDueLimit: number;
523
+ /**
524
+ * @format int64
525
+ * @example 1000000
526
+ */
527
+ deleteDueLimit: number;
528
+ }
529
+ export interface BlockParamLimits {
530
+ /**
531
+ * @format int64
532
+ * @example 1000000
533
+ */
534
+ underload: number;
535
+ /**
536
+ * @format int64
537
+ * @example 1000000
538
+ */
539
+ softLimit: number;
540
+ /**
541
+ * @format int64
542
+ * @example 1000000
543
+ */
544
+ hardLimit: number;
545
+ }
546
+ export interface BlockLimits {
547
+ bytes: BlockParamLimits;
548
+ gas: BlockParamLimits;
549
+ ltDelta: BlockParamLimits;
550
+ }
551
+ export interface MsgForwardPrices {
552
+ /**
553
+ * @format int64
554
+ * @example 1000000
555
+ */
556
+ lumpPrice: number;
557
+ /**
558
+ * @format int64
559
+ * @example 1000000
560
+ */
561
+ bitPrice: number;
562
+ /**
563
+ * @format int64
564
+ * @example 1000000
565
+ */
566
+ cellPrice: number;
567
+ /**
568
+ * @format int64
569
+ * @example 1000000
570
+ */
571
+ ihrPriceFactor: number;
572
+ /**
573
+ * @format int64
574
+ * @example 1000000
575
+ */
576
+ firstFrac: number;
577
+ /**
578
+ * @format int64
579
+ * @example 1000000
580
+ */
581
+ nextFrac: number;
582
+ }
583
+ export interface WorkchainDescr {
584
+ /**
585
+ * @format int
586
+ * @example 0
587
+ */
588
+ workchain: number;
589
+ /**
590
+ * @format int64
591
+ * @example 1000000
592
+ */
593
+ enabledSince: number;
594
+ /**
595
+ * @format int
596
+ * @example 1000000
597
+ */
598
+ actualMinSplit: number;
599
+ /**
600
+ * @format int
601
+ * @example 1000000
602
+ */
603
+ minSplit: number;
604
+ /**
605
+ * @format int
606
+ * @example 1000000
607
+ */
608
+ maxSplit: number;
609
+ /** @example 1000000 */
610
+ basic: number;
611
+ /** @example true */
612
+ active: boolean;
613
+ /** @example true */
614
+ acceptMsgs: boolean;
615
+ /**
616
+ * @format int
617
+ * @example 1000000
618
+ */
619
+ flags: number;
620
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
621
+ zerostateRootHash: string;
622
+ /** @example "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB" */
623
+ zerostateFileHash: string;
624
+ /**
625
+ * @format int64
626
+ * @example 1000000
627
+ */
628
+ version: number;
629
+ }
630
+ export interface MisbehaviourPunishmentConfig {
631
+ /**
632
+ * @format int64
633
+ * @example 1000000
634
+ */
635
+ defaultFlatFine: number;
636
+ /**
637
+ * @format int64
638
+ * @example 1000000
639
+ */
640
+ defaultProportionalFine: number;
641
+ /** @example 1000000 */
642
+ severityFlatMult: number;
643
+ /** @example 1000000 */
644
+ severityProportionalMult: number;
645
+ /** @example 1000000 */
646
+ unpunishableInterval: number;
647
+ /** @example 1000000 */
648
+ longInterval: number;
649
+ /** @example 1000000 */
650
+ longFlatMult: number;
651
+ /** @example 1000000 */
652
+ longProportionalMult: number;
653
+ /** @example 1000000 */
654
+ mediumInterval: number;
655
+ /** @example 1000000 */
656
+ mediumFlatMult: number;
657
+ /** @example 1000000 */
658
+ mediumProportionalMult: number;
659
+ }
660
+ export interface SizeLimitsConfig {
661
+ /**
662
+ * @format int64
663
+ * @example 1000000
664
+ */
665
+ maxMsgBits: number;
666
+ /**
667
+ * @format int64
668
+ * @example 1000000
669
+ */
670
+ maxMsgCells: number;
671
+ /**
672
+ * @format int64
673
+ * @example 1000000
674
+ */
675
+ maxLibraryCells: number;
676
+ /**
677
+ * @format int
678
+ * @example 1000000
679
+ */
680
+ maxVmDataDepth: number;
681
+ /**
682
+ * @format int64
683
+ * @example 1000000
684
+ */
685
+ maxExtMsgSize: number;
686
+ /**
687
+ * @format int
688
+ * @example 1000000
689
+ */
690
+ maxExtMsgDepth: number;
691
+ /**
692
+ * @format int64
693
+ * @example 1000000
694
+ */
695
+ maxAccStateCells?: number;
696
+ /**
697
+ * @format int64
698
+ * @example 1000000
699
+ */
700
+ maxAccStateBits?: number;
701
+ }
702
+ export interface ValidatorsSet {
703
+ utimeSince: number;
704
+ utimeUntil: number;
705
+ total: number;
706
+ main: number;
707
+ /**
708
+ * @format bigint
709
+ * @example "1152921504606846800"
710
+ */
711
+ totalWeight?: bigint;
712
+ list: {
713
+ publicKey: string;
714
+ /** @format bigint */
715
+ weight: bigint;
716
+ /** @example "45061C1D4EC44A937D0318589E13C73D151D1CEF5D3C0E53AFBCF56A6C2FE2BD" */
717
+ adnlAddr?: string;
718
+ }[];
719
+ }
720
+ export interface Oracle {
721
+ /**
722
+ * @format address
723
+ * @example "0:55e8809519cd3c49098c9ee45afdafcea7a894a74d0f628d94a115a50e045122"
724
+ */
725
+ address: Address;
726
+ /** @example "00000000000000000000000017dcab1b1481610f6c7a7a98cf0370dc0ec704a6" */
727
+ secpPubkey: string;
728
+ }
729
+ export interface OracleBridgeParams {
730
+ /** @format address */
731
+ bridgeAddr: Address;
732
+ /** @format address */
733
+ oracleMultisigAddress: Address;
734
+ externalChainAddress: string;
735
+ oracles: Oracle[];
736
+ }
737
+ export interface JettonBridgePrices {
738
+ /** @format int64 */
739
+ bridgeBurnFee: number;
740
+ /** @format int64 */
741
+ bridgeMintFee: number;
742
+ /** @format int64 */
743
+ walletMinTonsForStorage: number;
744
+ /** @format int64 */
745
+ walletGasConsumption: number;
746
+ /** @format int64 */
747
+ minterMinTonsForStorage: number;
748
+ /** @format int64 */
749
+ discoverGasConsumption: number;
750
+ }
751
+ export interface JettonBridgeParams {
752
+ /** @format address */
753
+ bridgeAddress: Address;
754
+ /** @format address */
755
+ oraclesAddress: Address;
756
+ stateFlags: number;
757
+ /** @format int64 */
758
+ burnBridgeFee?: number;
759
+ oracles: Oracle[];
760
+ externalChainAddress?: string;
761
+ prices?: JettonBridgePrices;
762
+ }
763
+ export interface Validator {
764
+ /**
765
+ * @format address
766
+ * @example "0:55e8809519cd3c49098c9ee45afdafcea7a894a74d0f628d94a115a50e045122"
767
+ */
768
+ address: Address;
769
+ /** @example "10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365" */
770
+ adnlAddress: string;
771
+ /**
772
+ * @format bigint
773
+ * @example 123456789
774
+ */
775
+ stake: bigint;
776
+ /**
777
+ * @format int64
778
+ * @example 123456789
779
+ */
780
+ maxFactor: number;
781
+ }
782
+ export interface Validators {
783
+ /**
784
+ * @format int64
785
+ * @example 123456789
786
+ */
787
+ electAt: number;
788
+ /**
789
+ * @format int64
790
+ * @example 123456789
791
+ */
792
+ electClose: number;
793
+ /**
794
+ * @format bigint
795
+ * @example 123456789
796
+ */
797
+ minStake: bigint;
798
+ /**
799
+ * @format bigint
800
+ * @example 123456789
801
+ */
802
+ totalStake: bigint;
803
+ validators: Validator[];
804
+ }
805
+ export interface AccountStorageInfo {
806
+ /**
807
+ * @format int64
808
+ * @example 567
809
+ */
810
+ usedCells: number;
811
+ /**
812
+ * @format int64
813
+ * @example 567
814
+ */
815
+ usedBits: number;
816
+ /**
817
+ * @format int64
818
+ * @example 567
819
+ */
820
+ usedPublicCells: number;
821
+ /**
822
+ * time of the last payment
823
+ * @format int64
824
+ * @example 1720860269
825
+ */
826
+ lastPaid: number;
827
+ /**
828
+ * @format bigint
829
+ * @example 567
830
+ */
831
+ duePayment: bigint;
832
+ }
833
+ export interface BlockchainRawAccount {
834
+ /**
835
+ * @format address
836
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
837
+ */
838
+ address: Address;
839
+ /**
840
+ * @format bigint
841
+ * @example 123456789
842
+ */
843
+ balance: bigint;
844
+ extraBalance?: Record<string, string>;
845
+ /**
846
+ * @format cell
847
+ * @example "b5ee9c72410104010087000114ff00f4a413f4a0f2c80b0102012002030002d200dfa5ffff76a268698fe9ffe8e42c5267858f90e785ffe4f6aa6467c444ffb365ffc10802faf0807d014035e7a064b87d804077e7857fc10803dfd2407d014035e7a064b86467cd8903a32b9ba4410803ade68afd014035e7a045ea432b6363796103bb7b9363210c678b64b87d807d8040c249b3e4"
848
+ */
849
+ code?: Cell;
850
+ /**
851
+ * @format cell
852
+ * @example "b5ee9c7241010101002600004811fd096c0000000000000000000000000000000000000000000000000000000000000000cb78264d"
853
+ */
854
+ data?: Cell;
855
+ /**
856
+ * @format bigint
857
+ * @example 123456789
858
+ */
859
+ lastTransactionLt: bigint;
860
+ /** @example "088b436a846d92281734236967970612f87fbd64a2cd3573107948379e8e4161" */
861
+ lastTransactionHash?: string;
862
+ /** @example "088b436a846d92281734236967970612f87fbd64a2cd3573107948379e8e4161" */
863
+ frozenHash?: string;
864
+ status: AccountStatus;
865
+ storage: AccountStorageInfo;
866
+ libraries?: {
867
+ /** @example true */
868
+ public: boolean;
869
+ /** @format cell */
870
+ root: Cell;
871
+ }[];
872
+ }
873
+ export interface Account {
874
+ /**
875
+ * @format address
876
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
877
+ */
878
+ address: Address;
879
+ /**
880
+ * @format bigint
881
+ * @example 123456789
882
+ */
883
+ balance: bigint;
884
+ extraBalance?: ExtraCurrency[];
885
+ /**
886
+ * {'USD': 1, 'IDR': 1000}
887
+ * @example {}
888
+ */
889
+ currenciesBalance?: Record<string, any>;
890
+ /**
891
+ * unix timestamp
892
+ * @format int64
893
+ * @example 1720860269
894
+ */
895
+ lastActivity: number;
896
+ status: AccountStatus;
897
+ interfaces?: string[];
898
+ /** @example "Ton foundation" */
899
+ name?: string;
900
+ /** @example true */
901
+ isScam?: boolean;
902
+ /** @example "https://ton.org/logo.png" */
903
+ icon?: string;
904
+ /** @example true */
905
+ memoRequired?: boolean;
906
+ /** @example ["get_item_data"] */
907
+ getMethods: string[];
908
+ isSuspended?: boolean;
909
+ isWallet: boolean;
910
+ }
911
+ export interface Accounts {
912
+ accounts: Account[];
913
+ }
914
+ export interface GaslessConfig {
915
+ /**
916
+ * sending excess to this address decreases the commission of a gasless transfer
917
+ * @format address
918
+ * @example "0:dfbd5be8497fdc0c9fcbdfc676864840ddf8ad6423d6d5657d9b0e8270d6c8ac"
919
+ */
920
+ relayAddress: Address;
921
+ /** list of jettons, any of them can be used to pay for gas */
922
+ gasJettons: {
923
+ /** @format address */
924
+ masterId: Address;
925
+ }[];
926
+ }
927
+ export interface SignRawMessage {
928
+ /**
929
+ * @format address
930
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
931
+ */
932
+ address: Address;
933
+ /** Number of nanocoins to send. Decimal string. */
934
+ amount: string;
935
+ /**
936
+ * Raw one-cell BoC encoded in hex.
937
+ * @format cell
938
+ */
939
+ payload?: Cell;
940
+ /**
941
+ * Raw once-cell BoC encoded in hex.
942
+ * @format cell
943
+ */
944
+ stateInit?: Cell;
945
+ }
946
+ export interface SignRawParams {
947
+ /**
948
+ * @format address
949
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
950
+ */
951
+ relayAddress: Address;
952
+ /**
953
+ * Commission for the transaction. In nanocoins.
954
+ * @format bigint
955
+ * @example "1000000"
956
+ */
957
+ commission: bigint;
958
+ /**
959
+ * @format address
960
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
961
+ */
962
+ from: Address;
963
+ /**
964
+ * @format int64
965
+ * @example 1717397217
966
+ */
967
+ validUntil: number;
968
+ messages: SignRawMessage[];
969
+ }
970
+ export interface MethodExecutionResult {
971
+ /** @example true */
972
+ success: boolean;
973
+ /**
974
+ * tvm exit code
975
+ * @example 0
976
+ */
977
+ exitCode: number;
978
+ stack: TupleItem[];
979
+ decoded?: any;
980
+ }
981
+ export interface RawBlockchainConfig {
982
+ /** @example {} */
983
+ config: Record<string, any>;
984
+ }
985
+ export interface BlockchainConfig {
986
+ /**
987
+ * config address
988
+ * @format address
989
+ */
990
+ '0': Address;
991
+ /**
992
+ * elector address
993
+ * @format address
994
+ */
995
+ '1': Address;
996
+ /**
997
+ * minter address
998
+ * @format address
999
+ */
1000
+ '2': Address;
1001
+ /**
1002
+ * The address of the transaction fee collector.
1003
+ * @format address
1004
+ */
1005
+ '3'?: Address;
1006
+ /**
1007
+ * dns root address
1008
+ * @format address
1009
+ */
1010
+ '4': Address;
1011
+ '5'?: {
1012
+ /** @format address */
1013
+ blackholeAddr?: Address;
1014
+ /** @format int64 */
1015
+ feeBurnNom: number;
1016
+ /** @format int64 */
1017
+ feeBurnDenom: number;
1018
+ };
1019
+ /** Minting fees of new currencies. */
1020
+ '6'?: {
1021
+ /** @format int64 */
1022
+ mintNewPrice: number;
1023
+ /** @format int64 */
1024
+ mintAddPrice: number;
1025
+ };
1026
+ /** The volume of each of the additional currencies in circulation. */
1027
+ '7'?: {
1028
+ currencies: {
1029
+ /** @format int64 */
1030
+ currencyId: number;
1031
+ amount: string;
1032
+ }[];
1033
+ };
1034
+ /** The network version and additional capabilities supported by the validators. */
1035
+ '8'?: {
1036
+ /** @format int64 */
1037
+ version: number;
1038
+ /** @format int64 */
1039
+ capabilities: number;
1040
+ };
1041
+ /** List of mandatory parameters of the blockchain config. */
1042
+ '9'?: {
1043
+ mandatoryParams: number[];
1044
+ };
1045
+ /** List of critical TON parameters, the change of which significantly affects the network, so more voting rounds are held. */
1046
+ '10'?: {
1047
+ criticalParams: number[];
1048
+ };
1049
+ /** This parameter indicates under what conditions proposals to change the TON configuration are accepted. */
1050
+ '11'?: {
1051
+ normalParams: ConfigProposalSetup;
1052
+ criticalParams: ConfigProposalSetup;
1053
+ };
1054
+ /** Workchains in the TON Blockchain */
1055
+ '12'?: {
1056
+ workchains: WorkchainDescr[];
1057
+ };
1058
+ /** The cost of filing complaints about incorrect operation of validators. */
1059
+ '13'?: {
1060
+ /** @format int64 */
1061
+ deposit: number;
1062
+ /** @format int64 */
1063
+ bitPrice: number;
1064
+ /** @format int64 */
1065
+ cellPrice: number;
1066
+ };
1067
+ /** The reward in nanoTons for block creation in the TON blockchain. */
1068
+ '14'?: {
1069
+ /** @format int64 */
1070
+ masterchainBlockFee: number;
1071
+ /** @format int64 */
1072
+ basechainBlockFee: number;
1073
+ };
1074
+ /** The reward in nanoTons for block creation in the TON blockchain. */
1075
+ '15'?: {
1076
+ /**
1077
+ * @format int64
1078
+ * @example 65536
1079
+ */
1080
+ validatorsElectedFor: number;
1081
+ /**
1082
+ * @format int64
1083
+ * @example 32768
1084
+ */
1085
+ electionsStartBefore: number;
1086
+ /**
1087
+ * @format int64
1088
+ * @example 8192
1089
+ */
1090
+ electionsEndBefore: number;
1091
+ /**
1092
+ * @format int64
1093
+ * @example 32768
1094
+ */
1095
+ stakeHeldFor: number;
1096
+ };
1097
+ /** The limits on the number of validators in the TON blockchain. */
1098
+ '16'?: {
1099
+ /** @example 400 */
1100
+ maxValidators: number;
1101
+ /** @example 100 */
1102
+ maxMainValidators: number;
1103
+ /** @example 75 */
1104
+ minValidators: number;
1105
+ };
1106
+ /** The stake parameters configuration in the TON blockchain. */
1107
+ '17'?: {
1108
+ minStake: string;
1109
+ maxStake: string;
1110
+ minTotalStake: string;
1111
+ /** @format int64 */
1112
+ maxStakeFactor: number;
1113
+ };
1114
+ /** The prices for data storage. */
1115
+ '18'?: {
1116
+ storagePrices: {
1117
+ /**
1118
+ * @format int64
1119
+ * @example 0
1120
+ */
1121
+ utimeSince: number;
1122
+ /**
1123
+ * @format int64
1124
+ * @example 1
1125
+ */
1126
+ bitPricePs: number;
1127
+ /**
1128
+ * @format int64
1129
+ * @example 500
1130
+ */
1131
+ cellPricePs: number;
1132
+ /**
1133
+ * @format int64
1134
+ * @example 1000
1135
+ */
1136
+ mcBitPricePs: number;
1137
+ /**
1138
+ * @format int64
1139
+ * @example 500000
1140
+ */
1141
+ mcCellPricePs: number;
1142
+ }[];
1143
+ };
1144
+ /** The cost of computations in the masterchain. The complexity of any computation is estimated in gas units. */
1145
+ '20'?: {
1146
+ gasLimitsPrices: GasLimitPrices;
1147
+ };
1148
+ /** The cost of computations in the basechains. The complexity of any computation is estimated in gas units. */
1149
+ '21'?: {
1150
+ gasLimitsPrices: GasLimitPrices;
1151
+ };
1152
+ /** The limits on the block in the masterchain, upon reaching which the block is finalized and the callback of the remaining messages (if any) is carried over to the next block. */
1153
+ '22'?: {
1154
+ blockLimits: BlockLimits;
1155
+ };
1156
+ /** The limits on the block in the basechains, upon reaching which the block is finalized and the callback of the remaining messages (if any) is carried over to the next block. */
1157
+ '23'?: {
1158
+ blockLimits: BlockLimits;
1159
+ };
1160
+ /** The cost of sending messages in the masterchain of the TON blockchain. */
1161
+ '24'?: {
1162
+ msgForwardPrices: MsgForwardPrices;
1163
+ };
1164
+ /** The cost of sending messages in the basechains of the TON blockchain. */
1165
+ '25'?: {
1166
+ msgForwardPrices: MsgForwardPrices;
1167
+ };
1168
+ /** The configuration for the Catchain protocol. */
1169
+ '28'?: {
1170
+ /**
1171
+ * @format int64
1172
+ * @example 1000000
1173
+ */
1174
+ mcCatchainLifetime: number;
1175
+ /**
1176
+ * @format int64
1177
+ * @example 1000000
1178
+ */
1179
+ shardCatchainLifetime: number;
1180
+ /**
1181
+ * @format int64
1182
+ * @example 1000000
1183
+ */
1184
+ shardValidatorsLifetime: number;
1185
+ /**
1186
+ * @format int64
1187
+ * @example 1000000
1188
+ */
1189
+ shardValidatorsNum: number;
1190
+ /**
1191
+ * @format int
1192
+ * @example 1000000
1193
+ */
1194
+ flags?: number;
1195
+ shuffleMcValidators?: boolean;
1196
+ };
1197
+ /** The configuration for the consensus protocol above catchain. */
1198
+ '29'?: {
1199
+ /**
1200
+ * @format int
1201
+ * @example 0
1202
+ */
1203
+ flags?: number;
1204
+ /** @example true */
1205
+ newCatchainIds?: boolean;
1206
+ /**
1207
+ * @format int64
1208
+ * @example 3
1209
+ */
1210
+ roundCandidates: number;
1211
+ /**
1212
+ * @format int64
1213
+ * @example 2000
1214
+ */
1215
+ nextCandidateDelayMs: number;
1216
+ /**
1217
+ * @format int64
1218
+ * @example 16000
1219
+ */
1220
+ consensusTimeoutMs: number;
1221
+ /**
1222
+ * @format int64
1223
+ * @example 3
1224
+ */
1225
+ fastAttempts: number;
1226
+ /**
1227
+ * @format int64
1228
+ * @example 8
1229
+ */
1230
+ attemptDuration: number;
1231
+ /**
1232
+ * @format int64
1233
+ * @example 4
1234
+ */
1235
+ catchainMaxDeps: number;
1236
+ /**
1237
+ * @format int64
1238
+ * @example 2097152
1239
+ */
1240
+ maxBlockBytes: number;
1241
+ /**
1242
+ * @format int64
1243
+ * @example 2097152
1244
+ */
1245
+ maxCollatedBytes: number;
1246
+ /**
1247
+ * @format int64
1248
+ * @example 2
1249
+ */
1250
+ protoVersion?: number;
1251
+ /**
1252
+ * @format int64
1253
+ * @example 10000
1254
+ */
1255
+ catchainMaxBlocksCoeff?: number;
1256
+ };
1257
+ /** The configuration for the consensus protocol above catchain. */
1258
+ '31'?: {
1259
+ fundamentalSmcAddr: Address[];
1260
+ };
1261
+ '32'?: ValidatorsSet;
1262
+ '33'?: ValidatorsSet;
1263
+ '34'?: ValidatorsSet;
1264
+ '35'?: ValidatorsSet;
1265
+ '36'?: ValidatorsSet;
1266
+ '37'?: ValidatorsSet;
1267
+ /** The configuration for punishment for improper behavior (non-validation). In the absence of the parameter, the default fine size is 101 TON */
1268
+ '40'?: {
1269
+ misbehaviourPunishmentConfig: MisbehaviourPunishmentConfig;
1270
+ };
1271
+ /** The size limits and some other characteristics of accounts and messages. */
1272
+ '43'?: {
1273
+ sizeLimitsConfig: SizeLimitsConfig;
1274
+ };
1275
+ /** suspended accounts */
1276
+ '44': {
1277
+ accounts: Address[];
1278
+ suspendedUntil: number;
1279
+ };
1280
+ /** precompiled contracts */
1281
+ '45'?: {
1282
+ contracts: {
1283
+ /** @format address */
1284
+ codeHash: Address;
1285
+ /** @format int64 */
1286
+ gasUsage: number;
1287
+ }[];
1288
+ };
1289
+ /** Bridge parameters for wrapping TON in other networks. */
1290
+ '71'?: {
1291
+ oracleBridgeParams: OracleBridgeParams;
1292
+ };
1293
+ /** Bridge parameters for wrapping TON in other networks. */
1294
+ '72'?: {
1295
+ oracleBridgeParams: OracleBridgeParams;
1296
+ };
1297
+ /** Bridge parameters for wrapping TON in other networks. */
1298
+ '73'?: {
1299
+ oracleBridgeParams: OracleBridgeParams;
1300
+ };
1301
+ /** Bridge parameters for wrapping tokens from other networks into tokens on the TON network. */
1302
+ '79'?: {
1303
+ jettonBridgeParams: JettonBridgeParams;
1304
+ };
1305
+ /** Bridge parameters for wrapping tokens from other networks into tokens on the TON network. */
1306
+ '81'?: {
1307
+ jettonBridgeParams: JettonBridgeParams;
1308
+ };
1309
+ /** Bridge parameters for wrapping tokens from other networks into tokens on the TON network. */
1310
+ '82'?: {
1311
+ jettonBridgeParams: JettonBridgeParams;
1312
+ };
1313
+ /**
1314
+ * config boc in hex format
1315
+ * @format cell
1316
+ */
1317
+ raw: Cell;
1318
+ }
1319
+ export interface DomainNames {
1320
+ domains: string[];
1321
+ }
1322
+ export interface DomainBid {
1323
+ /**
1324
+ * @default false
1325
+ * @example true
1326
+ */
1327
+ success: boolean;
1328
+ /**
1329
+ * @format int64
1330
+ * @example 1660050553
1331
+ */
1332
+ value: number;
1333
+ /**
1334
+ * @format int64
1335
+ * @example 1660050553
1336
+ */
1337
+ txTime: number;
1338
+ /** @example "55e8809519cd3c49098c9ee45afdafcea7a894a74d0f628d94a115a50e045122" */
1339
+ txHash: string;
1340
+ bidder: AccountAddress;
1341
+ }
1342
+ export interface DomainBids {
1343
+ data: DomainBid[];
1344
+ }
1345
+ export declare enum JettonVerificationType {
1346
+ Whitelist = "whitelist",
1347
+ Blacklist = "blacklist",
1348
+ None = "none"
1349
+ }
1350
+ export interface JettonPreview {
1351
+ /**
1352
+ * @format address
1353
+ * @example "0:0BB5A9F69043EEBDDA5AD2E946EB953242BD8F603FE795D90698CEEC6BFC60A0"
1354
+ */
1355
+ address: Address;
1356
+ /** @example "Wrapped TON" */
1357
+ name: string;
1358
+ /** @example "WTON" */
1359
+ symbol: string;
1360
+ /** @example 9 */
1361
+ decimals: number;
1362
+ /** @example "https://cache.tonapi.io/images/jetton.jpg" */
1363
+ image: string;
1364
+ verification: JettonVerificationType;
1365
+ customPayloadApiUri?: string;
1366
+ /** @format int32 */
1367
+ score: number;
1368
+ }
1369
+ export interface JettonBalance {
1370
+ /**
1371
+ * @format bigint
1372
+ * @example "597968399"
1373
+ */
1374
+ balance: bigint;
1375
+ price?: TokenRates;
1376
+ walletAddress: AccountAddress;
1377
+ jetton: JettonPreview;
1378
+ /** @example ["custom_payload","non_transferable"] */
1379
+ extensions?: string[];
1380
+ lock?: {
1381
+ /**
1382
+ * @format bigint
1383
+ * @example "597968399"
1384
+ */
1385
+ amount: bigint;
1386
+ /**
1387
+ * @format int64
1388
+ * @example 1678223064
1389
+ */
1390
+ till: number;
1391
+ };
1392
+ }
1393
+ export interface JettonsBalances {
1394
+ balances: JettonBalance[];
1395
+ }
1396
+ export interface Price {
1397
+ /**
1398
+ * @format bigint
1399
+ * @example "123000000000"
1400
+ */
1401
+ value: bigint;
1402
+ /** @example "TON" */
1403
+ tokenName: string;
1404
+ }
1405
+ export interface ImagePreview {
1406
+ /** @example "100x100" */
1407
+ resolution: string;
1408
+ /** @example "https://site.com/pic1.jpg" */
1409
+ url: string;
1410
+ }
1411
+ export type NftApprovedBy = ('getgems' | 'tonkeeper')[];
1412
+ /** @example "whitelist" */
1413
+ export declare enum TrustType {
1414
+ Whitelist = "whitelist",
1415
+ Graylist = "graylist",
1416
+ Blacklist = "blacklist",
1417
+ None = "none"
1418
+ }
1419
+ export interface Sale {
1420
+ /**
1421
+ * @format address
1422
+ * @example "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365"
1423
+ */
1424
+ address: Address;
1425
+ market: AccountAddress;
1426
+ owner?: AccountAddress;
1427
+ price: Price;
1428
+ }
1429
+ export interface NftItem {
1430
+ /**
1431
+ * @format address
1432
+ * @example "0:E93E7D444180608B8520C00DC664383A387356FB6E16FDDF99DBE5E1415A574B"
1433
+ */
1434
+ address: Address;
1435
+ /**
1436
+ * @format int64
1437
+ * @example 58
1438
+ */
1439
+ index: number;
1440
+ owner?: AccountAddress;
1441
+ collection?: {
1442
+ /**
1443
+ * @format address
1444
+ * @example "0:E93E7D444180608B8520C00DC664383A387356FB6E16FDDF99DBE5E1415A574B"
1445
+ */
1446
+ address: Address;
1447
+ /** @example "TON Diamonds" */
1448
+ name: string;
1449
+ /** @example "Best collection in TON network" */
1450
+ description: string;
1451
+ };
1452
+ /**
1453
+ * Collection master contract confirmed that this item is part of collection
1454
+ * @example true
1455
+ */
1456
+ verified: boolean;
1457
+ /** @example {} */
1458
+ metadata: Record<string, any>;
1459
+ sale?: Sale;
1460
+ previews?: ImagePreview[];
1461
+ /** @example "crypto.ton" */
1462
+ dns?: string;
1463
+ /**
1464
+ * please use trust field
1465
+ * @deprecated
1466
+ */
1467
+ approvedBy: NftApprovedBy;
1468
+ /** @example false */
1469
+ includeCnft?: boolean;
1470
+ trust: TrustType;
1471
+ }
1472
+ export interface NftItems {
1473
+ nftItems: NftItem[];
1474
+ }
1475
+ export interface Multisigs {
1476
+ multisigs: Multisig[];
1477
+ }
1478
+ export interface Multisig {
1479
+ /**
1480
+ * @format address
1481
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
1482
+ */
1483
+ address: Address;
1484
+ /**
1485
+ * @format int64
1486
+ * @example 1
1487
+ */
1488
+ seqno: number;
1489
+ /** @format int32 */
1490
+ threshold: number;
1491
+ signers: Address[];
1492
+ proposers: Address[];
1493
+ orders: MultisigOrder[];
1494
+ }
1495
+ export interface MultisigOrder {
1496
+ /**
1497
+ * @format address
1498
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
1499
+ */
1500
+ address: Address;
1501
+ /**
1502
+ * @format int64
1503
+ * @example 1
1504
+ */
1505
+ orderSeqno: number;
1506
+ /** @format int32 */
1507
+ threshold: number;
1508
+ /** @example false */
1509
+ sentForExecution: boolean;
1510
+ signers: Address[];
1511
+ /** @format int32 */
1512
+ approvalsNum: number;
1513
+ /** @format int64 */
1514
+ expirationDate: number;
1515
+ /** Risk specifies assets that could be lost if a message would be sent to a malicious smart contract. It makes sense to understand the risk BEFORE sending a message to the blockchain. */
1516
+ risk: Risk;
1517
+ /** @format int64 */
1518
+ creationDate: number;
1519
+ signedBy: Address[];
1520
+ }
1521
+ export interface Refund {
1522
+ /** @example "DNS.ton" */
1523
+ type: 'DNS.ton' | 'DNS.tg' | 'GetGems';
1524
+ /** @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf" */
1525
+ origin: string;
1526
+ }
1527
+ export interface ValueFlow {
1528
+ account: AccountAddress;
1529
+ /**
1530
+ * @format bigint
1531
+ * @example 80
1532
+ */
1533
+ ton: bigint;
1534
+ /**
1535
+ * @format bigint
1536
+ * @example 10
1537
+ */
1538
+ fees: bigint;
1539
+ jettons?: {
1540
+ account: AccountAddress;
1541
+ jetton: JettonPreview;
1542
+ /**
1543
+ * @format bigint
1544
+ * @example "200"
1545
+ */
1546
+ qty: bigint;
1547
+ /**
1548
+ * @deprecated
1549
+ * @format bigint
1550
+ * @example 10
1551
+ */
1552
+ quantity: bigint;
1553
+ }[];
1554
+ }
1555
+ export interface Action {
1556
+ /** @example "TonTransfer" */
1557
+ type: 'TonTransfer' | 'ExtraCurrencyTransfer' | 'JettonTransfer' | 'JettonBurn' | 'JettonMint' | 'NftItemTransfer' | 'ContractDeploy' | 'Subscribe' | 'UnSubscribe' | 'AuctionBid' | 'NftPurchase' | 'DepositStake' | 'WithdrawStake' | 'WithdrawStakeRequest' | 'JettonSwap' | 'SmartContractExec' | 'ElectionsRecoverStake' | 'ElectionsDepositStake' | 'DomainRenew' | 'InscriptionTransfer' | 'InscriptionMint' | 'Unknown';
1558
+ /** @example "ok" */
1559
+ status: 'ok' | 'failed';
1560
+ TonTransfer?: TonTransferAction;
1561
+ ExtraCurrencyTransfer?: ExtraCurrencyTransferAction;
1562
+ ContractDeploy?: ContractDeployAction;
1563
+ JettonTransfer?: JettonTransferAction;
1564
+ JettonBurn?: JettonBurnAction;
1565
+ JettonMint?: JettonMintAction;
1566
+ NftItemTransfer?: NftItemTransferAction;
1567
+ Subscribe?: SubscriptionAction;
1568
+ UnSubscribe?: UnSubscriptionAction;
1569
+ AuctionBid?: AuctionBidAction;
1570
+ NftPurchase?: NftPurchaseAction;
1571
+ /** validator's participation in elections */
1572
+ DepositStake?: DepositStakeAction;
1573
+ /** validator's participation in elections */
1574
+ WithdrawStake?: WithdrawStakeAction;
1575
+ /** validator's participation in elections */
1576
+ WithdrawStakeRequest?: WithdrawStakeRequestAction;
1577
+ ElectionsDepositStake?: ElectionsDepositStakeAction;
1578
+ ElectionsRecoverStake?: ElectionsRecoverStakeAction;
1579
+ JettonSwap?: JettonSwapAction;
1580
+ SmartContractExec?: SmartContractAction;
1581
+ DomainRenew?: DomainRenewAction;
1582
+ InscriptionTransfer?: InscriptionTransferAction;
1583
+ InscriptionMint?: InscriptionMintAction;
1584
+ /** shortly describes what this action is about. */
1585
+ simplePreview: ActionSimplePreview;
1586
+ baseTransactions: string[];
1587
+ }
1588
+ export interface TonTransferAction {
1589
+ sender: AccountAddress;
1590
+ recipient: AccountAddress;
1591
+ /**
1592
+ * amount in nanotons
1593
+ * @format bigint
1594
+ * @example 123456789
1595
+ */
1596
+ amount: bigint;
1597
+ /**
1598
+ * @example "Hi! This is your salary.
1599
+ * From accounting with love."
1600
+ */
1601
+ comment?: string;
1602
+ encryptedComment?: EncryptedComment;
1603
+ refund?: Refund;
1604
+ }
1605
+ export interface ExtraCurrencies {
1606
+ extraCurrencies: EcPreview[];
1607
+ }
1608
+ export interface EcPreview {
1609
+ /**
1610
+ * @format int32
1611
+ * @example 239
1612
+ */
1613
+ id: number;
1614
+ /** @example "FMS" */
1615
+ symbol: string;
1616
+ /** @example 5 */
1617
+ decimals: number;
1618
+ /** @example "https://cache.tonapi.io/images/extra.jpg" */
1619
+ image: string;
1620
+ }
1621
+ export interface ExtraCurrencyTransferAction {
1622
+ sender: AccountAddress;
1623
+ recipient: AccountAddress;
1624
+ /**
1625
+ * amount in quanta of tokens
1626
+ * @format bigint
1627
+ * @example "1000000000"
1628
+ */
1629
+ amount: bigint;
1630
+ /**
1631
+ * @example "Hi! This is your salary.
1632
+ * From accounting with love."
1633
+ */
1634
+ comment?: string;
1635
+ encryptedComment?: EncryptedComment;
1636
+ currency: EcPreview;
1637
+ }
1638
+ export interface SmartContractAction {
1639
+ executor: AccountAddress;
1640
+ contract: AccountAddress;
1641
+ /**
1642
+ * amount in nanotons
1643
+ * @format bigint
1644
+ * @example 123456789
1645
+ */
1646
+ tonAttached: bigint;
1647
+ /** @example "NftTransfer or 0x35d95a12" */
1648
+ operation: string;
1649
+ payload?: string;
1650
+ refund?: Refund;
1651
+ }
1652
+ export interface DomainRenewAction {
1653
+ /** @example "vasya.ton" */
1654
+ domain: string;
1655
+ /**
1656
+ * @format address
1657
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
1658
+ */
1659
+ contractAddress: Address;
1660
+ renewer: AccountAddress;
1661
+ }
1662
+ export interface InscriptionMintAction {
1663
+ recipient: AccountAddress;
1664
+ /**
1665
+ * amount in minimal particles
1666
+ * @format bigint
1667
+ * @example "123456789"
1668
+ */
1669
+ amount: bigint;
1670
+ /** @example "ton20" */
1671
+ type: 'ton20' | 'gram20';
1672
+ /** @example "nano" */
1673
+ ticker: string;
1674
+ /** @example 9 */
1675
+ decimals: number;
1676
+ }
1677
+ export interface InscriptionTransferAction {
1678
+ sender: AccountAddress;
1679
+ recipient: AccountAddress;
1680
+ /**
1681
+ * amount in minimal particles
1682
+ * @format bigint
1683
+ * @example "123456789"
1684
+ */
1685
+ amount: bigint;
1686
+ /**
1687
+ * @example "Hi! This is your salary.
1688
+ * From accounting with love."
1689
+ */
1690
+ comment?: string;
1691
+ /** @example "ton20" */
1692
+ type: 'ton20' | 'gram20';
1693
+ /** @example "nano" */
1694
+ ticker: string;
1695
+ /** @example 9 */
1696
+ decimals: number;
1697
+ }
1698
+ export interface NftItemTransferAction {
1699
+ sender?: AccountAddress;
1700
+ recipient?: AccountAddress;
1701
+ /** @example "" */
1702
+ nft: string;
1703
+ /**
1704
+ * @example "Hi! This is your salary.
1705
+ * From accounting with love."
1706
+ */
1707
+ comment?: string;
1708
+ encryptedComment?: EncryptedComment;
1709
+ /**
1710
+ * raw hex encoded payload
1711
+ * @example "0234de3e21d21b3ee21f3"
1712
+ */
1713
+ payload?: string;
1714
+ refund?: Refund;
1715
+ }
1716
+ export interface JettonTransferAction {
1717
+ sender?: AccountAddress;
1718
+ recipient?: AccountAddress;
1719
+ /**
1720
+ * @format address
1721
+ * @example "0:E93E7D444180608B8520C00DC664383A387356FB6E16FDDF99DBE5E1415A574B"
1722
+ */
1723
+ sendersWallet: Address;
1724
+ /**
1725
+ * @format address
1726
+ * @example "0:E93E7D444180608B8520C00DC664383A387356FB6E16FDDF99DBE5E1415A574B"
1727
+ */
1728
+ recipientsWallet: Address;
1729
+ /**
1730
+ * amount in quanta of tokens
1731
+ * @format bigint
1732
+ * @example "1000000000"
1733
+ */
1734
+ amount: bigint;
1735
+ /**
1736
+ * @example "Hi! This is your salary.
1737
+ * From accounting with love."
1738
+ */
1739
+ comment?: string;
1740
+ encryptedComment?: EncryptedComment;
1741
+ refund?: Refund;
1742
+ jetton: JettonPreview;
1743
+ }
1744
+ export interface JettonBurnAction {
1745
+ sender: AccountAddress;
1746
+ /**
1747
+ * @format address
1748
+ * @example "0:E93E7D444180608B8520C00DC664383A387356FB6E16FDDF99DBE5E1415A574B"
1749
+ */
1750
+ sendersWallet: Address;
1751
+ /**
1752
+ * amount in quanta of tokens
1753
+ * @format bigint
1754
+ * @example "1000000000"
1755
+ */
1756
+ amount: bigint;
1757
+ jetton: JettonPreview;
1758
+ }
1759
+ export interface JettonMintAction {
1760
+ recipient: AccountAddress;
1761
+ /**
1762
+ * @format address
1763
+ * @example "0:E93E7D444180608B8520C00DC664383A387356FB6E16FDDF99DBE5E1415A574B"
1764
+ */
1765
+ recipientsWallet: Address;
1766
+ /**
1767
+ * amount in quanta of tokens
1768
+ * @format bigint
1769
+ * @example "1000000000"
1770
+ */
1771
+ amount: bigint;
1772
+ jetton: JettonPreview;
1773
+ }
1774
+ export interface ContractDeployAction {
1775
+ /**
1776
+ * @format address
1777
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
1778
+ */
1779
+ address: Address;
1780
+ /** @example ["nft_item","nft_royalty"] */
1781
+ interfaces: string[];
1782
+ }
1783
+ export interface SubscriptionAction {
1784
+ subscriber: AccountAddress;
1785
+ /**
1786
+ * @format address
1787
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
1788
+ */
1789
+ subscription: Address;
1790
+ beneficiary: AccountAddress;
1791
+ /**
1792
+ * @format bigint
1793
+ * @example 1000000000
1794
+ */
1795
+ amount: bigint;
1796
+ /** @example false */
1797
+ initial: boolean;
1798
+ }
1799
+ export interface UnSubscriptionAction {
1800
+ subscriber: AccountAddress;
1801
+ /**
1802
+ * @format address
1803
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
1804
+ */
1805
+ subscription: Address;
1806
+ beneficiary: AccountAddress;
1807
+ }
1808
+ export interface AuctionBidAction {
1809
+ auctionType: 'DNS.ton' | 'DNS.tg' | 'NUMBER.tg' | 'getgems';
1810
+ amount: Price;
1811
+ nft?: NftItem;
1812
+ bidder: AccountAddress;
1813
+ auction: AccountAddress;
1814
+ }
1815
+ /** validator's participation in elections */
1816
+ export interface DepositStakeAction {
1817
+ /**
1818
+ * @format bigint
1819
+ * @example 1660050553
1820
+ */
1821
+ amount: bigint;
1822
+ staker: AccountAddress;
1823
+ pool: AccountAddress;
1824
+ implementation: PoolImplementationType;
1825
+ }
1826
+ /** validator's participation in elections */
1827
+ export interface WithdrawStakeAction {
1828
+ /**
1829
+ * @format bigint
1830
+ * @example 1660050553
1831
+ */
1832
+ amount: bigint;
1833
+ staker: AccountAddress;
1834
+ pool: AccountAddress;
1835
+ implementation: PoolImplementationType;
1836
+ }
1837
+ /** validator's participation in elections */
1838
+ export interface WithdrawStakeRequestAction {
1839
+ /**
1840
+ * @format bigint
1841
+ * @example 1660050553
1842
+ */
1843
+ amount?: bigint;
1844
+ staker: AccountAddress;
1845
+ pool: AccountAddress;
1846
+ implementation: PoolImplementationType;
1847
+ }
1848
+ export interface ElectionsRecoverStakeAction {
1849
+ /**
1850
+ * @format bigint
1851
+ * @example 1660050553
1852
+ */
1853
+ amount: bigint;
1854
+ staker: AccountAddress;
1855
+ }
1856
+ export interface ElectionsDepositStakeAction {
1857
+ /**
1858
+ * @format bigint
1859
+ * @example 1660050553
1860
+ */
1861
+ amount: bigint;
1862
+ staker: AccountAddress;
1863
+ }
1864
+ export interface JettonSwapAction {
1865
+ dex: 'stonfi' | 'dedust' | 'megatonfi';
1866
+ /**
1867
+ * @format bigint
1868
+ * @example "1660050553"
1869
+ */
1870
+ amountIn: bigint;
1871
+ /**
1872
+ * @format bigint
1873
+ * @example "1660050553"
1874
+ */
1875
+ amountOut: bigint;
1876
+ /**
1877
+ * @format bigint
1878
+ * @example 1000000000
1879
+ */
1880
+ tonIn?: bigint;
1881
+ /**
1882
+ * @format bigint
1883
+ * @example 2000000000
1884
+ */
1885
+ tonOut?: bigint;
1886
+ userWallet: AccountAddress;
1887
+ router: AccountAddress;
1888
+ jettonMasterIn?: JettonPreview;
1889
+ jettonMasterOut?: JettonPreview;
1890
+ }
1891
+ export interface NftPurchaseAction {
1892
+ auctionType: 'DNS.ton' | 'DNS.tg' | 'NUMBER.tg' | 'getgems';
1893
+ amount: Price;
1894
+ nft: NftItem;
1895
+ seller: AccountAddress;
1896
+ buyer: AccountAddress;
1897
+ }
1898
+ /** shortly describes what this action is about. */
1899
+ export interface ActionSimplePreview {
1900
+ /** @example "Ton Transfer" */
1901
+ name: string;
1902
+ /** @example "Transferring 5 Ton" */
1903
+ description: string;
1904
+ /** a link to an image for this particular action. */
1905
+ actionImage?: string;
1906
+ /** @example "5 Ton" */
1907
+ value?: string;
1908
+ /** a link to an image that depicts this action's asset. */
1909
+ valueImage?: string;
1910
+ accounts: AccountAddress[];
1911
+ }
1912
+ /** An event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaningful high-level operation like a Jetton Transfer or an NFT Purchase. Actions are expected to be shown to users. It is advised not to build any logic on top of actions because actions can be changed at any time. */
1913
+ export interface AccountEvent {
1914
+ /** @example "e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e" */
1915
+ eventId: string;
1916
+ account: AccountAddress;
1917
+ /**
1918
+ * @format int64
1919
+ * @example 1234567890
1920
+ */
1921
+ timestamp: number;
1922
+ actions: Action[];
1923
+ /**
1924
+ * scam
1925
+ * @example false
1926
+ */
1927
+ isScam: boolean;
1928
+ /**
1929
+ * @format bigint
1930
+ * @example 25713146000001
1931
+ */
1932
+ lt: bigint;
1933
+ /**
1934
+ * Event is not finished yet. Transactions still happening
1935
+ * @example false
1936
+ */
1937
+ inProgress: boolean;
1938
+ /**
1939
+ * TODO
1940
+ * @format int64
1941
+ * @example 3
1942
+ */
1943
+ extra: number;
1944
+ }
1945
+ export interface AccountEvents {
1946
+ events: AccountEvent[];
1947
+ /**
1948
+ * @format int64
1949
+ * @example 25713146000001
1950
+ */
1951
+ nextFrom: number;
1952
+ }
1953
+ export interface TraceID {
1954
+ /** @example "55e8809519cd3c49098c9ee45afdafcea7a894a74d0f628d94a115a50e045122" */
1955
+ id: string;
1956
+ /**
1957
+ * @format int64
1958
+ * @example 1645544908
1959
+ */
1960
+ utime: number;
1961
+ }
1962
+ export interface TraceIDs {
1963
+ traces: TraceID[];
1964
+ }
1965
+ export interface ApyHistory {
1966
+ apy: number;
1967
+ time: number;
1968
+ }
1969
+ export interface Subscription {
1970
+ /**
1971
+ * @format address
1972
+ * @example "0:dea8f638b789172ce36d10a20318125e52c649aa84893cd77858224fe2b9b0ee"
1973
+ */
1974
+ address: Address;
1975
+ /**
1976
+ * @format address
1977
+ * @example "0:567DE86AF2B6A557D7085807CF7C26338124987A5179344F0D0FA2657EB710F1"
1978
+ */
1979
+ walletAddress: Address;
1980
+ /**
1981
+ * @format address
1982
+ * @example "0:c704dadfabac88eab58e340de03080df81ff76636431f48624ad6e26fb2da0a4"
1983
+ */
1984
+ beneficiaryAddress: Address;
1985
+ /**
1986
+ * @format int64
1987
+ * @example 1000000000
1988
+ */
1989
+ amount: number;
1990
+ /**
1991
+ * @format int64
1992
+ * @example 2592000
1993
+ */
1994
+ period: number;
1995
+ /**
1996
+ * @format int64
1997
+ * @example 1653996832
1998
+ */
1999
+ startTime: number;
2000
+ /**
2001
+ * @format int64
2002
+ * @example 10800
2003
+ */
2004
+ timeout: number;
2005
+ /**
2006
+ * @format int64
2007
+ * @example 1653996834
2008
+ */
2009
+ lastPaymentTime: number;
2010
+ /**
2011
+ * @format int64
2012
+ * @example 0
2013
+ */
2014
+ lastRequestTime: number;
2015
+ /**
2016
+ * @format int64
2017
+ * @example 217477
2018
+ */
2019
+ subscriptionId: number;
2020
+ /**
2021
+ * @format int32
2022
+ * @example 0
2023
+ */
2024
+ failedAttempts: number;
2025
+ }
2026
+ export interface Subscriptions {
2027
+ subscriptions: Subscription[];
2028
+ }
2029
+ export interface Auction {
2030
+ /** @example "wallet.ton" */
2031
+ domain: string;
2032
+ /**
2033
+ * @format address
2034
+ * @example "0:c704dadfabac88eab58e340de03080df81ff76636431f48624ad6e26fb2da0a4"
2035
+ */
2036
+ owner: Address;
2037
+ /**
2038
+ * @format bigint
2039
+ * @example 1660050553
2040
+ */
2041
+ price: bigint;
2042
+ /**
2043
+ * @format bigint
2044
+ * @example 1660050553
2045
+ */
2046
+ bids: bigint;
2047
+ /**
2048
+ * @format int64
2049
+ * @example 1660050553
2050
+ */
2051
+ date: number;
2052
+ }
2053
+ export interface Auctions {
2054
+ data: Auction[];
2055
+ /**
2056
+ * @format int64
2057
+ * @example 1660050553
2058
+ */
2059
+ total: number;
2060
+ }
2061
+ export interface WalletDNS {
2062
+ /**
2063
+ * @format address
2064
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
2065
+ */
2066
+ address: Address;
2067
+ account: AccountAddress;
2068
+ /** @example true */
2069
+ isWallet: boolean;
2070
+ /** @example true */
2071
+ hasMethodPubkey: boolean;
2072
+ /** @example true */
2073
+ hasMethodSeqno: boolean;
2074
+ names: string[];
2075
+ }
2076
+ export interface DomainInfo {
2077
+ name: string;
2078
+ /**
2079
+ * date of expiring. optional. not all domain in ton has expiration date
2080
+ * @format int64
2081
+ */
2082
+ expiringAt?: number;
2083
+ item?: NftItem;
2084
+ }
2085
+ export interface DnsRecord {
2086
+ wallet?: WalletDNS;
2087
+ /**
2088
+ * @format address
2089
+ * @example "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
2090
+ */
2091
+ nextResolver?: Address;
2092
+ sites: string[];
2093
+ /**
2094
+ * tonstorage bag id
2095
+ * @example "da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
2096
+ */
2097
+ storage?: string;
2098
+ }
2099
+ export interface NftCollection {
2100
+ /**
2101
+ * @format address
2102
+ * @example "0:FD595F36B4C1535BEC8461490D38EBB9AE3C38DD6ACE17CA63ABE2C6608BE159"
2103
+ */
2104
+ address: Address;
2105
+ /**
2106
+ * @format int64
2107
+ * @example 1
2108
+ */
2109
+ nextItemIndex: number;
2110
+ owner?: AccountAddress;
2111
+ /** @format cell */
2112
+ rawCollectionContent: Cell;
2113
+ /** @example {} */
2114
+ metadata?: Record<string, any>;
2115
+ previews?: ImagePreview[];
2116
+ approvedBy: NftApprovedBy;
2117
+ }
2118
+ export interface NftCollections {
2119
+ nftCollections: NftCollection[];
2120
+ }
2121
+ export interface Trace {
2122
+ transaction: Transaction;
2123
+ /** @example ["wallet","tep62_item"] */
2124
+ interfaces: string[];
2125
+ children?: Trace[];
2126
+ /** @example false */
2127
+ emulated?: boolean;
2128
+ }
2129
+ export interface MessageConsequences {
2130
+ trace: Trace;
2131
+ /** Risk specifies assets that could be lost if a message would be sent to a malicious smart contract. It makes sense to understand the risk BEFORE sending a message to the blockchain. */
2132
+ risk: Risk;
2133
+ /** An event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaningful high-level operation like a Jetton Transfer or an NFT Purchase. Actions are expected to be shown to users. It is advised not to build any logic on top of actions because actions can be changed at any time. */
2134
+ event: AccountEvent;
2135
+ }
2136
+ /** Risk specifies assets that could be lost if a message would be sent to a malicious smart contract. It makes sense to understand the risk BEFORE sending a message to the blockchain. */
2137
+ export interface Risk {
2138
+ /**
2139
+ * transfer all the remaining balance of the wallet.
2140
+ * @example true
2141
+ */
2142
+ transferAllRemainingBalance: boolean;
2143
+ /**
2144
+ * @format bigint
2145
+ * @example 500
2146
+ */
2147
+ ton: bigint;
2148
+ jettons: JettonQuantity[];
2149
+ nfts: NftItem[];
2150
+ }
2151
+ export interface JettonQuantity {
2152
+ /**
2153
+ * @format bigint
2154
+ * @example "597968399"
2155
+ */
2156
+ quantity: bigint;
2157
+ walletAddress: AccountAddress;
2158
+ jetton: JettonPreview;
2159
+ }
2160
+ export interface DecodedMessage {
2161
+ destination: AccountAddress;
2162
+ /** @example "v3R2" */
2163
+ destinationWalletVersion: string;
2164
+ extInMsgDecoded?: {
2165
+ walletV3?: {
2166
+ /**
2167
+ * @format int64
2168
+ * @example 1
2169
+ */
2170
+ subwalletId: number;
2171
+ /**
2172
+ * @format int64
2173
+ * @example 1
2174
+ */
2175
+ validUntil: number;
2176
+ /**
2177
+ * @format int64
2178
+ * @example 1
2179
+ */
2180
+ seqno: number;
2181
+ rawMessages: DecodedRawMessage[];
2182
+ };
2183
+ walletV4?: {
2184
+ /**
2185
+ * @format int64
2186
+ * @example 1
2187
+ */
2188
+ subwalletId: number;
2189
+ /**
2190
+ * @format int64
2191
+ * @example 1
2192
+ */
2193
+ validUntil: number;
2194
+ /**
2195
+ * @format int64
2196
+ * @example 1
2197
+ */
2198
+ seqno: number;
2199
+ /**
2200
+ * @format int32
2201
+ * @example 1
2202
+ */
2203
+ op: number;
2204
+ rawMessages: DecodedRawMessage[];
2205
+ };
2206
+ walletV5?: {
2207
+ /**
2208
+ * @format int64
2209
+ * @example 1
2210
+ */
2211
+ validUntil: number;
2212
+ rawMessages: DecodedRawMessage[];
2213
+ };
2214
+ walletHighloadV2?: {
2215
+ /**
2216
+ * @format int64
2217
+ * @example 1
2218
+ */
2219
+ subwalletId: number;
2220
+ /** @example "34254528475294857" */
2221
+ boundedQueryId: string;
2222
+ rawMessages: DecodedRawMessage[];
2223
+ };
2224
+ };
2225
+ }
2226
+ export interface DecodedRawMessage {
2227
+ message: {
2228
+ /** @format cell */
2229
+ boc: Cell;
2230
+ /** @example "nft_transfer" */
2231
+ decodedOpName?: string;
2232
+ /**
2233
+ * @format bigint
2234
+ * @example "0xdeadbeaf"
2235
+ */
2236
+ opCode?: bigint;
2237
+ decodedBody?: any;
2238
+ };
2239
+ /** @example 2 */
2240
+ mode: number;
2241
+ }
2242
+ export interface Event {
2243
+ /** @example "e8b0e3fee4a26bd2317ac1f9952fcdc87dc08fdb617656b5202416323337372e" */
2244
+ eventId: string;
2245
+ /**
2246
+ * @format int64
2247
+ * @example 1234567890
2248
+ */
2249
+ timestamp: number;
2250
+ actions: Action[];
2251
+ valueFlow: ValueFlow[];
2252
+ /**
2253
+ * scam
2254
+ * @example false
2255
+ */
2256
+ isScam: boolean;
2257
+ /**
2258
+ * @format bigint
2259
+ * @example 25713146000001
2260
+ */
2261
+ lt: bigint;
2262
+ /**
2263
+ * Event is not finished yet. Transactions still happening
2264
+ * @example false
2265
+ */
2266
+ inProgress: boolean;
2267
+ }
2268
+ export interface JettonMetadata {
2269
+ /**
2270
+ * @format address
2271
+ * @example "0:0BB5A9F69043EEBDDA5AD2E946EB953242BD8F603FE795D90698CEEC6BFC60A0"
2272
+ */
2273
+ address: Address;
2274
+ /** @example "Wrapped TON" */
2275
+ name: string;
2276
+ /** @example "WTON" */
2277
+ symbol: string;
2278
+ /** @example "9" */
2279
+ decimals: string;
2280
+ /**
2281
+ * this field currently returns a cached image URL (e.g., "https://cache.tonapi.io/images/jetton.jpg"). In the future, this will be replaced with the original URL from the metadata. The cached image is already available in the `preview` field of `JettonInfo` and will remain there.
2282
+ * @example "https://bitcoincash-example.github.io/website/logo.png"
2283
+ */
2284
+ image?: string;
2285
+ /** @example "Wrapped Toncoin" */
2286
+ description?: string;
2287
+ social?: string[];
2288
+ websites?: string[];
2289
+ catalogs?: string[];
2290
+ /** @example "https://claim-api.tonapi.io/jettons/TESTMINT" */
2291
+ customPayloadApiUri?: string;
2292
+ }
2293
+ export interface InscriptionBalances {
2294
+ inscriptions: InscriptionBalance[];
2295
+ }
2296
+ export interface InscriptionBalance {
2297
+ /** @example "ton20" */
2298
+ type: 'ton20' | 'gram20';
2299
+ /** @example "nano" */
2300
+ ticker: string;
2301
+ /**
2302
+ * @format bigint
2303
+ * @example "1000000000"
2304
+ */
2305
+ balance: bigint;
2306
+ /** @example 9 */
2307
+ decimals: number;
2308
+ }
2309
+ export interface Jettons {
2310
+ jettons: JettonInfo[];
2311
+ }
2312
+ export interface JettonInfo {
2313
+ /** @example true */
2314
+ mintable: boolean;
2315
+ /**
2316
+ * @format bigint
2317
+ * @example "5887105890579978"
2318
+ */
2319
+ totalSupply: bigint;
2320
+ admin?: AccountAddress;
2321
+ metadata: JettonMetadata;
2322
+ /** @example "https://cache.tonapi.io/images/jetton.jpg" */
2323
+ preview: string;
2324
+ verification: JettonVerificationType;
2325
+ /**
2326
+ * @format int32
2327
+ * @example 2000
2328
+ */
2329
+ holdersCount: number;
2330
+ }
2331
+ export interface JettonHolders {
2332
+ addresses: {
2333
+ /**
2334
+ * @format address
2335
+ * @example "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365"
2336
+ */
2337
+ address: Address;
2338
+ owner: AccountAddress;
2339
+ /**
2340
+ * balance in the smallest jetton's units
2341
+ * @format bigint
2342
+ * @example "168856200518084"
2343
+ */
2344
+ balance: bigint;
2345
+ }[];
2346
+ /**
2347
+ * total number of holders
2348
+ * @format int64
2349
+ * @example 2000
2350
+ */
2351
+ total: number;
2352
+ }
2353
+ export interface JettonTransferPayload {
2354
+ /**
2355
+ * hex-encoded BoC
2356
+ * @example "b5ee9c72410212010001b40009460395b521c9251151ae7987e03c544bd275d6cd42c2d157f840beb14d5454b96718000d012205817002020328480101fd7f6a648d4f771d7f0abc1707e4e806b19de1801f65eb8c133a4cfb0c33d847000b22012004052848010147da975b922d89192f4c9b68a640daa6764ec398c93cec025e17f0c1852a711a0009220120061122012007082848010170d9fb0423cbef6c2cf1f3811a2f640daf8c9a326b6f8816c1b993e90d88e2100006220120090a28480101f6df1d75f6b9e45f224b2cb4fc2286d927d47b468b6dbf1fedc4316290ec2ae900042201200b102201200c0f2201200d"
2357
+ */
2358
+ customPayload?: string;
2359
+ /**
2360
+ * hex-encoded BoC
2361
+ * @example "b5ee9c72410212010001b40009460395b521c9251151ae7987e03c544bd275d6cd42c2d157f840beb14d5454b96718000d012205817002020328480101fd7f6a648d4f771d7f0abc1707e4e806b19de1801f65eb8c133a4cfb0c33d847000b22012004052848010147da975b922d89192f4c9b68a640daa6764ec398c93cec025e17f0c1852a711a0009220120061122012007082848010170d9fb0423cbef6c2cf1f3811a2f640daf8c9a326b6f8816c1b993e90d88e2100006220120090a28480101f6df1d75f6b9e45f224b2cb4fc2286d927d47b468b6dbf1fedc4316290ec2ae900042201200b102201200c0f2201200d"
2362
+ */
2363
+ stateInit?: string;
2364
+ }
2365
+ export interface AccountStaking {
2366
+ pools: AccountStakingInfo[];
2367
+ }
2368
+ export interface AccountStakingInfo {
2369
+ /** @example "EQBI-wGVp_x0VFEjd7m9cEUD3tJ_bnxMSp0Tb9qz757ATEAM" */
2370
+ pool: string;
2371
+ /**
2372
+ * @format bigint
2373
+ * @example 10050000000000
2374
+ */
2375
+ amount: bigint;
2376
+ /**
2377
+ * @format bigint
2378
+ * @example 500000000000
2379
+ */
2380
+ pendingDeposit: bigint;
2381
+ /**
2382
+ * @format bigint
2383
+ * @example 500000000000
2384
+ */
2385
+ pendingWithdraw: bigint;
2386
+ /**
2387
+ * @format bigint
2388
+ * @example 500000000000
2389
+ */
2390
+ readyWithdraw: bigint;
2391
+ }
2392
+ export interface PoolInfo {
2393
+ /**
2394
+ * @format address
2395
+ * @example "0:48fb0195a7fc7454512377b9bd704503ded27f6e7c4c4a9d136fdab3ef9ec04c"
2396
+ */
2397
+ address: Address;
2398
+ /** @example "Tonkeeper pool" */
2399
+ name: string;
2400
+ /** @format bigint */
2401
+ totalAmount: bigint;
2402
+ implementation: PoolImplementationType;
2403
+ /**
2404
+ * APY in percent
2405
+ * @example 5.31
2406
+ */
2407
+ apy: number;
2408
+ /**
2409
+ * @format bigint
2410
+ * @example 5000000000
2411
+ */
2412
+ minStake: bigint;
2413
+ /**
2414
+ * current nomination cycle beginning timestamp
2415
+ * @format int64
2416
+ * @example 1678223064
2417
+ */
2418
+ cycleStart: number;
2419
+ /**
2420
+ * current nomination cycle ending timestamp
2421
+ * @format int64
2422
+ * @example 1678223064
2423
+ */
2424
+ cycleEnd: number;
2425
+ /**
2426
+ * this pool has verified source code or managed by trusted company
2427
+ * @example true
2428
+ */
2429
+ verified: boolean;
2430
+ /**
2431
+ * current number of nominators
2432
+ * @example 10
2433
+ */
2434
+ currentNominators: number;
2435
+ /**
2436
+ * maximum number of nominators
2437
+ * @example 100
2438
+ */
2439
+ maxNominators: number;
2440
+ /**
2441
+ * for liquid staking master account of jetton
2442
+ * @format address
2443
+ * @example "0:4a91d32d0289bda9813ae00ff7640e6c38fdce76e4583dd6afc463b70c7d767c"
2444
+ */
2445
+ liquidJettonMaster?: Address;
2446
+ /**
2447
+ * total stake of all nominators
2448
+ * @format bigint
2449
+ * @example 5000000000
2450
+ */
2451
+ nominatorsStake: bigint;
2452
+ /**
2453
+ * stake of validator
2454
+ * @format bigint
2455
+ * @example 5000000000
2456
+ */
2457
+ validatorStake: bigint;
2458
+ /** @format int64 */
2459
+ cycleLength?: number;
2460
+ }
2461
+ export interface PoolImplementation {
2462
+ /** @example "TON Whales" */
2463
+ name: string;
2464
+ /** @example "Oldest pool with minimal staking amount 50 TON" */
2465
+ description: string;
2466
+ /** @example "https://tonvalidators.org/" */
2467
+ url: string;
2468
+ socials: string[];
2469
+ }
2470
+ export interface StorageProvider {
2471
+ /**
2472
+ * @format address
2473
+ * @example "0:FD595F36B4C1535BEC8461490D38EBB9AE3C38DD6ACE17CA63ABE2C6608BE159"
2474
+ */
2475
+ address: Address;
2476
+ /** @example true */
2477
+ acceptNewContracts: boolean;
2478
+ /**
2479
+ * @format bigint
2480
+ * @example 50000000
2481
+ */
2482
+ ratePerMbDay: bigint;
2483
+ /**
2484
+ * @format int64
2485
+ * @example 604800
2486
+ */
2487
+ maxSpan: number;
2488
+ /**
2489
+ * @format int64
2490
+ * @example 64
2491
+ */
2492
+ minimalFileSize: number;
2493
+ /**
2494
+ * @format int64
2495
+ * @example 10485760
2496
+ */
2497
+ maximalFileSize: number;
2498
+ }
2499
+ export interface FoundAccounts {
2500
+ addresses: {
2501
+ /** @format address */
2502
+ address: Address;
2503
+ /** @example "blah_blah.ton" */
2504
+ name: string;
2505
+ /** @example "https://cache.tonapi.io/images/media.jpg" */
2506
+ preview: string;
2507
+ trust: TrustType;
2508
+ }[];
2509
+ }
2510
+ export interface DnsExpiring {
2511
+ items: {
2512
+ /**
2513
+ * @format int64
2514
+ * @example 1678275313
2515
+ */
2516
+ expiringAt: number;
2517
+ /** @example "blah_blah.ton" */
2518
+ name: string;
2519
+ dnsItem?: NftItem;
2520
+ }[];
2521
+ }
2522
+ /** @example [[1668436763,97.21323234]] */
2523
+ export type ChartPoints = [number, number];
2524
+ export interface AccountInfoByStateInit {
2525
+ /** @example "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3..." */
2526
+ publicKey: string;
2527
+ /**
2528
+ * @format address
2529
+ * @example "0:97146a46acc2654y27947f14c4a4b14273e954f78bc017790b41208b0043200b"
2530
+ */
2531
+ address: Address;
2532
+ }
2533
+ export interface Seqno {
2534
+ /** @format int32 */
2535
+ seqno: number;
2536
+ }
2537
+ export interface BlockRaw {
2538
+ /**
2539
+ * @format int32
2540
+ * @example 4294967295
2541
+ */
2542
+ workchain: number;
2543
+ /** @example "800000000000000" */
2544
+ shard: string;
2545
+ /**
2546
+ * @format int32
2547
+ * @example 30699640
2548
+ */
2549
+ seqno: number;
2550
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2551
+ rootHash: string;
2552
+ /** @example "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB" */
2553
+ fileHash: string;
2554
+ }
2555
+ export interface InitStateRaw {
2556
+ /**
2557
+ * @format int32
2558
+ * @example 4294967295
2559
+ */
2560
+ workchain: number;
2561
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2562
+ rootHash: string;
2563
+ /** @example "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB" */
2564
+ fileHash: string;
2565
+ }
2566
+ export interface EncryptedComment {
2567
+ /** @example "simple" */
2568
+ encryptionType: string;
2569
+ /** @example "A6A0BD6608672B...CE3AF8DB" */
2570
+ cipherText: string;
2571
+ }
2572
+ export interface BlockchainAccountInspect {
2573
+ /** @format cell */
2574
+ code: Cell;
2575
+ codeHash: string;
2576
+ methods: Method[];
2577
+ compiler: 'func' | 'fift' | 'tact';
2578
+ source?: Source;
2579
+ }
2580
+ export declare enum PoolImplementationType {
2581
+ Whales = "whales",
2582
+ Tf = "tf",
2583
+ LiquidTF = "liquidTF"
2584
+ }
2585
+ export interface TokenRates {
2586
+ /** @example {"TON":1.3710752873163712} */
2587
+ prices?: Record<string, number>;
2588
+ /** @example {"TON":"-1.28%"} */
2589
+ diff24h?: Record<string, string>;
2590
+ /** @example {"TON":"-2.74%"} */
2591
+ diff7d?: Record<string, string>;
2592
+ /** @example {"TON":"-0.56%"} */
2593
+ diff30d?: Record<string, string>;
2594
+ }
2595
+ export interface MarketTonRates {
2596
+ /** @example "OKX" */
2597
+ market: string;
2598
+ /** @example 5.2 */
2599
+ usdPrice: number;
2600
+ /**
2601
+ * @format int64
2602
+ * @example 1668436763
2603
+ */
2604
+ lastDateUpdate: number;
2605
+ }
2606
+ export interface ExtraCurrency {
2607
+ /**
2608
+ * @format bigint
2609
+ * @example "1000000000"
2610
+ */
2611
+ amount: bigint;
2612
+ preview: EcPreview;
2613
+ }
2614
+ export interface SourceFile {
2615
+ name: string;
2616
+ content: string;
2617
+ /** @example false */
2618
+ isEntrypoint: boolean;
2619
+ /** @example false */
2620
+ isStdLib: boolean;
2621
+ /** @example false */
2622
+ includeInCommand: boolean;
2623
+ }
2624
+ export interface Source {
2625
+ files: SourceFile[];
2626
+ }
2627
+ export interface Method {
2628
+ /** @format int64 */
2629
+ id: number;
2630
+ /** @example "get_something" */
2631
+ method: string;
2632
+ }
2633
+ export type GetOpenapiJsonData = any;
2634
+ /** @format binary */
2635
+ export type GetOpenapiYmlData = File;
2636
+ export type StatusData = ServiceStatus;
2637
+ export type GetReducedBlockchainBlocksData = ReducedBlocks;
2638
+ export type GetBlockchainBlockData = BlockchainBlock;
2639
+ export type GetBlockchainMasterchainShardsData = BlockchainBlockShards;
2640
+ export type GetBlockchainMasterchainBlocksData = BlockchainBlocks;
2641
+ export type GetBlockchainMasterchainTransactionsData = Transactions;
2642
+ export type GetBlockchainConfigFromBlockData = BlockchainConfig;
2643
+ export type GetRawBlockchainConfigFromBlockData = RawBlockchainConfig;
2644
+ export type GetBlockchainBlockTransactionsData = Transactions;
2645
+ export type GetBlockchainTransactionData = Transaction;
2646
+ export type GetBlockchainTransactionByMessageHashData = Transaction;
2647
+ export type GetBlockchainValidatorsData = Validators;
2648
+ export type GetBlockchainMasterchainHeadData = BlockchainBlock;
2649
+ export type GetBlockchainRawAccountData = BlockchainRawAccount;
2650
+ export type GetBlockchainAccountTransactionsData = Transactions;
2651
+ export type ExecGetMethodForBlockchainAccountData = MethodExecutionResult;
2652
+ export type SendBlockchainMessageData = any;
2653
+ export type GetBlockchainConfigData = BlockchainConfig;
2654
+ export type GetRawBlockchainConfigData = RawBlockchainConfig;
2655
+ export type BlockchainAccountInspectData = BlockchainAccountInspect;
2656
+ export interface AddressParseData {
2657
+ /**
2658
+ * @format address
2659
+ * @example "0:6e731f2e28b73539a7f85ac47ca104d5840b229351189977bb6151d36b5e3f5e"
2660
+ */
2661
+ rawForm: Address;
2662
+ bounceable: {
2663
+ b64: string;
2664
+ b64url: string;
2665
+ };
2666
+ nonBounceable: {
2667
+ b64: string;
2668
+ b64url: string;
2669
+ };
2670
+ givenType: string;
2671
+ testOnly: boolean;
2672
+ }
2673
+ export type GetAccountsData = Accounts;
2674
+ export type GetAccountData = Account;
2675
+ export type AccountDnsBackResolveData = DomainNames;
2676
+ export type GetAccountJettonsBalancesData = JettonsBalances;
2677
+ export type GetAccountJettonBalanceData = JettonBalance;
2678
+ export type GetAccountJettonsHistoryData = AccountEvents;
2679
+ export type GetAccountJettonHistoryByIdData = AccountEvents;
2680
+ export type GetAccountNftItemsData = NftItems;
2681
+ export type GetAccountNftHistoryData = AccountEvents;
2682
+ export type GetAccountEventsData = AccountEvents;
2683
+ export type GetAccountEventData = AccountEvent;
2684
+ export type GetAccountTracesData = TraceIDs;
2685
+ export type GetAccountSubscriptionsData = Subscriptions;
2686
+ export type ReindexAccountData = any;
2687
+ export type SearchAccountsData = FoundAccounts;
2688
+ export type GetAccountDnsExpiringData = DnsExpiring;
2689
+ export interface GetAccountPublicKeyData {
2690
+ /** @example "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3..." */
2691
+ publicKey: string;
2692
+ }
2693
+ export type GetAccountMultisigsData = Multisigs;
2694
+ export interface GetAccountDiffData {
2695
+ /**
2696
+ * @format int64
2697
+ * @example 1000000000
2698
+ */
2699
+ balanceChange: number;
2700
+ }
2701
+ export type GetAccountExtraCurrencyHistoryByIdData = AccountEvents;
2702
+ export type GetDnsInfoData = DomainInfo;
2703
+ export type DnsResolveData = DnsRecord;
2704
+ export type GetDomainBidsData = DomainBids;
2705
+ export type GetAllAuctionsData = Auctions;
2706
+ export type GetNftCollectionsData = NftCollections;
2707
+ export type GetNftCollectionData = NftCollection;
2708
+ export type GetNftCollectionItemsByAddressesData = NftCollections;
2709
+ export type GetItemsFromCollectionData = NftItems;
2710
+ export type GetNftItemsByAddressesData = NftItems;
2711
+ export type GetNftItemByAddressData = NftItem;
2712
+ export type GetNftHistoryByIdData = AccountEvents;
2713
+ export type GetTraceData = Trace;
2714
+ export type GetEventData = Event;
2715
+ export type GetAccountInscriptionsData = InscriptionBalances;
2716
+ export type GetAccountInscriptionsHistoryData = AccountEvents;
2717
+ export type GetAccountInscriptionsHistoryByTickerData = AccountEvents;
2718
+ export interface GetInscriptionOpTemplateData {
2719
+ /** @example "comment" */
2720
+ comment: string;
2721
+ /** @example "0:0000000000000" */
2722
+ destination: string;
2723
+ }
2724
+ export type GetJettonsData = Jettons;
2725
+ export type GetJettonInfoData = JettonInfo;
2726
+ export type GetJettonInfosByAddressesData = Jettons;
2727
+ export type GetJettonHoldersData = JettonHolders;
2728
+ export type GetJettonTransferPayloadData = JettonTransferPayload;
2729
+ export type GetJettonsEventsData = Event;
2730
+ export type GetExtraCurrencyInfoData = EcPreview;
2731
+ export type GetAccountNominatorsPoolsData = AccountStaking;
2732
+ export interface GetStakingPoolInfoData {
2733
+ implementation: PoolImplementation;
2734
+ pool: PoolInfo;
2735
+ }
2736
+ export interface GetStakingPoolHistoryData {
2737
+ apy: ApyHistory[];
2738
+ }
2739
+ export interface GetStakingPoolsData {
2740
+ pools: PoolInfo[];
2741
+ implementations: Record<string, PoolImplementation>;
2742
+ }
2743
+ export interface GetStorageProvidersData {
2744
+ providers: StorageProvider[];
2745
+ }
2746
+ export interface GetRatesData {
2747
+ rates: Record<string, TokenRates>;
2748
+ }
2749
+ export interface GetChartRatesData {
2750
+ points: ChartPoints[];
2751
+ }
2752
+ export interface GetMarketsRatesData {
2753
+ markets: MarketTonRates[];
2754
+ }
2755
+ export interface GetTonConnectPayloadData {
2756
+ /** @example "84jHVNLQmZsAAAAAZB0Zryi2wqVJI-KaKNXOvCijEi46YyYzkaSHyJrMPBMOkVZa" */
2757
+ payload: string;
2758
+ }
2759
+ export type GetAccountInfoByStateInitData = AccountInfoByStateInit;
2760
+ export interface TonConnectProofData {
2761
+ /** @example "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3..." */
2762
+ token: string;
2763
+ }
2764
+ export type GetAccountSeqnoData = Seqno;
2765
+ export type GaslessConfigData = GaslessConfig;
2766
+ export type GaslessEstimateData = SignRawParams;
2767
+ export type GaslessSendData = any;
2768
+ export type GetWalletsByPublicKeyData = Accounts;
2769
+ export interface GetRawMasterchainInfoData {
2770
+ last: BlockRaw;
2771
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2772
+ stateRootHash: string;
2773
+ init: InitStateRaw;
2774
+ }
2775
+ export interface GetRawMasterchainInfoExtData {
2776
+ /**
2777
+ * @format int32
2778
+ * @example 0
2779
+ */
2780
+ mode: number;
2781
+ /**
2782
+ * @format int32
2783
+ * @example 257
2784
+ */
2785
+ version: number;
2786
+ /**
2787
+ * @format int64
2788
+ * @example 7
2789
+ */
2790
+ capabilities: number;
2791
+ last: BlockRaw;
2792
+ /**
2793
+ * @format int32
2794
+ * @example 1687938199
2795
+ */
2796
+ lastUtime: number;
2797
+ /**
2798
+ * @format int32
2799
+ * @example 1687938204
2800
+ */
2801
+ now: number;
2802
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2803
+ stateRootHash: string;
2804
+ init: InitStateRaw;
2805
+ }
2806
+ export interface GetRawTimeData {
2807
+ /**
2808
+ * @format int32
2809
+ * @example 1687146728
2810
+ */
2811
+ time: number;
2812
+ }
2813
+ export interface GetRawBlockchainBlockData {
2814
+ id: BlockRaw;
2815
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2816
+ data: string;
2817
+ }
2818
+ export interface GetRawBlockchainBlockStateData {
2819
+ id: BlockRaw;
2820
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2821
+ rootHash: string;
2822
+ /** @example "A6A0BD6608672B11B79538A50B2204E748305C12AA0DED9C16CF0006CE3AF8DB" */
2823
+ fileHash: string;
2824
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2825
+ data: string;
2826
+ }
2827
+ export interface GetRawBlockchainBlockHeaderData {
2828
+ id: BlockRaw;
2829
+ /**
2830
+ * @format int32
2831
+ * @example 0
2832
+ */
2833
+ mode: number;
2834
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2835
+ headerProof: string;
2836
+ }
2837
+ export interface SendRawMessageData {
2838
+ /**
2839
+ * @format int32
2840
+ * @example 200
2841
+ */
2842
+ code: number;
2843
+ }
2844
+ export interface GetRawAccountStateData {
2845
+ id: BlockRaw;
2846
+ shardblk: BlockRaw;
2847
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2848
+ shardProof: string;
2849
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2850
+ proof: string;
2851
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2852
+ state: string;
2853
+ }
2854
+ export interface GetRawShardInfoData {
2855
+ id: BlockRaw;
2856
+ shardblk: BlockRaw;
2857
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2858
+ shardProof: string;
2859
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2860
+ shardDescr: string;
2861
+ }
2862
+ export interface GetAllRawShardsInfoData {
2863
+ id: BlockRaw;
2864
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2865
+ proof: string;
2866
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2867
+ data: string;
2868
+ }
2869
+ export interface GetRawTransactionsData {
2870
+ ids: BlockRaw[];
2871
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2872
+ transactions: string;
2873
+ }
2874
+ export interface GetRawListBlockTransactionsData {
2875
+ id: BlockRaw;
2876
+ /**
2877
+ * @format int32
2878
+ * @example 100
2879
+ */
2880
+ reqCount: number;
2881
+ /** @example true */
2882
+ incomplete: boolean;
2883
+ ids: {
2884
+ /**
2885
+ * @format int32
2886
+ * @example 0
2887
+ */
2888
+ mode: number;
2889
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2890
+ account?: string;
2891
+ /** @format bigint */
2892
+ lt?: bigint;
2893
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2894
+ hash?: string;
2895
+ }[];
2896
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2897
+ proof: string;
2898
+ }
2899
+ export interface GetRawBlockProofData {
2900
+ /** @example true */
2901
+ complete: boolean;
2902
+ from: BlockRaw;
2903
+ to: BlockRaw;
2904
+ steps: {
2905
+ lite_server_block_link_back: {
2906
+ /** @example false */
2907
+ to_key_block: boolean;
2908
+ from: BlockRaw;
2909
+ to: BlockRaw;
2910
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2911
+ dest_proof: string;
2912
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2913
+ proof: string;
2914
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2915
+ state_proof: string;
2916
+ };
2917
+ lite_server_block_link_forward: {
2918
+ /** @example false */
2919
+ to_key_block: boolean;
2920
+ from: BlockRaw;
2921
+ to: BlockRaw;
2922
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2923
+ dest_proof: string;
2924
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2925
+ config_proof: string;
2926
+ signatures: {
2927
+ /** @format int64 */
2928
+ validator_set_hash: number;
2929
+ /** @format int32 */
2930
+ catchain_seqno: number;
2931
+ signatures: {
2932
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2933
+ node_id_short: string;
2934
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2935
+ signature: string;
2936
+ }[];
2937
+ };
2938
+ };
2939
+ }[];
2940
+ }
2941
+ export interface GetRawConfigData {
2942
+ /**
2943
+ * @format int32
2944
+ * @example 0
2945
+ */
2946
+ mode: number;
2947
+ id: BlockRaw;
2948
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2949
+ stateProof: string;
2950
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2951
+ configProof: string;
2952
+ }
2953
+ export interface GetRawShardBlockProofData {
2954
+ masterchainId: BlockRaw;
2955
+ links: {
2956
+ id: BlockRaw;
2957
+ /** @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85" */
2958
+ proof: string;
2959
+ }[];
2960
+ }
2961
+ export interface GetOutMsgQueueSizesData {
2962
+ /** @format uint32 */
2963
+ extMsgQueueSizeLimit: number;
2964
+ shards: {
2965
+ id: BlockRaw;
2966
+ /** @format uint32 */
2967
+ size: number;
2968
+ }[];
2969
+ }
2970
+ export type GetMultisigAccountData = Multisig;
2971
+ export type DecodeMessageData = DecodedMessage;
2972
+ export type EmulateMessageToEventData = Event;
2973
+ export type EmulateMessageToTraceData = Trace;
2974
+ export type EmulateMessageToWalletData = MessageConsequences;
2975
+ export type EmulateMessageToAccountEventData = AccountEvent;
2976
+ export type QueryParamsType = Record<string | number, any>;
2977
+ export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
2978
+ export interface FullRequestParams extends Omit<RequestInit, 'body'> {
2979
+ /** set parameter to `true` for call `securityWorker` for this request */
2980
+ secure?: boolean;
2981
+ /** request path */
2982
+ path: string;
2983
+ /** content type of request body */
2984
+ type?: ContentType;
2985
+ /** query params */
2986
+ query?: QueryParamsType;
2987
+ /** query implode */
2988
+ queryImplode?: string[];
2989
+ /** format of response (i.e. response.json() -> format: "json") */
2990
+ format?: ResponseFormat;
2991
+ /** request body */
2992
+ body?: unknown;
2993
+ /** base url */
2994
+ baseUrl?: string;
2995
+ /** request cancellation token */
2996
+ cancelToken?: CancelToken;
2997
+ }
2998
+ export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
2999
+ export interface ApiConfig {
3000
+ baseUrl?: string;
3001
+ apiKey?: string;
3002
+ baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
3003
+ fetch?: typeof fetch;
3004
+ }
3005
+ export interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
3006
+ data: D;
3007
+ error: E;
3008
+ }
3009
+ type CancelToken = Symbol | string | number;
3010
+ export declare enum ContentType {
3011
+ Json = "application/json",
3012
+ FormData = "multipart/form-data",
3013
+ UrlEncoded = "application/x-www-form-urlencoded",
3014
+ Text = "text/plain"
3015
+ }
3016
+ import { Address, Cell, Contract, ContractProvider, OpenedContract, TupleItem } from '@ton/core';
3017
+ declare class HttpClient {
3018
+ baseUrl: string;
3019
+ private abortControllers;
3020
+ private providedFetch;
3021
+ private customFetch;
3022
+ private baseApiParams;
3023
+ constructor(apiConfig?: ApiConfig);
3024
+ protected encodeQueryParam(key: string, value: any): string;
3025
+ protected addQueryParam(query: QueryParamsType, key: string): string;
3026
+ protected addImplodeArrayQueryParam(query: QueryParamsType, key: string): string;
3027
+ protected addArrayQueryParam(query: QueryParamsType, key: string, implodeParams?: string[]): any;
3028
+ protected toQueryString(rawQuery?: QueryParamsType, implodeParams?: string[]): string;
3029
+ protected addQueryParams(rawQuery?: QueryParamsType): string;
3030
+ private contentFormatters;
3031
+ protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
3032
+ protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
3033
+ abortRequest: (cancelToken: CancelToken) => void;
3034
+ request: <T = any, E = any>({ body, secure, path, type, query, queryImplode, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<T>;
3035
+ }
3036
+ import { StateInit as TonCoreStateInit } from '@ton/core';
3037
+ /**
3038
+ * @title REST api to TON blockchain explorer
3039
+ * @version 2.0.0
3040
+ * @baseUrl https://tonapi.io
3041
+ * @contact Support <support@tonkeeper.com>
3042
+ *
3043
+ * Provide access to indexed TON blockchain
3044
+ */
3045
+ export declare class TonApiClient {
3046
+ http: HttpClient;
3047
+ constructor(apiConfig?: ApiConfig);
3048
+ provider(address: Address, init?: TonCoreStateInit | null): ContractProvider;
3049
+ open<T extends Contract>(src: T): OpenedContract<T>;
3050
+ getContractState(address: Address): Promise<Account>;
3051
+ getBalance(address: Address): Promise<bigint>;
3052
+ getTransaction(address: Address, lt: string, hash: string): Promise<TonCoreTransaction | null>;
3053
+ getTransactions(address: Address, opts: {
3054
+ limit: number;
3055
+ lt?: string;
3056
+ hash?: string;
3057
+ to_lt?: string;
3058
+ inclusive?: boolean;
3059
+ archival?: boolean;
3060
+ }): Promise<TonCoreTransaction[] | null>;
3061
+ isContractDeployed(addr: Address): Promise<boolean>;
3062
+ utilities: {
3063
+ /**
3064
+ * @description Get the openapi.json file
3065
+ *
3066
+ * @tags Utilities
3067
+ * @name GetOpenapiJson
3068
+ * @request GET:/v2/openapi.json
3069
+ */
3070
+ getOpenapiJson: (params?: RequestParams) => Promise<any>;
3071
+ /**
3072
+ * @description Get the openapi.yml file
3073
+ *
3074
+ * @tags Utilities
3075
+ * @name GetOpenapiYml
3076
+ * @request GET:/v2/openapi.yml
3077
+ */
3078
+ getOpenapiYml: (params?: RequestParams) => Promise<File>;
3079
+ /**
3080
+ * @description Status
3081
+ *
3082
+ * @tags Utilities
3083
+ * @name Status
3084
+ * @request GET:/v2/status
3085
+ */
3086
+ status: (params?: RequestParams) => Promise<ServiceStatus>;
3087
+ /**
3088
+ * @description parse address and display in all formats
3089
+ *
3090
+ * @tags Utilities
3091
+ * @name AddressParse
3092
+ * @request GET:/v2/address/{account_id}/parse
3093
+ */
3094
+ addressParse: (accountId_Address: Address, params?: RequestParams) => Promise<AddressParseData>;
3095
+ };
3096
+ blockchain: {
3097
+ /**
3098
+ * @description Get reduced blockchain blocks data
3099
+ *
3100
+ * @tags Blockchain
3101
+ * @name GetReducedBlockchainBlocks
3102
+ * @request GET:/v2/blockchain/reduced/blocks
3103
+ */
3104
+ getReducedBlockchainBlocks: (query: {
3105
+ /** @format int64 */
3106
+ from: number;
3107
+ /** @format int64 */
3108
+ to: number;
3109
+ }, params?: RequestParams) => Promise<ReducedBlocks>;
3110
+ /**
3111
+ * @description Get blockchain block data
3112
+ *
3113
+ * @tags Blockchain
3114
+ * @name GetBlockchainBlock
3115
+ * @request GET:/v2/blockchain/blocks/{block_id}
3116
+ */
3117
+ getBlockchainBlock: (blockId: string, params?: RequestParams) => Promise<BlockchainBlock>;
3118
+ /**
3119
+ * @description Get blockchain block shards
3120
+ *
3121
+ * @tags Blockchain
3122
+ * @name GetBlockchainMasterchainShards
3123
+ * @request GET:/v2/blockchain/masterchain/{masterchain_seqno}/shards
3124
+ */
3125
+ getBlockchainMasterchainShards: (masterchainSeqno: number, params?: RequestParams) => Promise<BlockchainBlockShards>;
3126
+ /**
3127
+ * @description Get all blocks in all shards and workchains between target and previous masterchain block according to shards last blocks snapshot in masterchain. We don't recommend to build your app around this method because it has problem with scalability and will work very slow in the future.
3128
+ *
3129
+ * @tags Blockchain
3130
+ * @name GetBlockchainMasterchainBlocks
3131
+ * @request GET:/v2/blockchain/masterchain/{masterchain_seqno}/blocks
3132
+ */
3133
+ getBlockchainMasterchainBlocks: (masterchainSeqno: number, params?: RequestParams) => Promise<BlockchainBlocks>;
3134
+ /**
3135
+ * @description Get all transactions in all shards and workchains between target and previous masterchain block according to shards last blocks snapshot in masterchain. We don't recommend to build your app around this method because it has problem with scalability and will work very slow in the future.
3136
+ *
3137
+ * @tags Blockchain
3138
+ * @name GetBlockchainMasterchainTransactions
3139
+ * @request GET:/v2/blockchain/masterchain/{masterchain_seqno}/transactions
3140
+ */
3141
+ getBlockchainMasterchainTransactions: (masterchainSeqno: number, params?: RequestParams) => Promise<Transactions>;
3142
+ /**
3143
+ * @description Get blockchain config from a specific block, if present.
3144
+ *
3145
+ * @tags Blockchain
3146
+ * @name GetBlockchainConfigFromBlock
3147
+ * @request GET:/v2/blockchain/masterchain/{masterchain_seqno}/config
3148
+ */
3149
+ getBlockchainConfigFromBlock: (masterchainSeqno: number, params?: RequestParams) => Promise<BlockchainConfig>;
3150
+ /**
3151
+ * @description Get raw blockchain config from a specific block, if present.
3152
+ *
3153
+ * @tags Blockchain
3154
+ * @name GetRawBlockchainConfigFromBlock
3155
+ * @request GET:/v2/blockchain/masterchain/{masterchain_seqno}/config/raw
3156
+ */
3157
+ getRawBlockchainConfigFromBlock: (masterchainSeqno: number, params?: RequestParams) => Promise<RawBlockchainConfig>;
3158
+ /**
3159
+ * @description Get transactions from block
3160
+ *
3161
+ * @tags Blockchain
3162
+ * @name GetBlockchainBlockTransactions
3163
+ * @request GET:/v2/blockchain/blocks/{block_id}/transactions
3164
+ */
3165
+ getBlockchainBlockTransactions: (blockId: string, params?: RequestParams) => Promise<Transactions>;
3166
+ /**
3167
+ * @description Get transaction data
3168
+ *
3169
+ * @tags Blockchain
3170
+ * @name GetBlockchainTransaction
3171
+ * @request GET:/v2/blockchain/transactions/{transaction_id}
3172
+ */
3173
+ getBlockchainTransaction: (transactionId: string, params?: RequestParams) => Promise<Transaction>;
3174
+ /**
3175
+ * @description Get transaction data by message hash
3176
+ *
3177
+ * @tags Blockchain
3178
+ * @name GetBlockchainTransactionByMessageHash
3179
+ * @request GET:/v2/blockchain/messages/{msg_id}/transaction
3180
+ */
3181
+ getBlockchainTransactionByMessageHash: (msgId: string, params?: RequestParams) => Promise<Transaction>;
3182
+ /**
3183
+ * @description Get blockchain validators
3184
+ *
3185
+ * @tags Blockchain
3186
+ * @name GetBlockchainValidators
3187
+ * @request GET:/v2/blockchain/validators
3188
+ */
3189
+ getBlockchainValidators: (params?: RequestParams) => Promise<Validators>;
3190
+ /**
3191
+ * @description Get last known masterchain block
3192
+ *
3193
+ * @tags Blockchain
3194
+ * @name GetBlockchainMasterchainHead
3195
+ * @request GET:/v2/blockchain/masterchain-head
3196
+ */
3197
+ getBlockchainMasterchainHead: (params?: RequestParams) => Promise<BlockchainBlock>;
3198
+ /**
3199
+ * @description Get low-level information about an account taken directly from the blockchain.
3200
+ *
3201
+ * @tags Blockchain
3202
+ * @name GetBlockchainRawAccount
3203
+ * @request GET:/v2/blockchain/accounts/{account_id}
3204
+ */
3205
+ getBlockchainRawAccount: (accountId_Address: Address, params?: RequestParams) => Promise<BlockchainRawAccount>;
3206
+ /**
3207
+ * @description Get account transactions
3208
+ *
3209
+ * @tags Blockchain
3210
+ * @name GetBlockchainAccountTransactions
3211
+ * @request GET:/v2/blockchain/accounts/{account_id}/transactions
3212
+ */
3213
+ getBlockchainAccountTransactions: (accountId_Address: Address, query?: {
3214
+ /**
3215
+ * omit this parameter to get last transactions
3216
+ * @format bigint
3217
+ * @example 39787624000003
3218
+ */
3219
+ after_lt?: bigint;
3220
+ /**
3221
+ * omit this parameter to get last transactions
3222
+ * @format bigint
3223
+ * @example 39787624000003
3224
+ */
3225
+ before_lt?: bigint;
3226
+ /**
3227
+ * @format int32
3228
+ * @min 1
3229
+ * @max 1000
3230
+ * @default 100
3231
+ * @example 100
3232
+ */
3233
+ limit?: number;
3234
+ /**
3235
+ * used to sort the result-set in ascending or descending order by lt.
3236
+ * @default "desc"
3237
+ */
3238
+ sort_order?: "desc" | "asc";
3239
+ }, params?: RequestParams) => Promise<Transactions>;
3240
+ /**
3241
+ * @description Execute get method for account
3242
+ *
3243
+ * @tags Blockchain
3244
+ * @name ExecGetMethodForBlockchainAccount
3245
+ * @request GET:/v2/blockchain/accounts/{account_id}/methods/{method_name}
3246
+ */
3247
+ execGetMethodForBlockchainAccount: (accountId_Address: Address, methodName: string, query?: {
3248
+ /**
3249
+ * Supported values:
3250
+ * "NaN" for NaN type,
3251
+ * "Null" for Null type,
3252
+ * 10-base digits for tiny int type (Example: 100500),
3253
+ * 0x-prefixed hex digits for int257 (Example: 0xfa01d78381ae32),
3254
+ * all forms of addresses for slice type (Example: 0:6e731f2e28b73539a7f85ac47ca104d5840b229351189977bb6151d36b5e3f5e),
3255
+ * single-root base64-encoded BOC for cell (Example: "te6ccgEBAQEAAgAAAA=="),
3256
+ * single-root hex-encoded BOC for slice (Example: b5ee9c72010101010002000000)
3257
+ * @example ["0:9a33970f617bcd71acf2cd28357c067aa31859c02820d8f01d74c88063a8f4d8"]
3258
+ */
3259
+ args?: string[];
3260
+ /**
3261
+ * A temporary fix to switch to a scheme with direct ordering of arguments.
3262
+ * If equal to false, then the method takes arguments in direct order,
3263
+ * e.g. for get_nft_content(int index, cell individual_content) we pass a list of arguments [index, individual_content].
3264
+ * If equal to true, then the method takes arguments in reverse order, e.g. [individual_content, index].
3265
+ * @default true
3266
+ */
3267
+ fix_order?: boolean;
3268
+ }, params?: RequestParams) => Promise<MethodExecutionResult>;
3269
+ /**
3270
+ * @description Send message to blockchain
3271
+ *
3272
+ * @tags Blockchain
3273
+ * @name SendBlockchainMessage
3274
+ * @request POST:/v2/blockchain/message
3275
+ */
3276
+ sendBlockchainMessage: (data: {
3277
+ /** @format cell */
3278
+ boc?: Cell;
3279
+ /** @maxItems 5 */
3280
+ batch?: Cell[];
3281
+ meta?: Record<string, string>;
3282
+ }, params?: RequestParams) => Promise<any>;
3283
+ /**
3284
+ * @description Get blockchain config
3285
+ *
3286
+ * @tags Blockchain
3287
+ * @name GetBlockchainConfig
3288
+ * @request GET:/v2/blockchain/config
3289
+ */
3290
+ getBlockchainConfig: (params?: RequestParams) => Promise<BlockchainConfig>;
3291
+ /**
3292
+ * @description Get raw blockchain config
3293
+ *
3294
+ * @tags Blockchain
3295
+ * @name GetRawBlockchainConfig
3296
+ * @request GET:/v2/blockchain/config/raw
3297
+ */
3298
+ getRawBlockchainConfig: (params?: RequestParams) => Promise<RawBlockchainConfig>;
3299
+ /**
3300
+ * @description Blockchain account inspect
3301
+ *
3302
+ * @tags Blockchain
3303
+ * @name BlockchainAccountInspect
3304
+ * @request GET:/v2/blockchain/accounts/{account_id}/inspect
3305
+ */
3306
+ blockchainAccountInspect: (accountId_Address: Address, params?: RequestParams) => Promise<BlockchainAccountInspect>;
3307
+ /**
3308
+ * @description Status
3309
+ *
3310
+ * @tags Utilities
3311
+ * @name Status
3312
+ * @request GET:/v2/status
3313
+ * @deprecated
3314
+ */
3315
+ status: (requestParams?: RequestParams) => Promise<ServiceStatus>;
3316
+ };
3317
+ accounts: {
3318
+ /**
3319
+ * @description Get human-friendly information about several accounts without low-level details.
3320
+ *
3321
+ * @tags Accounts
3322
+ * @name GetAccounts
3323
+ * @request POST:/v2/accounts/_bulk
3324
+ */
3325
+ getAccounts: (data: {
3326
+ accountIds: Address[];
3327
+ }, query?: {
3328
+ /** @example "usd" */
3329
+ currency?: string;
3330
+ }, params?: RequestParams) => Promise<Accounts>;
3331
+ /**
3332
+ * @description Get human-friendly information about an account without low-level details.
3333
+ *
3334
+ * @tags Accounts
3335
+ * @name GetAccount
3336
+ * @request GET:/v2/accounts/{account_id}
3337
+ */
3338
+ getAccount: (accountId_Address: Address, params?: RequestParams) => Promise<Account>;
3339
+ /**
3340
+ * @description Get account's domains
3341
+ *
3342
+ * @tags Accounts
3343
+ * @name AccountDnsBackResolve
3344
+ * @request GET:/v2/accounts/{account_id}/dns/backresolve
3345
+ */
3346
+ accountDnsBackResolve: (accountId_Address: Address, params?: RequestParams) => Promise<DomainNames>;
3347
+ /**
3348
+ * @description Get all Jettons balances by owner address
3349
+ *
3350
+ * @tags Accounts
3351
+ * @name GetAccountJettonsBalances
3352
+ * @request GET:/v2/accounts/{account_id}/jettons
3353
+ */
3354
+ getAccountJettonsBalances: (accountId_Address: Address, query?: {
3355
+ /**
3356
+ * accept ton and all possible fiat currencies, separated by commas
3357
+ * @example ["ton","usd","rub"]
3358
+ */
3359
+ currencies?: string[];
3360
+ /**
3361
+ * comma separated list supported extensions
3362
+ * @example ["custom_payload"]
3363
+ */
3364
+ supported_extensions?: string[];
3365
+ }, params?: RequestParams) => Promise<JettonsBalances>;
3366
+ /**
3367
+ * @description Get Jetton balance by owner address
3368
+ *
3369
+ * @tags Accounts
3370
+ * @name GetAccountJettonBalance
3371
+ * @request GET:/v2/accounts/{account_id}/jettons/{jetton_id}
3372
+ */
3373
+ getAccountJettonBalance: (accountId_Address: Address, jettonId_Address: Address, query?: {
3374
+ /**
3375
+ * accept ton and all possible fiat currencies, separated by commas
3376
+ * @example ["ton","usd","rub"]
3377
+ */
3378
+ currencies?: string[];
3379
+ /**
3380
+ * comma separated list supported extensions
3381
+ * @example ["custom_payload"]
3382
+ */
3383
+ supported_extensions?: string[];
3384
+ }, params?: RequestParams) => Promise<JettonBalance>;
3385
+ /**
3386
+ * @description Get the transfer jettons history for account
3387
+ *
3388
+ * @tags Accounts
3389
+ * @name GetAccountJettonsHistory
3390
+ * @request GET:/v2/accounts/{account_id}/jettons/history
3391
+ */
3392
+ getAccountJettonsHistory: (accountId_Address: Address, query: {
3393
+ /**
3394
+ * omit this parameter to get last events
3395
+ * @format bigint
3396
+ * @example 25758317000002
3397
+ */
3398
+ before_lt?: bigint;
3399
+ /**
3400
+ * @min 1
3401
+ * @max 1000
3402
+ * @example 100
3403
+ */
3404
+ limit: number;
3405
+ /**
3406
+ * @format int64
3407
+ * @max 2114380800
3408
+ * @example 1668436763
3409
+ */
3410
+ start_date?: number;
3411
+ /**
3412
+ * @format int64
3413
+ * @max 2114380800
3414
+ * @example 1668436763
3415
+ */
3416
+ end_date?: number;
3417
+ }, params?: RequestParams) => Promise<AccountEvents>;
3418
+ /**
3419
+ * @description Get the transfer jetton history for account and jetton
3420
+ *
3421
+ * @tags Accounts
3422
+ * @name GetAccountJettonHistoryById
3423
+ * @request GET:/v2/accounts/{account_id}/jettons/{jetton_id}/history
3424
+ */
3425
+ getAccountJettonHistoryById: (accountId_Address: Address, jettonId_Address: Address, query: {
3426
+ /**
3427
+ * omit this parameter to get last events
3428
+ * @format bigint
3429
+ * @example 25758317000002
3430
+ */
3431
+ before_lt?: bigint;
3432
+ /**
3433
+ * @min 1
3434
+ * @max 1000
3435
+ * @example 100
3436
+ */
3437
+ limit: number;
3438
+ /**
3439
+ * @format int64
3440
+ * @max 2114380800
3441
+ * @example 1668436763
3442
+ */
3443
+ start_date?: number;
3444
+ /**
3445
+ * @format int64
3446
+ * @max 2114380800
3447
+ * @example 1668436763
3448
+ */
3449
+ end_date?: number;
3450
+ }, params?: RequestParams) => Promise<AccountEvents>;
3451
+ /**
3452
+ * @description Get all NFT items by owner address
3453
+ *
3454
+ * @tags Accounts
3455
+ * @name GetAccountNftItems
3456
+ * @request GET:/v2/accounts/{account_id}/nfts
3457
+ */
3458
+ getAccountNftItems: (accountId_Address: Address, query?: {
3459
+ /**
3460
+ * nft collection
3461
+ * @format address
3462
+ * @example "0:06d811f426598591b32b2c49f29f66c821368e4acb1de16762b04e0174532465"
3463
+ */
3464
+ collection?: Address;
3465
+ /**
3466
+ * @min 1
3467
+ * @max 1000
3468
+ * @default 1000
3469
+ */
3470
+ limit?: number;
3471
+ /**
3472
+ * @min 0
3473
+ * @default 0
3474
+ */
3475
+ offset?: number;
3476
+ /**
3477
+ * Selling nft items in ton implemented usually via transfer items to special selling account. This option enables including items which owned not directly.
3478
+ * @default false
3479
+ */
3480
+ indirect_ownership?: boolean;
3481
+ }, params?: RequestParams) => Promise<NftItems>;
3482
+ /**
3483
+ * @description Get events for an account. Each event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaningful high-level operation like a Jetton Transfer or an NFT Purchase. Actions are expected to be shown to users. It is advised not to build any logic on top of actions because actions can be changed at any time.
3484
+ *
3485
+ * @tags Accounts
3486
+ * @name GetAccountEvents
3487
+ * @request GET:/v2/accounts/{account_id}/events
3488
+ */
3489
+ getAccountEvents: (accountId_Address: Address, query: {
3490
+ /**
3491
+ * Show only events that are initiated by this account
3492
+ * @default false
3493
+ */
3494
+ initiator?: boolean;
3495
+ /**
3496
+ * filter actions where requested account is not real subject (for example sender or receiver jettons)
3497
+ * @default false
3498
+ */
3499
+ subject_only?: boolean;
3500
+ /**
3501
+ * omit this parameter to get last events
3502
+ * @format bigint
3503
+ * @example 25758317000002
3504
+ */
3505
+ before_lt?: bigint;
3506
+ /**
3507
+ * @min 1
3508
+ * @max 100
3509
+ * @example 20
3510
+ */
3511
+ limit: number;
3512
+ /**
3513
+ * @format int64
3514
+ * @max 2114380800
3515
+ * @example 1668436763
3516
+ */
3517
+ start_date?: number;
3518
+ /**
3519
+ * @format int64
3520
+ * @max 2114380800
3521
+ * @example 1668436763
3522
+ */
3523
+ end_date?: number;
3524
+ }, params?: RequestParams) => Promise<AccountEvents>;
3525
+ /**
3526
+ * @description Get event for an account by event_id
3527
+ *
3528
+ * @tags Accounts
3529
+ * @name GetAccountEvent
3530
+ * @request GET:/v2/accounts/{account_id}/events/{event_id}
3531
+ */
3532
+ getAccountEvent: (accountId_Address: Address, eventId: string, query?: {
3533
+ /**
3534
+ * filter actions where requested account is not real subject (for example sender or receiver jettons)
3535
+ * @default false
3536
+ */
3537
+ subject_only?: boolean;
3538
+ }, params?: RequestParams) => Promise<AccountEvent>;
3539
+ /**
3540
+ * @description Get traces for account
3541
+ *
3542
+ * @tags Accounts
3543
+ * @name GetAccountTraces
3544
+ * @request GET:/v2/accounts/{account_id}/traces
3545
+ */
3546
+ getAccountTraces: (accountId_Address: Address, query?: {
3547
+ /**
3548
+ * omit this parameter to get last events
3549
+ * @format bigint
3550
+ * @example 25758317000002
3551
+ */
3552
+ before_lt?: bigint;
3553
+ /**
3554
+ * @min 1
3555
+ * @max 1000
3556
+ * @default 100
3557
+ * @example 100
3558
+ */
3559
+ limit?: number;
3560
+ }, params?: RequestParams) => Promise<TraceIDs>;
3561
+ /**
3562
+ * @description Get all subscriptions by wallet address
3563
+ *
3564
+ * @tags Accounts
3565
+ * @name GetAccountSubscriptions
3566
+ * @request GET:/v2/accounts/{account_id}/subscriptions
3567
+ */
3568
+ getAccountSubscriptions: (accountId_Address: Address, params?: RequestParams) => Promise<Subscriptions>;
3569
+ /**
3570
+ * @description Update internal cache for a particular account
3571
+ *
3572
+ * @tags Accounts
3573
+ * @name ReindexAccount
3574
+ * @request POST:/v2/accounts/{account_id}/reindex
3575
+ */
3576
+ reindexAccount: (accountId_Address: Address, params?: RequestParams) => Promise<any>;
3577
+ /**
3578
+ * @description Search by account domain name
3579
+ *
3580
+ * @tags Accounts
3581
+ * @name SearchAccounts
3582
+ * @request GET:/v2/accounts/search
3583
+ */
3584
+ searchAccounts: (query: {
3585
+ /**
3586
+ * @minLength 3
3587
+ * @maxLength 15
3588
+ */
3589
+ name: string;
3590
+ }, params?: RequestParams) => Promise<FoundAccounts>;
3591
+ /**
3592
+ * @description Get expiring account .ton dns
3593
+ *
3594
+ * @tags Accounts
3595
+ * @name GetAccountDnsExpiring
3596
+ * @request GET:/v2/accounts/{account_id}/dns/expiring
3597
+ */
3598
+ getAccountDnsExpiring: (accountId_Address: Address, query?: {
3599
+ /**
3600
+ * number of days before expiration
3601
+ * @min 1
3602
+ * @max 3660
3603
+ */
3604
+ period?: number;
3605
+ }, params?: RequestParams) => Promise<DnsExpiring>;
3606
+ /**
3607
+ * @description Get public key by account id
3608
+ *
3609
+ * @tags Accounts
3610
+ * @name GetAccountPublicKey
3611
+ * @request GET:/v2/accounts/{account_id}/publickey
3612
+ */
3613
+ getAccountPublicKey: (accountId_Address: Address, params?: RequestParams) => Promise<GetAccountPublicKeyData>;
3614
+ /**
3615
+ * @description Get account's multisigs
3616
+ *
3617
+ * @tags Accounts
3618
+ * @name GetAccountMultisigs
3619
+ * @request GET:/v2/accounts/{account_id}/multisigs
3620
+ */
3621
+ getAccountMultisigs: (accountId_Address: Address, params?: RequestParams) => Promise<Multisigs>;
3622
+ /**
3623
+ * @description Get account's balance change
3624
+ *
3625
+ * @tags Accounts
3626
+ * @name GetAccountDiff
3627
+ * @request GET:/v2/accounts/{account_id}/diff
3628
+ */
3629
+ getAccountDiff: (accountId_Address: Address, query: {
3630
+ /**
3631
+ * @format int64
3632
+ * @max 2114380800
3633
+ * @example 1668436763
3634
+ */
3635
+ start_date: number;
3636
+ /**
3637
+ * @format int64
3638
+ * @max 2114380800
3639
+ * @example 1668436763
3640
+ */
3641
+ end_date: number;
3642
+ }, params?: RequestParams) => Promise<GetAccountDiffData>;
3643
+ /**
3644
+ * @description Get the transfer history of extra currencies for an account.
3645
+ *
3646
+ * @tags Accounts
3647
+ * @name GetAccountExtraCurrencyHistoryById
3648
+ * @request GET:/v2/accounts/{account_id}/extra-currency/{id}/history
3649
+ */
3650
+ getAccountExtraCurrencyHistoryById: (accountId_Address: Address, id: number, query: {
3651
+ /**
3652
+ * omit this parameter to get last events
3653
+ * @format bigint
3654
+ * @example 25758317000002
3655
+ */
3656
+ before_lt?: bigint;
3657
+ /**
3658
+ * @min 1
3659
+ * @max 1000
3660
+ * @example 100
3661
+ */
3662
+ limit: number;
3663
+ /**
3664
+ * @format int64
3665
+ * @max 2114380800
3666
+ * @example 1668436763
3667
+ */
3668
+ start_date?: number;
3669
+ /**
3670
+ * @format int64
3671
+ * @max 2114380800
3672
+ * @example 1668436763
3673
+ */
3674
+ end_date?: number;
3675
+ }, params?: RequestParams) => Promise<AccountEvents>;
3676
+ /**
3677
+ * @description parse address and display in all formats
3678
+ *
3679
+ * @tags Utilities
3680
+ * @name AddressParse
3681
+ * @request GET:/v2/address/{account_id}/parse
3682
+ * @deprecated
3683
+ */
3684
+ addressParse: (accountId_Address: Address, requestParams?: RequestParams) => Promise<AddressParseData>;
3685
+ };
3686
+ nft: {
3687
+ /**
3688
+ * @description Get the transfer nft history
3689
+ *
3690
+ * @tags NFT
3691
+ * @name GetAccountNftHistory
3692
+ * @request GET:/v2/accounts/{account_id}/nfts/history
3693
+ */
3694
+ getAccountNftHistory: (accountId_Address: Address, query: {
3695
+ /**
3696
+ * omit this parameter to get last events
3697
+ * @format bigint
3698
+ * @example 25758317000002
3699
+ */
3700
+ before_lt?: bigint;
3701
+ /**
3702
+ * @min 1
3703
+ * @max 1000
3704
+ * @example 100
3705
+ */
3706
+ limit: number;
3707
+ /**
3708
+ * @format int64
3709
+ * @max 2114380800
3710
+ * @example 1668436763
3711
+ */
3712
+ start_date?: number;
3713
+ /**
3714
+ * @format int64
3715
+ * @max 2114380800
3716
+ * @example 1668436763
3717
+ */
3718
+ end_date?: number;
3719
+ }, params?: RequestParams) => Promise<AccountEvents>;
3720
+ /**
3721
+ * @description Get NFT collections
3722
+ *
3723
+ * @tags NFT
3724
+ * @name GetNftCollections
3725
+ * @request GET:/v2/nfts/collections
3726
+ */
3727
+ getNftCollections: (query?: {
3728
+ /**
3729
+ * @format int32
3730
+ * @min 1
3731
+ * @max 1000
3732
+ * @default 100
3733
+ * @example 15
3734
+ */
3735
+ limit?: number;
3736
+ /**
3737
+ * @format int32
3738
+ * @min 0
3739
+ * @default 0
3740
+ * @example 10
3741
+ */
3742
+ offset?: number;
3743
+ }, params?: RequestParams) => Promise<NftCollections>;
3744
+ /**
3745
+ * @description Get NFT collection by collection address
3746
+ *
3747
+ * @tags NFT
3748
+ * @name GetNftCollection
3749
+ * @request GET:/v2/nfts/collections/{account_id}
3750
+ */
3751
+ getNftCollection: (accountId_Address: Address, params?: RequestParams) => Promise<NftCollection>;
3752
+ /**
3753
+ * @description Get NFT collection items by their addresses
3754
+ *
3755
+ * @tags NFT
3756
+ * @name GetNftCollectionItemsByAddresses
3757
+ * @request POST:/v2/nfts/collections/_bulk
3758
+ */
3759
+ getNftCollectionItemsByAddresses: (data: {
3760
+ accountIds: Address[];
3761
+ }, params?: RequestParams) => Promise<NftCollections>;
3762
+ /**
3763
+ * @description Get NFT items from collection by collection address
3764
+ *
3765
+ * @tags NFT
3766
+ * @name GetItemsFromCollection
3767
+ * @request GET:/v2/nfts/collections/{account_id}/items
3768
+ */
3769
+ getItemsFromCollection: (accountId_Address: Address, query?: {
3770
+ /**
3771
+ * @min 1
3772
+ * @max 1000
3773
+ * @default 1000
3774
+ */
3775
+ limit?: number;
3776
+ /**
3777
+ * @min 0
3778
+ * @default 0
3779
+ */
3780
+ offset?: number;
3781
+ }, params?: RequestParams) => Promise<NftItems>;
3782
+ /**
3783
+ * @description Get NFT items by their addresses
3784
+ *
3785
+ * @tags NFT
3786
+ * @name GetNftItemsByAddresses
3787
+ * @request POST:/v2/nfts/_bulk
3788
+ */
3789
+ getNftItemsByAddresses: (data: {
3790
+ accountIds: Address[];
3791
+ }, params?: RequestParams) => Promise<NftItems>;
3792
+ /**
3793
+ * @description Get NFT item by its address
3794
+ *
3795
+ * @tags NFT
3796
+ * @name GetNftItemByAddress
3797
+ * @request GET:/v2/nfts/{account_id}
3798
+ */
3799
+ getNftItemByAddress: (accountId_Address: Address, params?: RequestParams) => Promise<NftItem>;
3800
+ /**
3801
+ * @description Get the transfer nfts history for account
3802
+ *
3803
+ * @tags NFT
3804
+ * @name GetNftHistoryById
3805
+ * @request GET:/v2/nfts/{account_id}/history
3806
+ */
3807
+ getNftHistoryById: (accountId_Address: Address, query: {
3808
+ /**
3809
+ * omit this parameter to get last events
3810
+ * @format bigint
3811
+ * @example 25758317000002
3812
+ */
3813
+ before_lt?: bigint;
3814
+ /**
3815
+ * @min 1
3816
+ * @max 1000
3817
+ * @example 100
3818
+ */
3819
+ limit: number;
3820
+ /**
3821
+ * @format int64
3822
+ * @max 2114380800
3823
+ * @example 1668436763
3824
+ */
3825
+ start_date?: number;
3826
+ /**
3827
+ * @format int64
3828
+ * @max 2114380800
3829
+ * @example 1668436763
3830
+ */
3831
+ end_date?: number;
3832
+ }, params?: RequestParams) => Promise<AccountEvents>;
3833
+ };
3834
+ dns: {
3835
+ /**
3836
+ * @description Get full information about domain name
3837
+ *
3838
+ * @tags DNS
3839
+ * @name GetDnsInfo
3840
+ * @request GET:/v2/dns/{domain_name}
3841
+ */
3842
+ getDnsInfo: (domainName: string, params?: RequestParams) => Promise<DomainInfo>;
3843
+ /**
3844
+ * @description DNS resolve for domain name
3845
+ *
3846
+ * @tags DNS
3847
+ * @name DnsResolve
3848
+ * @request GET:/v2/dns/{domain_name}/resolve
3849
+ */
3850
+ dnsResolve: (domainName: string, params?: RequestParams) => Promise<DnsRecord>;
3851
+ /**
3852
+ * @description Get domain bids
3853
+ *
3854
+ * @tags DNS
3855
+ * @name GetDomainBids
3856
+ * @request GET:/v2/dns/{domain_name}/bids
3857
+ */
3858
+ getDomainBids: (domainName: string, params?: RequestParams) => Promise<DomainBids>;
3859
+ /**
3860
+ * @description Get all auctions
3861
+ *
3862
+ * @tags DNS
3863
+ * @name GetAllAuctions
3864
+ * @request GET:/v2/dns/auctions
3865
+ */
3866
+ getAllAuctions: (query?: {
3867
+ /**
3868
+ * domain filter for current auctions "ton" or "t.me"
3869
+ * @example "ton"
3870
+ */
3871
+ tld?: string;
3872
+ }, params?: RequestParams) => Promise<Auctions>;
3873
+ };
3874
+ traces: {
3875
+ /**
3876
+ * @description Get the trace by trace ID or hash of any transaction in trace
3877
+ *
3878
+ * @tags Traces
3879
+ * @name GetTrace
3880
+ * @request GET:/v2/traces/{trace_id}
3881
+ */
3882
+ getTrace: (traceId: string, params?: RequestParams) => Promise<Trace>;
3883
+ };
3884
+ events: {
3885
+ /**
3886
+ * @description Get an event either by event ID or a hash of any transaction in a trace. An event is built on top of a trace which is a series of transactions caused by one inbound message. TonAPI looks for known patterns inside the trace and splits the trace into actions, where a single action represents a meaningful high-level operation like a Jetton Transfer or an NFT Purchase. Actions are expected to be shown to users. It is advised not to build any logic on top of actions because actions can be changed at any time.
3887
+ *
3888
+ * @tags Events
3889
+ * @name GetEvent
3890
+ * @request GET:/v2/events/{event_id}
3891
+ */
3892
+ getEvent: (eventId: string, params?: RequestParams) => Promise<Event>;
3893
+ };
3894
+ inscriptions: {
3895
+ /**
3896
+ * @description Get all inscriptions by owner address. It's experimental API and can be dropped in the future.
3897
+ *
3898
+ * @tags Inscriptions
3899
+ * @name GetAccountInscriptions
3900
+ * @request GET:/v2/experimental/accounts/{account_id}/inscriptions
3901
+ */
3902
+ getAccountInscriptions: (accountId_Address: Address, query?: {
3903
+ /**
3904
+ * @min 1
3905
+ * @max 1000
3906
+ * @default 1000
3907
+ */
3908
+ limit?: number;
3909
+ /**
3910
+ * @min 0
3911
+ * @default 0
3912
+ */
3913
+ offset?: number;
3914
+ }, params?: RequestParams) => Promise<InscriptionBalances>;
3915
+ /**
3916
+ * @description Get the transfer inscriptions history for account. It's experimental API and can be dropped in the future.
3917
+ *
3918
+ * @tags Inscriptions
3919
+ * @name GetAccountInscriptionsHistory
3920
+ * @request GET:/v2/experimental/accounts/{account_id}/inscriptions/history
3921
+ */
3922
+ getAccountInscriptionsHistory: (accountId_Address: Address, query?: {
3923
+ /**
3924
+ * omit this parameter to get last events
3925
+ * @format bigint
3926
+ * @example 25758317000002
3927
+ */
3928
+ before_lt?: bigint;
3929
+ /**
3930
+ * @min 1
3931
+ * @max 1000
3932
+ * @default 100
3933
+ * @example 100
3934
+ */
3935
+ limit?: number;
3936
+ }, params?: RequestParams) => Promise<AccountEvents>;
3937
+ /**
3938
+ * @description Get the transfer inscriptions history for account. It's experimental API and can be dropped in the future.
3939
+ *
3940
+ * @tags Inscriptions
3941
+ * @name GetAccountInscriptionsHistoryByTicker
3942
+ * @request GET:/v2/experimental/accounts/{account_id}/inscriptions/{ticker}/history
3943
+ */
3944
+ getAccountInscriptionsHistoryByTicker: (accountId_Address: Address, ticker: string, query?: {
3945
+ /**
3946
+ * omit this parameter to get last events
3947
+ * @format bigint
3948
+ * @example 25758317000002
3949
+ */
3950
+ before_lt?: bigint;
3951
+ /**
3952
+ * @min 1
3953
+ * @max 1000
3954
+ * @default 100
3955
+ * @example 100
3956
+ */
3957
+ limit?: number;
3958
+ }, params?: RequestParams) => Promise<AccountEvents>;
3959
+ /**
3960
+ * @description return comment for making operation with inscription. please don't use it if you don't know what you are doing
3961
+ *
3962
+ * @tags Inscriptions
3963
+ * @name GetInscriptionOpTemplate
3964
+ * @request GET:/v2/experimental/inscriptions/op-template
3965
+ */
3966
+ getInscriptionOpTemplate: (query: {
3967
+ /** @example "ton20" */
3968
+ type: "ton20" | "gram20";
3969
+ destination?: string;
3970
+ comment?: string;
3971
+ /** @example "transfer" */
3972
+ operation: "transfer";
3973
+ /**
3974
+ * @format bigint
3975
+ * @example "1000000000"
3976
+ */
3977
+ amount: bigint;
3978
+ /** @example "nano" */
3979
+ ticker: string;
3980
+ /** @example "UQAs87W4yJHlF8mt29ocA4agnMrLsOP69jC1HPyBUjJay7Mg" */
3981
+ who: string;
3982
+ }, params?: RequestParams) => Promise<GetInscriptionOpTemplateData>;
3983
+ };
3984
+ jettons: {
3985
+ /**
3986
+ * @description Get a list of all indexed jetton masters in the blockchain.
3987
+ *
3988
+ * @tags Jettons
3989
+ * @name GetJettons
3990
+ * @request GET:/v2/jettons
3991
+ */
3992
+ getJettons: (query?: {
3993
+ /**
3994
+ * @format int32
3995
+ * @min 1
3996
+ * @max 1000
3997
+ * @default 100
3998
+ * @example 15
3999
+ */
4000
+ limit?: number;
4001
+ /**
4002
+ * @format int32
4003
+ * @min 0
4004
+ * @default 0
4005
+ * @example 10
4006
+ */
4007
+ offset?: number;
4008
+ }, params?: RequestParams) => Promise<Jettons>;
4009
+ /**
4010
+ * @description Get jetton metadata by jetton master address
4011
+ *
4012
+ * @tags Jettons
4013
+ * @name GetJettonInfo
4014
+ * @request GET:/v2/jettons/{account_id}
4015
+ */
4016
+ getJettonInfo: (accountId_Address: Address, params?: RequestParams) => Promise<JettonInfo>;
4017
+ /**
4018
+ * @description Get jetton metadata items by jetton master addresses
4019
+ *
4020
+ * @tags Jettons
4021
+ * @name GetJettonInfosByAddresses
4022
+ * @request POST:/v2/jettons/_bulk
4023
+ */
4024
+ getJettonInfosByAddresses: (data: {
4025
+ accountIds: Address[];
4026
+ }, params?: RequestParams) => Promise<Jettons>;
4027
+ /**
4028
+ * @description Get jetton's holders
4029
+ *
4030
+ * @tags Jettons
4031
+ * @name GetJettonHolders
4032
+ * @request GET:/v2/jettons/{account_id}/holders
4033
+ */
4034
+ getJettonHolders: (accountId_Address: Address, query?: {
4035
+ /**
4036
+ * @min 1
4037
+ * @max 1000
4038
+ * @default 1000
4039
+ */
4040
+ limit?: number;
4041
+ /**
4042
+ * @min 0
4043
+ * @default 0
4044
+ */
4045
+ offset?: number;
4046
+ }, params?: RequestParams) => Promise<JettonHolders>;
4047
+ /**
4048
+ * @description Get jetton's custom payload and state init required for transfer
4049
+ *
4050
+ * @tags Jettons
4051
+ * @name GetJettonTransferPayload
4052
+ * @request GET:/v2/jettons/{jetton_id}/transfer/{account_id}/payload
4053
+ */
4054
+ getJettonTransferPayload: (accountId_Address: Address, jettonId_Address: Address, params?: RequestParams) => Promise<JettonTransferPayload>;
4055
+ /**
4056
+ * @description Get only jetton transfers in the event
4057
+ *
4058
+ * @tags Jettons
4059
+ * @name GetJettonsEvents
4060
+ * @request GET:/v2/events/{event_id}/jettons
4061
+ */
4062
+ getJettonsEvents: (eventId: string, params?: RequestParams) => Promise<Event>;
4063
+ };
4064
+ extraCurrency: {
4065
+ /**
4066
+ * @description Get extra currency info by id
4067
+ *
4068
+ * @tags ExtraCurrency
4069
+ * @name GetExtraCurrencyInfo
4070
+ * @request GET:/v2/extra-currency/{id}
4071
+ */
4072
+ getExtraCurrencyInfo: (id: number, params?: RequestParams) => Promise<EcPreview>;
4073
+ };
4074
+ staking: {
4075
+ /**
4076
+ * @description All pools where account participates
4077
+ *
4078
+ * @tags Staking
4079
+ * @name GetAccountNominatorsPools
4080
+ * @request GET:/v2/staking/nominator/{account_id}/pools
4081
+ */
4082
+ getAccountNominatorsPools: (accountId_Address: Address, params?: RequestParams) => Promise<AccountStaking>;
4083
+ /**
4084
+ * @description Stacking pool info
4085
+ *
4086
+ * @tags Staking
4087
+ * @name GetStakingPoolInfo
4088
+ * @request GET:/v2/staking/pool/{account_id}
4089
+ */
4090
+ getStakingPoolInfo: (accountId_Address: Address, params?: RequestParams) => Promise<GetStakingPoolInfoData>;
4091
+ /**
4092
+ * @description Pool history
4093
+ *
4094
+ * @tags Staking
4095
+ * @name GetStakingPoolHistory
4096
+ * @request GET:/v2/staking/pool/{account_id}/history
4097
+ */
4098
+ getStakingPoolHistory: (accountId_Address: Address, params?: RequestParams) => Promise<GetStakingPoolHistoryData>;
4099
+ /**
4100
+ * @description All pools available in network
4101
+ *
4102
+ * @tags Staking
4103
+ * @name GetStakingPools
4104
+ * @request GET:/v2/staking/pools
4105
+ */
4106
+ getStakingPools: (query?: {
4107
+ /**
4108
+ * account ID
4109
+ * @format address
4110
+ * @example "0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"
4111
+ */
4112
+ available_for?: Address;
4113
+ /**
4114
+ * return also pools not from white list - just compatible by interfaces (maybe dangerous!)
4115
+ * @example false
4116
+ */
4117
+ include_unverified?: boolean;
4118
+ }, params?: RequestParams) => Promise<GetStakingPoolsData>;
4119
+ };
4120
+ storage: {
4121
+ /**
4122
+ * @description Get TON storage providers deployed to the blockchain.
4123
+ *
4124
+ * @tags Storage
4125
+ * @name GetStorageProviders
4126
+ * @request GET:/v2/storage/providers
4127
+ */
4128
+ getStorageProviders: (params?: RequestParams) => Promise<GetStorageProvidersData>;
4129
+ };
4130
+ rates: {
4131
+ /**
4132
+ * @description Get the token price in the chosen currency for display only. Don’t use this for financial transactions.
4133
+ *
4134
+ * @tags Rates
4135
+ * @name GetRates
4136
+ * @request GET:/v2/rates
4137
+ */
4138
+ getRates: (query: {
4139
+ /**
4140
+ * accept ton and jetton master addresses, separated by commas
4141
+ * @maxItems 100
4142
+ * @example ["ton"]
4143
+ */
4144
+ tokens: string[];
4145
+ /**
4146
+ * accept ton and all possible fiat currencies, separated by commas
4147
+ * @maxItems 50
4148
+ * @example ["ton","usd","rub"]
4149
+ */
4150
+ currencies: string[];
4151
+ }, params?: RequestParams) => Promise<GetRatesData>;
4152
+ /**
4153
+ * @description Get chart by token
4154
+ *
4155
+ * @tags Rates
4156
+ * @name GetChartRates
4157
+ * @request GET:/v2/rates/chart
4158
+ */
4159
+ getChartRates: (query: {
4160
+ /**
4161
+ * accept jetton master address
4162
+ * @format address
4163
+ */
4164
+ token: Address;
4165
+ /** @example "usd" */
4166
+ currency?: string;
4167
+ /**
4168
+ * @format int64
4169
+ * @max 2114380800
4170
+ * @example 1668436763
4171
+ */
4172
+ start_date?: number;
4173
+ /**
4174
+ * @format int64
4175
+ * @max 2114380800
4176
+ * @example 1668436763
4177
+ */
4178
+ end_date?: number;
4179
+ /**
4180
+ * @format int
4181
+ * @min 0
4182
+ * @max 200
4183
+ * @default 200
4184
+ */
4185
+ points_count?: number;
4186
+ }, params?: RequestParams) => Promise<GetChartRatesData>;
4187
+ /**
4188
+ * @description Get the TON price from markets
4189
+ *
4190
+ * @tags Rates
4191
+ * @name GetMarketsRates
4192
+ * @request GET:/v2/rates/markets
4193
+ */
4194
+ getMarketsRates: (params?: RequestParams) => Promise<GetMarketsRatesData>;
4195
+ };
4196
+ connect: {
4197
+ /**
4198
+ * @description Get a payload for further token receipt
4199
+ *
4200
+ * @tags Connect
4201
+ * @name GetTonConnectPayload
4202
+ * @request GET:/v2/tonconnect/payload
4203
+ */
4204
+ getTonConnectPayload: (params?: RequestParams) => Promise<GetTonConnectPayloadData>;
4205
+ /**
4206
+ * @description Get account info by state init
4207
+ *
4208
+ * @tags Connect
4209
+ * @name GetAccountInfoByStateInit
4210
+ * @request POST:/v2/tonconnect/stateinit
4211
+ */
4212
+ getAccountInfoByStateInit: (data: {
4213
+ /** @format cell-base64 */
4214
+ stateInit: Cell;
4215
+ }, params?: RequestParams) => Promise<AccountInfoByStateInit>;
4216
+ };
4217
+ wallet: {
4218
+ /**
4219
+ * @description Account verification and token issuance
4220
+ *
4221
+ * @tags Wallet
4222
+ * @name TonConnectProof
4223
+ * @request POST:/v2/wallet/auth/proof
4224
+ */
4225
+ tonConnectProof: (data: {
4226
+ /**
4227
+ * @format address
4228
+ * @example "0:97146a46acc2654y27947f14c4a4b14273e954f78bc017790b41208b0043200b"
4229
+ */
4230
+ address: Address;
4231
+ proof: {
4232
+ /**
4233
+ * @format int64
4234
+ * @example "1678275313"
4235
+ */
4236
+ timestamp: number;
4237
+ domain: {
4238
+ /** @format int32 */
4239
+ lengthBytes?: number;
4240
+ value: string;
4241
+ };
4242
+ signature: string;
4243
+ /** @example "84jHVNLQmZsAAAAAZB0Zryi2wqVJI-KaKNXOvCijEi46YyYzkaSHyJrMPBMOkVZa" */
4244
+ payload: string;
4245
+ /** @format cell-base64 */
4246
+ stateInit?: Cell;
4247
+ };
4248
+ }, params?: RequestParams) => Promise<TonConnectProofData>;
4249
+ /**
4250
+ * @description Get account seqno
4251
+ *
4252
+ * @tags Wallet
4253
+ * @name GetAccountSeqno
4254
+ * @request GET:/v2/wallet/{account_id}/seqno
4255
+ */
4256
+ getAccountSeqno: (accountId_Address: Address, params?: RequestParams) => Promise<Seqno>;
4257
+ /**
4258
+ * @description Get wallets by public key
4259
+ *
4260
+ * @tags Wallet
4261
+ * @name GetWalletsByPublicKey
4262
+ * @request GET:/v2/pubkeys/{public_key}/wallets
4263
+ */
4264
+ getWalletsByPublicKey: (publicKey: string, params?: RequestParams) => Promise<Accounts>;
4265
+ };
4266
+ gasless: {
4267
+ /**
4268
+ * @description Returns configuration of gasless transfers
4269
+ *
4270
+ * @tags Gasless
4271
+ * @name GaslessConfig
4272
+ * @request GET:/v2/gasless/config
4273
+ */
4274
+ gaslessConfig: (params?: RequestParams) => Promise<GaslessConfig>;
4275
+ /**
4276
+ * @description Estimates the cost of the given messages and returns a payload to sign
4277
+ *
4278
+ * @tags Gasless
4279
+ * @name GaslessEstimate
4280
+ * @request POST:/v2/gasless/estimate/{master_id}
4281
+ */
4282
+ gaslessEstimate: (masterId_Address: Address, data: {
4283
+ /** @format address */
4284
+ walletAddress: Address;
4285
+ walletPublicKey: string;
4286
+ messages: {
4287
+ /** @format cell */
4288
+ boc: Cell;
4289
+ }[];
4290
+ }, params?: RequestParams) => Promise<SignRawParams>;
4291
+ /**
4292
+ * @description Submits the signed gasless transaction message to the network
4293
+ *
4294
+ * @tags Gasless
4295
+ * @name GaslessSend
4296
+ * @request POST:/v2/gasless/send
4297
+ */
4298
+ gaslessSend: (data: {
4299
+ /** hex encoded public key */
4300
+ walletPublicKey: string;
4301
+ /** @format cell */
4302
+ boc: Cell;
4303
+ }, params?: RequestParams) => Promise<any>;
4304
+ };
4305
+ liteServer: {
4306
+ /**
4307
+ * @description Get raw masterchain info
4308
+ *
4309
+ * @tags Lite Server
4310
+ * @name GetRawMasterchainInfo
4311
+ * @request GET:/v2/liteserver/get_masterchain_info
4312
+ */
4313
+ getRawMasterchainInfo: (params?: RequestParams) => Promise<GetRawMasterchainInfoData>;
4314
+ /**
4315
+ * @description Get raw masterchain info ext
4316
+ *
4317
+ * @tags Lite Server
4318
+ * @name GetRawMasterchainInfoExt
4319
+ * @request GET:/v2/liteserver/get_masterchain_info_ext
4320
+ */
4321
+ getRawMasterchainInfoExt: (query: {
4322
+ /**
4323
+ * mode
4324
+ * @format int32
4325
+ * @example 0
4326
+ */
4327
+ mode: number;
4328
+ }, params?: RequestParams) => Promise<GetRawMasterchainInfoExtData>;
4329
+ /**
4330
+ * @description Get raw time
4331
+ *
4332
+ * @tags Lite Server
4333
+ * @name GetRawTime
4334
+ * @request GET:/v2/liteserver/get_time
4335
+ */
4336
+ getRawTime: (params?: RequestParams) => Promise<GetRawTimeData>;
4337
+ /**
4338
+ * @description Get raw blockchain block
4339
+ *
4340
+ * @tags Lite Server
4341
+ * @name GetRawBlockchainBlock
4342
+ * @request GET:/v2/liteserver/get_block/{block_id}
4343
+ */
4344
+ getRawBlockchainBlock: (blockId: string, params?: RequestParams) => Promise<GetRawBlockchainBlockData>;
4345
+ /**
4346
+ * @description Get raw blockchain block state
4347
+ *
4348
+ * @tags Lite Server
4349
+ * @name GetRawBlockchainBlockState
4350
+ * @request GET:/v2/liteserver/get_state/{block_id}
4351
+ */
4352
+ getRawBlockchainBlockState: (blockId: string, params?: RequestParams) => Promise<GetRawBlockchainBlockStateData>;
4353
+ /**
4354
+ * @description Get raw blockchain block header
4355
+ *
4356
+ * @tags Lite Server
4357
+ * @name GetRawBlockchainBlockHeader
4358
+ * @request GET:/v2/liteserver/get_block_header/{block_id}
4359
+ */
4360
+ getRawBlockchainBlockHeader: (blockId: string, query: {
4361
+ /**
4362
+ * mode
4363
+ * @format int32
4364
+ * @example 0
4365
+ */
4366
+ mode: number;
4367
+ }, params?: RequestParams) => Promise<GetRawBlockchainBlockHeaderData>;
4368
+ /**
4369
+ * @description Send raw message to blockchain
4370
+ *
4371
+ * @tags Lite Server
4372
+ * @name SendRawMessage
4373
+ * @request POST:/v2/liteserver/send_message
4374
+ */
4375
+ sendRawMessage: (data: {
4376
+ /** @format cell-base64 */
4377
+ body: Cell;
4378
+ }, params?: RequestParams) => Promise<SendRawMessageData>;
4379
+ /**
4380
+ * @description Get raw account state
4381
+ *
4382
+ * @tags Lite Server
4383
+ * @name GetRawAccountState
4384
+ * @request GET:/v2/liteserver/get_account_state/{account_id}
4385
+ */
4386
+ getRawAccountState: (accountId_Address: Address, query?: {
4387
+ /**
4388
+ * target block: (workchain,shard,seqno,root_hash,file_hash)
4389
+ * @example "(-1,8000000000000000,4234234,3E575DAB1D25...90D8,47192E5C46C...BB29)"
4390
+ */
4391
+ target_block?: string;
4392
+ }, params?: RequestParams) => Promise<GetRawAccountStateData>;
4393
+ /**
4394
+ * @description Get raw shard info
4395
+ *
4396
+ * @tags Lite Server
4397
+ * @name GetRawShardInfo
4398
+ * @request GET:/v2/liteserver/get_shard_info/{block_id}
4399
+ */
4400
+ getRawShardInfo: (blockId: string, query: {
4401
+ /**
4402
+ * workchain
4403
+ * @format int32
4404
+ * @example 1
4405
+ */
4406
+ workchain: number;
4407
+ /**
4408
+ * shard
4409
+ * @format int64
4410
+ * @example 1
4411
+ */
4412
+ shard: number;
4413
+ /**
4414
+ * exact
4415
+ * @example false
4416
+ */
4417
+ exact: boolean;
4418
+ }, params?: RequestParams) => Promise<GetRawShardInfoData>;
4419
+ /**
4420
+ * @description Get all raw shards info
4421
+ *
4422
+ * @tags Lite Server
4423
+ * @name GetAllRawShardsInfo
4424
+ * @request GET:/v2/liteserver/get_all_shards_info/{block_id}
4425
+ */
4426
+ getAllRawShardsInfo: (blockId: string, params?: RequestParams) => Promise<GetAllRawShardsInfoData>;
4427
+ /**
4428
+ * @description Get raw transactions
4429
+ *
4430
+ * @tags Lite Server
4431
+ * @name GetRawTransactions
4432
+ * @request GET:/v2/liteserver/get_transactions/{account_id}
4433
+ */
4434
+ getRawTransactions: (accountId_Address: Address, query: {
4435
+ /**
4436
+ * count
4437
+ * @format int32
4438
+ * @example 100
4439
+ */
4440
+ count: number;
4441
+ /**
4442
+ * lt
4443
+ * @format int64
4444
+ * @example 23814011000000
4445
+ */
4446
+ lt: number;
4447
+ /**
4448
+ * hash
4449
+ * @example "131D0C65055F04E9C19D687B51BC70F952FD9CA6F02C2801D3B89964A779DF85"
4450
+ */
4451
+ hash: string;
4452
+ }, params?: RequestParams) => Promise<GetRawTransactionsData>;
4453
+ /**
4454
+ * @description Get raw list block transactions
4455
+ *
4456
+ * @tags Lite Server
4457
+ * @name GetRawListBlockTransactions
4458
+ * @request GET:/v2/liteserver/list_block_transactions/{block_id}
4459
+ */
4460
+ getRawListBlockTransactions: (blockId: string, query: {
4461
+ /**
4462
+ * mode
4463
+ * @format int32
4464
+ * @example 0
4465
+ */
4466
+ mode: number;
4467
+ /**
4468
+ * count
4469
+ * @format int32
4470
+ * @example 100
4471
+ */
4472
+ count: number;
4473
+ /**
4474
+ * account ID
4475
+ * @format address
4476
+ * @example "0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"
4477
+ */
4478
+ account_id?: Address;
4479
+ /**
4480
+ * lt
4481
+ * @format int64
4482
+ * @example 23814011000000
4483
+ */
4484
+ lt?: number;
4485
+ }, params?: RequestParams) => Promise<GetRawListBlockTransactionsData>;
4486
+ /**
4487
+ * @description Get raw block proof
4488
+ *
4489
+ * @tags Lite Server
4490
+ * @name GetRawBlockProof
4491
+ * @request GET:/v2/liteserver/get_block_proof
4492
+ */
4493
+ getRawBlockProof: (query: {
4494
+ /**
4495
+ * known block: (workchain,shard,seqno,root_hash,file_hash)
4496
+ * @example "(-1,8000000000000000,4234234,3E575DAB1D25...90D8,47192E5C46C...BB29)"
4497
+ */
4498
+ known_block: string;
4499
+ /**
4500
+ * target block: (workchain,shard,seqno,root_hash,file_hash)
4501
+ * @example "(-1,8000000000000000,4234234,3E575DAB1D25...90D8,47192E5C46C...BB29)"
4502
+ */
4503
+ target_block?: string;
4504
+ /**
4505
+ * mode
4506
+ * @format int32
4507
+ * @example 0
4508
+ */
4509
+ mode: number;
4510
+ }, params?: RequestParams) => Promise<GetRawBlockProofData>;
4511
+ /**
4512
+ * @description Get raw config
4513
+ *
4514
+ * @tags Lite Server
4515
+ * @name GetRawConfig
4516
+ * @request GET:/v2/liteserver/get_config_all/{block_id}
4517
+ */
4518
+ getRawConfig: (blockId: string, query: {
4519
+ /**
4520
+ * mode
4521
+ * @format int32
4522
+ * @example 0
4523
+ */
4524
+ mode: number;
4525
+ }, params?: RequestParams) => Promise<GetRawConfigData>;
4526
+ /**
4527
+ * @description Get raw shard block proof
4528
+ *
4529
+ * @tags Lite Server
4530
+ * @name GetRawShardBlockProof
4531
+ * @request GET:/v2/liteserver/get_shard_block_proof/{block_id}
4532
+ */
4533
+ getRawShardBlockProof: (blockId: string, params?: RequestParams) => Promise<GetRawShardBlockProofData>;
4534
+ /**
4535
+ * @description Get out msg queue sizes
4536
+ *
4537
+ * @tags Lite Server
4538
+ * @name GetOutMsgQueueSizes
4539
+ * @request GET:/v2/liteserver/get_out_msg_queue_sizes
4540
+ */
4541
+ getOutMsgQueueSizes: (params?: RequestParams) => Promise<GetOutMsgQueueSizesData>;
4542
+ };
4543
+ multisig: {
4544
+ /**
4545
+ * @description Get multisig account info
4546
+ *
4547
+ * @tags Multisig
4548
+ * @name GetMultisigAccount
4549
+ * @request GET:/v2/multisig/{account_id}
4550
+ */
4551
+ getMultisigAccount: (accountId_Address: Address, params?: RequestParams) => Promise<Multisig>;
4552
+ };
4553
+ emulation: {
4554
+ /**
4555
+ * @description Decode a given message. Only external incoming messages can be decoded currently.
4556
+ *
4557
+ * @tags Emulation
4558
+ * @name DecodeMessage
4559
+ * @request POST:/v2/message/decode
4560
+ */
4561
+ decodeMessage: (data: {
4562
+ /** @format cell */
4563
+ boc: Cell;
4564
+ }, params?: RequestParams) => Promise<DecodedMessage>;
4565
+ /**
4566
+ * @description Emulate sending message to blockchain
4567
+ *
4568
+ * @tags Emulation, Events
4569
+ * @name EmulateMessageToEvent
4570
+ * @request POST:/v2/events/emulate
4571
+ */
4572
+ emulateMessageToEvent: (data: {
4573
+ /** @format cell */
4574
+ boc: Cell;
4575
+ }, query?: {
4576
+ ignore_signature_check?: boolean;
4577
+ }, params?: RequestParams) => Promise<Event>;
4578
+ /**
4579
+ * @description Emulate sending message to blockchain
4580
+ *
4581
+ * @tags Emulation, Traces
4582
+ * @name EmulateMessageToTrace
4583
+ * @request POST:/v2/traces/emulate
4584
+ */
4585
+ emulateMessageToTrace: (data: {
4586
+ /** @format cell */
4587
+ boc: Cell;
4588
+ }, query?: {
4589
+ ignore_signature_check?: boolean;
4590
+ }, params?: RequestParams) => Promise<Trace>;
4591
+ /**
4592
+ * @description Emulate sending message to blockchain
4593
+ *
4594
+ * @tags Emulation, Wallet
4595
+ * @name EmulateMessageToWallet
4596
+ * @request POST:/v2/wallet/emulate
4597
+ */
4598
+ emulateMessageToWallet: (data: {
4599
+ /** @format cell */
4600
+ boc: Cell;
4601
+ /** additional per account configuration */
4602
+ params?: {
4603
+ /**
4604
+ * @format address
4605
+ * @example "0:97146a46acc2654y27947f14c4a4b14273e954f78bc017790b41208b0043200b"
4606
+ */
4607
+ address: Address;
4608
+ /**
4609
+ * @format bigint
4610
+ * @example 10000000000
4611
+ */
4612
+ balance?: bigint;
4613
+ }[];
4614
+ }, params?: RequestParams) => Promise<MessageConsequences>;
4615
+ /**
4616
+ * @description Emulate sending message to blockchain
4617
+ *
4618
+ * @tags Emulation, Accounts
4619
+ * @name EmulateMessageToAccountEvent
4620
+ * @request POST:/v2/accounts/{account_id}/events/emulate
4621
+ */
4622
+ emulateMessageToAccountEvent: (accountId_Address: Address, data: {
4623
+ /** @format cell */
4624
+ boc: Cell;
4625
+ }, query?: {
4626
+ ignore_signature_check?: boolean;
4627
+ }, params?: RequestParams) => Promise<AccountEvent>;
4628
+ };
4629
+ }
4630
+ export {};