@zuhaibnoor/zigchain-sdk 1.0.3 → 1.1.1

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 (185) hide show
  1. package/README.md +1 -1
  2. package/dist/auth/ChainAuthApi.d.ts +0 -3
  3. package/dist/auth/ChainAuthApi.d.ts.map +1 -1
  4. package/dist/auth/ChainAuthApi.js +0 -26
  5. package/dist/auth/ChainAuthApi.js.map +1 -1
  6. package/dist/bank/ChainBankApi.d.ts +0 -9
  7. package/dist/bank/ChainBankApi.d.ts.map +1 -1
  8. package/dist/bank/ChainBankApi.js +0 -18
  9. package/dist/bank/ChainBankApi.js.map +1 -1
  10. package/dist/circuit/ChainCircuitApi.d.ts.map +1 -1
  11. package/dist/circuit/ChainCircuitApi.js.map +1 -1
  12. package/dist/client/http.d.ts +1 -0
  13. package/dist/client/http.d.ts.map +1 -1
  14. package/dist/client/http.js +10 -0
  15. package/dist/client/http.js.map +1 -1
  16. package/dist/dex/ChainDexApi.d.ts.map +1 -1
  17. package/dist/dex/ChainDexApi.js.map +1 -1
  18. package/dist/distribution/ChainDistributionApi.d.ts +47 -0
  19. package/dist/distribution/ChainDistributionApi.d.ts.map +1 -0
  20. package/dist/distribution/ChainDistributionApi.js +74 -0
  21. package/dist/distribution/ChainDistributionApi.js.map +1 -0
  22. package/dist/distribution/types.d.ts +71 -0
  23. package/dist/distribution/types.d.ts.map +1 -0
  24. package/dist/distribution/types.js +2 -0
  25. package/dist/distribution/types.js.map +1 -0
  26. package/dist/evidence/ChainEvidenceApi.d.ts +15 -0
  27. package/dist/evidence/ChainEvidenceApi.d.ts.map +1 -0
  28. package/dist/evidence/ChainEvidenceApi.js +22 -0
  29. package/dist/evidence/ChainEvidenceApi.js.map +1 -0
  30. package/dist/evidence/types.d.ts +15 -0
  31. package/dist/evidence/types.d.ts.map +1 -0
  32. package/dist/evidence/types.js +2 -0
  33. package/dist/evidence/types.js.map +1 -0
  34. package/dist/feegrant/ChainFeegrantApi.d.ts +22 -0
  35. package/dist/feegrant/ChainFeegrantApi.d.ts.map +1 -0
  36. package/dist/feegrant/ChainFeegrantApi.js +32 -0
  37. package/dist/feegrant/ChainFeegrantApi.js.map +1 -0
  38. package/dist/feegrant/types.d.ts +17 -0
  39. package/dist/feegrant/types.d.ts.map +1 -0
  40. package/dist/feegrant/types.js +2 -0
  41. package/dist/feegrant/types.js.map +1 -0
  42. package/dist/ibc/ChainIbcApi.d.ts +55 -0
  43. package/dist/ibc/ChainIbcApi.d.ts.map +1 -0
  44. package/dist/ibc/ChainIbcApi.js +82 -0
  45. package/dist/ibc/ChainIbcApi.js.map +1 -0
  46. package/dist/ibc/ibcChannel/ChainIbcChannelApi.d.ts +55 -0
  47. package/dist/ibc/ibcChannel/ChainIbcChannelApi.d.ts.map +1 -0
  48. package/dist/ibc/ibcChannel/ChainIbcChannelApi.js +82 -0
  49. package/dist/ibc/ibcChannel/ChainIbcChannelApi.js.map +1 -0
  50. package/dist/ibc/ibcChannel/types.d.ts +106 -0
  51. package/dist/ibc/ibcChannel/types.d.ts.map +1 -0
  52. package/dist/ibc/ibcChannel/types.js +2 -0
  53. package/dist/ibc/ibcChannel/types.js.map +1 -0
  54. package/dist/ibc/ibcChannelV2/ChainIbcChannelV2.d.ts +14 -0
  55. package/dist/ibc/ibcChannelV2/ChainIbcChannelV2.d.ts.map +1 -0
  56. package/dist/ibc/ibcChannelV2/ChainIbcChannelV2.js +38 -0
  57. package/dist/ibc/ibcChannelV2/ChainIbcChannelV2.js.map +1 -0
  58. package/dist/ibc/ibcChannelV2/types.d.ts +26 -0
  59. package/dist/ibc/ibcChannelV2/types.d.ts.map +1 -0
  60. package/dist/ibc/ibcChannelV2/types.js +3 -0
  61. package/dist/ibc/ibcChannelV2/types.js.map +1 -0
  62. package/dist/ibc/ibcClient/ChainIbcClientApi.d.ts +15 -0
  63. package/dist/ibc/ibcClient/ChainIbcClientApi.d.ts.map +1 -0
  64. package/dist/ibc/ibcClient/ChainIbcClientApi.js +39 -0
  65. package/dist/ibc/ibcClient/ChainIbcClientApi.js.map +1 -0
  66. package/dist/ibc/ibcClient/types.d.ts +53 -0
  67. package/dist/ibc/ibcClient/types.d.ts.map +1 -0
  68. package/dist/ibc/ibcClient/types.js +2 -0
  69. package/dist/ibc/ibcClient/types.js.map +1 -0
  70. package/dist/ibc/ibcConnection/ChainIbcConnectionApi.d.ts +11 -0
  71. package/dist/ibc/ibcConnection/ChainIbcConnectionApi.d.ts.map +1 -0
  72. package/dist/ibc/ibcConnection/ChainIbcConnectionApi.js +24 -0
  73. package/dist/ibc/ibcConnection/ChainIbcConnectionApi.js.map +1 -0
  74. package/dist/ibc/ibcConnection/types.d.ts +18 -0
  75. package/dist/ibc/ibcConnection/types.d.ts.map +1 -0
  76. package/dist/ibc/ibcConnection/types.js +2 -0
  77. package/dist/ibc/ibcConnection/types.js.map +1 -0
  78. package/dist/ibc/types.d.ts +106 -0
  79. package/dist/ibc/types.d.ts.map +1 -0
  80. package/dist/ibc/types.js +2 -0
  81. package/dist/ibc/types.js.map +1 -0
  82. package/dist/ibc-transfer/ChainIbcTransferApi.d.ts +12 -0
  83. package/dist/ibc-transfer/ChainIbcTransferApi.d.ts.map +1 -0
  84. package/dist/ibc-transfer/ChainIbcTransferApi.js +30 -0
  85. package/dist/ibc-transfer/ChainIbcTransferApi.js.map +1 -0
  86. package/dist/ibc-transfer/types.d.ts +26 -0
  87. package/dist/ibc-transfer/types.d.ts.map +1 -0
  88. package/dist/ibc-transfer/types.js +2 -0
  89. package/dist/ibc-transfer/types.js.map +1 -0
  90. package/dist/index.d.ts +26 -0
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +26 -0
  93. package/dist/index.js.map +1 -1
  94. package/dist/interchain-accounts/ChainInterChainAccApi.d.ts +9 -0
  95. package/dist/interchain-accounts/ChainInterChainAccApi.d.ts.map +1 -0
  96. package/dist/interchain-accounts/ChainInterChainAccApi.js +16 -0
  97. package/dist/interchain-accounts/ChainInterChainAccApi.js.map +1 -0
  98. package/dist/interchain-accounts/types.d.ts +12 -0
  99. package/dist/interchain-accounts/types.d.ts.map +1 -0
  100. package/dist/interchain-accounts/types.js +2 -0
  101. package/dist/interchain-accounts/types.js.map +1 -0
  102. package/dist/networks/endpoints.js +2 -2
  103. package/dist/networks/endpoints.js.map +1 -1
  104. package/dist/runtime/ChainRuntimeApi.d.ts +12 -0
  105. package/dist/runtime/ChainRuntimeApi.d.ts.map +1 -0
  106. package/dist/runtime/ChainRuntimeApi.js +16 -0
  107. package/dist/runtime/ChainRuntimeApi.js.map +1 -0
  108. package/dist/runtime/types.d.ts +4 -0
  109. package/dist/runtime/types.d.ts.map +1 -0
  110. package/dist/runtime/types.js +2 -0
  111. package/dist/runtime/types.js.map +1 -0
  112. package/dist/staking/ChainStakingApi.d.ts +1 -5
  113. package/dist/staking/ChainStakingApi.d.ts.map +1 -1
  114. package/dist/staking/ChainStakingApi.js +9 -7
  115. package/dist/staking/ChainStakingApi.js.map +1 -1
  116. package/dist/tokenwrapper/ChainTokenWrapperApi.d.ts +19 -0
  117. package/dist/tokenwrapper/ChainTokenWrapperApi.d.ts.map +1 -0
  118. package/dist/tokenwrapper/ChainTokenWrapperApi.js +26 -0
  119. package/dist/tokenwrapper/ChainTokenWrapperApi.js.map +1 -0
  120. package/dist/tokenwrapper/types.d.ts +15 -0
  121. package/dist/tokenwrapper/types.d.ts.map +1 -0
  122. package/dist/tokenwrapper/types.js +2 -0
  123. package/dist/tokenwrapper/types.js.map +1 -0
  124. package/dist/txs/ChainTxsApi.d.ts +12 -0
  125. package/dist/txs/ChainTxsApi.d.ts.map +1 -0
  126. package/dist/txs/ChainTxsApi.js +17 -0
  127. package/dist/txs/ChainTxsApi.js.map +1 -0
  128. package/dist/txs/types.d.ts +22 -0
  129. package/dist/txs/types.d.ts.map +1 -0
  130. package/dist/txs/types.js +5 -0
  131. package/dist/txs/types.js.map +1 -0
  132. package/dist/upgrade/ChainUpgradeApi.d.ts +22 -0
  133. package/dist/upgrade/ChainUpgradeApi.d.ts.map +1 -0
  134. package/dist/upgrade/ChainUpgradeApi.js +40 -0
  135. package/dist/upgrade/ChainUpgradeApi.js.map +1 -0
  136. package/dist/upgrade/types.d.ts +24 -0
  137. package/dist/upgrade/types.d.ts.map +1 -0
  138. package/dist/upgrade/types.js +5 -0
  139. package/dist/upgrade/types.js.map +1 -0
  140. package/dist/validator-set/ChainCometValidator.d.ts +8 -0
  141. package/dist/validator-set/ChainCometValidator.d.ts.map +1 -0
  142. package/dist/validator-set/ChainCometValidator.js +15 -0
  143. package/dist/validator-set/ChainCometValidator.js.map +1 -0
  144. package/dist/validator-set/ChainValidator.d.ts +8 -0
  145. package/dist/validator-set/ChainValidator.d.ts.map +1 -0
  146. package/dist/validator-set/ChainValidator.js +15 -0
  147. package/dist/validator-set/ChainValidator.js.map +1 -0
  148. package/dist/validator-set/types.d.ts +18 -0
  149. package/dist/validator-set/types.d.ts.map +1 -0
  150. package/dist/validator-set/types.js +2 -0
  151. package/dist/validator-set/types.js.map +1 -0
  152. package/dist/wasm/ChainWasmApi.d.ts +57 -0
  153. package/dist/wasm/ChainWasmApi.d.ts.map +1 -0
  154. package/dist/wasm/ChainWasmApi.js +78 -0
  155. package/dist/wasm/ChainWasmApi.js.map +1 -0
  156. package/dist/wasm/types.d.ts +77 -0
  157. package/dist/wasm/types.d.ts.map +1 -0
  158. package/dist/wasm/types.js +2 -0
  159. package/dist/wasm/types.js.map +1 -0
  160. package/docs/auth.md +438 -72
  161. package/docs/bank.md +782 -123
  162. package/docs/block-results.md +328 -21
  163. package/docs/block.md +325 -38
  164. package/docs/circuit.md +164 -35
  165. package/docs/dex.md +313 -63
  166. package/docs/distribution.md +772 -0
  167. package/docs/evidence.md +194 -0
  168. package/docs/factory.md +308 -62
  169. package/docs/feegrant.md +206 -0
  170. package/docs/gov.md +364 -0
  171. package/docs/ibc/ibcChannel.md +977 -0
  172. package/docs/ibc/ibcClient.md +771 -0
  173. package/docs/ibc/ibcConnection.md +214 -0
  174. package/docs/ibc-transfer.md +463 -0
  175. package/docs/interchain-accounts.md +223 -0
  176. package/docs/mint.md +270 -0
  177. package/docs/runtime.md +120 -0
  178. package/docs/slashing.md +287 -0
  179. package/docs/staking.md +756 -0
  180. package/docs/tokenwrapper.md +294 -0
  181. package/docs/txs.md +447 -0
  182. package/docs/upgrade.md +356 -0
  183. package/docs/validator-set.md +177 -0
  184. package/docs/wasm.md +916 -0
  185. package/package.json +1 -1
package/docs/txs.md ADDED
@@ -0,0 +1,447 @@
1
+ # Transactions (TXs) Module
2
+
3
+ ## What is the TXs Module?
4
+
5
+ The **TXs (Transactions) module** allows you to search, filter, and retrieve transactions on the ZigChain blockchain using Tendermint query syntax.
6
+
7
+ This module helps you:
8
+
9
+ * Find transactions by various criteria (sender, receiver, events, etc.)
10
+ * Query transaction history
11
+ * Build transaction explorers and analytics tools
12
+ * Track on-chain activity
13
+
14
+ ---
15
+
16
+ # Important Terminology
17
+
18
+ Before documenting functions, let's define key terms.
19
+
20
+ ### Transaction (TX)
21
+
22
+ A transaction is an action recorded on the blockchain that modifies state.
23
+
24
+ Examples:
25
+ * Sending coins
26
+ * Deploying a smart contract
27
+ * Voting on governance proposals
28
+ * Staking tokens
29
+
30
+ ### Transaction Hash
31
+
32
+ A unique identifier for a transaction, computed from its contents.
33
+
34
+ Example:
35
+ ```
36
+ txhash = ABC123DEF456...
37
+ ```
38
+
39
+ ---
40
+
41
+ ### Events
42
+
43
+ Transactions emit **events** that record what happened during execution.
44
+
45
+ Events have:
46
+ * A **type** (e.g., `coin_sent`, `transfer`, `message`)
47
+ * **attributes** (key-value pairs describing the event)
48
+
49
+ Example event:
50
+ ```json
51
+ {
52
+ "type": "transfer",
53
+ "attributes": [
54
+ { "key": "sender", "value": "zig1..." },
55
+ { "key": "recipient", "value": "zig1..." },
56
+ { "key": "amount", "value": "100uzig" }
57
+ ]
58
+ }
59
+ ```
60
+
61
+ ---
62
+
63
+ ### Tendermint Query Syntax
64
+
65
+ You search transactions using **Tendermint query syntax**, a special format for filtering by events.
66
+
67
+ Basic syntax:
68
+ ```
69
+ <key>=<value>
70
+ ```
71
+
72
+ Operators:
73
+ * `=` → Equals
74
+ * `!=` → Not equals
75
+ * `<`, `<=`, `>`, `>=` → Comparison
76
+ * `AND`, `OR` → Logical operators
77
+
78
+ Examples:
79
+ ```
80
+ message.sender='zig1...'
81
+ transfer.recipient='zig1...'
82
+ transfer.amount='100uzig'
83
+ coin_spent.spender='zig1...' AND coin_spent.amount='50uzig'
84
+ ```
85
+
86
+ ---
87
+
88
+ # Functions Documentation
89
+
90
+ Setup:
91
+ ```ts
92
+ import {
93
+ ChainTxsApi,
94
+ getNetworkEndpoints,
95
+ Network
96
+ } from '@zuhaibnoor/zigchain-sdk'
97
+
98
+ const endpoints = getNetworkEndpoints(Network.Testnet)
99
+ const txsApi = new ChainTxsApi(endpoints)
100
+ ```
101
+
102
+ ---
103
+
104
+ # 1️⃣ searchTxs
105
+
106
+ ## Method
107
+
108
+ ```ts
109
+ async searchTxs(events: string): Promise<TxsSearchResponse>
110
+ ```
111
+
112
+ ## CLI Equivalent
113
+
114
+ ```bash
115
+ zigchaind query txs --events "<query>"
116
+ ```
117
+
118
+ ## Description
119
+
120
+ Searches for transactions on the blockchain using query syntax.
121
+
122
+ This returns:
123
+
124
+ * Transaction metadata (hash, height, timestamp)
125
+ * Messages contained in the transaction
126
+ * Events emitted during execution
127
+ * Gas usage
128
+
129
+ This is the primary way to query transaction history.
130
+
131
+ ## Parameters
132
+
133
+ | Name | Type | Description |
134
+ | ------ | ------ | -------------------------------------------------------- |
135
+ | events | string | Tendermint query syntax filter (e.g., `message.sender=...`) |
136
+
137
+
138
+ ## Usage Example
139
+
140
+ ### Query by Sender
141
+
142
+ ```ts
143
+ const result = await txsApi.searchTxs(
144
+ "message.sender='zig13f3cekcjlzw8trgpxlvedr76crs5gp4rpp74dn'"
145
+ )
146
+ console.dir(result, { depth: null })
147
+ ```
148
+
149
+ ### Query by Recipient
150
+
151
+ ```ts
152
+ const result = await txsApi.searchTxs(
153
+ "transfer.recipient='zig13f3cekcjlzw8trgpxlvedr76crs5gp4rpp74dn'"
154
+ )
155
+ ```
156
+
157
+ ### Query by Multiple Conditions
158
+
159
+ ```ts
160
+ const result = await txsApi.searchTxs(
161
+ "message.sender='zig1...' AND transfer.amount='100uzig'"
162
+ )
163
+ ```
164
+
165
+ ### Query by Event Type
166
+
167
+ ```ts
168
+ const result = await txsApi.searchTxs(
169
+ "coin_received.receiver='zig1...'"
170
+ )
171
+ ```
172
+
173
+ ## Example Response
174
+
175
+ ```json
176
+ {
177
+ "tx": [
178
+ {
179
+ "body": {
180
+ "messages": [
181
+ {
182
+ "@type": "/cosmos.bank.v1beta1.MsgSend",
183
+ "from_address": "zig1qmy242fasznk3q5mvqzew0af9c6xz2zf09zrau",
184
+ "to_address": "zig13f3cekcjlzw8trgpxlvedr76crs5gp4rpp74dn",
185
+ "amount": [
186
+ {
187
+ "denom": "coin.zig15jqg0hmp9n06q0as7uk3x9xkwr9k3r7yh4ww2uc0hek8zlryrgmsamk4qg.oroswaplptoken",
188
+ "amount": "279"
189
+ }
190
+ ]
191
+ }
192
+ ],
193
+ "memo": "",
194
+ "timeout_height": "0",
195
+ "extension_options": [],
196
+ "non_critical_extension_options": []
197
+ },
198
+ "auth_info": {
199
+ "signer_infos": [
200
+ {
201
+ "public_key": {
202
+ "@type": "/cosmos.crypto.secp256k1.PubKey",
203
+ "key": "..."
204
+ },
205
+ "mode_info": {
206
+ "single": { "mode": "SIGN_MODE_DIRECT" }
207
+ },
208
+ "sequence": "42"
209
+ }
210
+ ],
211
+ "fee": {
212
+ "amount": [
213
+ {
214
+ "denom": "uzig",
215
+ "amount": "5000"
216
+ }
217
+ ],
218
+ "gas_limit": "200000",
219
+ "payer": "",
220
+ "granter": ""
221
+ }
222
+ },
223
+ "signatures": ["..."]
224
+ }
225
+ ],
226
+ "tx_responses": [
227
+ {
228
+ "height": "1234567",
229
+ "txhash": "ABC123DEF456...",
230
+ "codespace": "",
231
+ "code": 0,
232
+ "data": "...",
233
+ "raw_log": "[...]",
234
+ "logs": [
235
+ {
236
+ "msg_index": 0,
237
+ "log": "",
238
+ "events": [
239
+ {
240
+ "type": "coin_received",
241
+ "attributes": [
242
+ {
243
+ "key": "receiver",
244
+ "value": "zig13f3cekcjlzw8trgpxlvedr76crs5gp4rpp74dn",
245
+ "index": true
246
+ },
247
+ {
248
+ "key": "amount",
249
+ "value": "279coin.zig15jqg0hmp9n06q0as7uk3x9xkwr9k3r7yh4ww2uc0hek8zlryrgmsamk4qg.oroswaplptoken",
250
+ "index": true
251
+ },
252
+ {
253
+ "key": "msg_index",
254
+ "value": "0",
255
+ "index": true
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ "type": "transfer",
261
+ "attributes": [
262
+ {
263
+ "key": "recipient",
264
+ "value": "zig13f3cekcjlzw8trgpxlvedr76crs5gp4rpp74dn",
265
+ "index": true
266
+ },
267
+ {
268
+ "key": "sender",
269
+ "value": "zig1qmy242fasznk3q5mvqzew0af9c6xz2zf09zrau",
270
+ "index": true
271
+ },
272
+ {
273
+ "key": "amount",
274
+ "value": "279coin.zig15jqg0hmp9n06q0as7uk3x9xkwr9k3r7yh4ww2uc0hek8zlryrgmsamk4qg.oroswaplptoken",
275
+ "index": true
276
+ },
277
+ {
278
+ "key": "msg_index",
279
+ "value": "0",
280
+ "index": true
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "type": "denom_minted_and_sent",
286
+ "attributes": [
287
+ {
288
+ "key": "module",
289
+ "value": "factory",
290
+ "index": true
291
+ },
292
+ {
293
+ "key": "denom",
294
+ "value": "coin.zig15jqg0hmp9n06q0as7uk3x9xkwr9k3r7yh4ww2uc0hek8zlryrgmsamk4qg.oroswaplptoken",
295
+ "index": true
296
+ },
297
+ {
298
+ "key": "denom_minted_and_sent",
299
+ "value": "279coin.zig15jqg0hmp9n06q0as7uk3x9xkwr9k3r7yh4ww2uc0hek8zlryrgmsamk4qg.oroswaplptoken",
300
+ "index": true
301
+ },
302
+ {
303
+ "key": "recipient",
304
+ "value": "zig13f3cekcjlzw8trgpxlvedr76crs5gp4rpp74dn",
305
+ "index": true
306
+ },
307
+ {
308
+ "key": "total_minted",
309
+ "value": "4113793175725coin.zig15jqg0hmp9n06q0as7uk3x9xkwr9k3r7yh4ww2uc0hek8zlryrgmsamk4qg.oroswaplptoken",
310
+ "index": true
311
+ },
312
+ {
313
+ "key": "total_supply",
314
+ "value": "811405700669coin.zig15jqg0hmp9n06q0as7uk3x9xkwr9k3r7yh4ww2uc0hek8zlryrgmsamk4qg.oroswaplptoken",
315
+ "index": true
316
+ },
317
+ {
318
+ "key": "msg_index",
319
+ "value": "0",
320
+ "index": true
321
+ }
322
+ ]
323
+ }
324
+ ]
325
+ }
326
+ ],
327
+ "info": "",
328
+ "gas_wanted": "200000",
329
+ "gas_used": "125000",
330
+ "tx": {
331
+ "@type": "/cosmos.tx.v1beta1.Tx",
332
+ "body": { "..." },
333
+ "auth_info": { "..." },
334
+ "signatures": ["..."]
335
+ },
336
+ "timestamp": "2024-01-15T10:30:45Z"
337
+ }
338
+ ],
339
+ "pagination": {
340
+ "next_key": "...",
341
+ "total": "115337"
342
+ }
343
+ }
344
+ ```
345
+
346
+ ## Response Field Explanation
347
+
348
+ ### `tx`
349
+
350
+ Array of full transaction objects.
351
+
352
+ Each transaction contains:
353
+
354
+ | Field | Description |
355
+ | ----------- | -------------------------------------------- |
356
+ | body | Transaction body with messages and memo |
357
+ | auth_info | Signer information and fees |
358
+ | signatures | Digital signatures proving transaction validity |
359
+
360
+ ### `tx_responses`
361
+
362
+ Metadata and results for each transaction.
363
+
364
+ | Field | Description |
365
+ | ------------- | -------------------------------------------- |
366
+ | height | Block number containing the transaction |
367
+ | txhash | Unique transaction identifier |
368
+ | code | Execution code (0 = success) |
369
+ | gas_wanted | Gas requested for execution |
370
+ | gas_used | Actual gas consumed |
371
+ | logs | Detailed event logs from execution |
372
+ | timestamp | When the transaction was included in a block |
373
+
374
+ ### `logs` (Event Details)
375
+
376
+ Each log entry contains events emitted during message execution.
377
+
378
+ | Field | Description |
379
+ | ---------- | -------------------------------- |
380
+ | msg_index | Index of the message in the TX |
381
+ | events | Array of events emitted |
382
+
383
+ ### `events` (What Happened)
384
+
385
+ Each event describes something that occurred.
386
+
387
+ | Field | Description |
388
+ | ---------- | ------------------------------------ |
389
+ | type | Event type (e.g., `transfer`) |
390
+ | attributes | Key-value pairs describing the event |
391
+
392
+ ### Common Event Types
393
+
394
+ | Event Type | Meaning |
395
+ | ------------------------- | --------------------------------------- |
396
+ | `message` | Message dispatch metadata |
397
+ | `transfer` | Token transfer occurred |
398
+ | `coin_received` | Recipient received coins |
399
+ | `coin_spent` | Spender spent coins |
400
+ | `execute` | Smart contract executed |
401
+ | `coin_minted_and_sent` | Token factory minting |
402
+ | `instantiate` | Contract instantiated |
403
+ | `migrate` | Contract migrated |
404
+
405
+ ### `pagination`
406
+
407
+ Pagination information for large result sets.
408
+
409
+ | Field | Description |
410
+ | -------- | ---------------------------------------------- |
411
+ | next_key | Cursor for fetching next page (if available) |
412
+ | total | Total number of matching transactions |
413
+
414
+ ---
415
+
416
+ ## Tendermint Query Syntax Reference
417
+
418
+ ### Basic Queries
419
+
420
+ ```ts
421
+ // By sender
422
+ "message.sender='zig1...'"
423
+
424
+ // By recipient
425
+ "transfer.recipient='zig1...'"
426
+
427
+ // By amount
428
+ "transfer.amount='100uzig'"
429
+ ```
430
+
431
+
432
+ ### Common Searchable Fields
433
+
434
+ | Field | Example |
435
+ | ---------------------- | ----------------------------------------- |
436
+ | `message.sender` | `message.sender='zig1...'` |
437
+ | `message.action` | `message.action='/cosmos.bank.v1beta1.MsgSend'` |
438
+ | `transfer.sender` | `transfer.sender='zig1...'` |
439
+ | `transfer.recipient` | `transfer.recipient='zig1...'` |
440
+ | `transfer.amount` | `transfer.amount='100uzig'` |
441
+ | `coin_received.receiver` | `coin_received.receiver='zig1...'` |
442
+ | `coin_spent.spender` | `coin_spent.spender='zig1...'` |
443
+ | `execute._contract_address` | `execute._contract_address='zig1...'` |
444
+
445
+ ---
446
+
447
+