@thru/thru-sdk 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/buf.gen.yaml +12 -0
- package/buf.lock +9 -0
- package/buf.yaml +15 -0
- package/dist/sdk.d.ts +1354 -0
- package/dist/sdk.js +1130 -0
- package/dist/sdk.js.map +1 -0
- package/package.json +39 -0
- package/proto/thru/common/v1/consensus.proto +75 -0
- package/proto/thru/common/v1/errors.proto +67 -0
- package/proto/thru/common/v1/filters.proto +50 -0
- package/proto/thru/common/v1/pagination.proto +47 -0
- package/proto/thru/core/v1/account.proto +138 -0
- package/proto/thru/core/v1/block.proto +82 -0
- package/proto/thru/core/v1/state.proto +37 -0
- package/proto/thru/core/v1/transaction.proto +95 -0
- package/proto/thru/core/v1/types.proto +52 -0
- package/proto/thru/services/v1/command_service.proto +45 -0
- package/proto/thru/services/v1/query_service.proto +344 -0
- package/proto/thru/services/v1/streaming_service.proto +128 -0
- package/thru-ts-client-sdk/core/bound-client.ts +129 -0
- package/thru-ts-client-sdk/core/client.ts +38 -0
- package/thru-ts-client-sdk/counter.ts +216 -0
- package/thru-ts-client-sdk/create-account.ts +78 -0
- package/thru-ts-client-sdk/defaults.ts +17 -0
- package/thru-ts-client-sdk/get-height.ts +52 -0
- package/thru-ts-client-sdk/modules/accounts.ts +137 -0
- package/thru-ts-client-sdk/modules/blocks.ts +75 -0
- package/thru-ts-client-sdk/modules/events.ts +20 -0
- package/thru-ts-client-sdk/modules/height.ts +9 -0
- package/thru-ts-client-sdk/modules/helpers.ts +340 -0
- package/thru-ts-client-sdk/modules/proofs.ts +20 -0
- package/thru-ts-client-sdk/modules/streaming.ts +34 -0
- package/thru-ts-client-sdk/modules/transactions.ts +274 -0
- package/thru-ts-client-sdk/proto/buf/validate/validate_pb.ts +4761 -0
- package/thru-ts-client-sdk/proto/google/api/annotations_pb.ts +39 -0
- package/thru-ts-client-sdk/proto/google/api/client_pb.ts +953 -0
- package/thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts +157 -0
- package/thru-ts-client-sdk/proto/google/api/http_pb.ts +474 -0
- package/thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts +118 -0
- package/thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts +163 -0
- package/thru-ts-client-sdk/proto/thru/common/v1/errors_pb.ts +130 -0
- package/thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts +81 -0
- package/thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts +80 -0
- package/thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts +358 -0
- package/thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts +260 -0
- package/thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts +104 -0
- package/thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts +327 -0
- package/thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts +101 -0
- package/thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts +81 -0
- package/thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts +813 -0
- package/thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts +391 -0
- package/thru-ts-client-sdk/sdk.ts +58 -0
- package/thru-ts-client-sdk/transactions/Transaction.ts +240 -0
- package/thru-ts-client-sdk/transactions/TransactionBuilder.ts +48 -0
- package/thru-ts-client-sdk/transactions/__tests__/transaction.test.ts +95 -0
- package/thru-ts-client-sdk/transactions/index.ts +3 -0
- package/thru-ts-client-sdk/transactions/types.ts +64 -0
- package/thru-ts-client-sdk/transactions/utils.ts +134 -0
- package/thru-ts-client-sdk/types/types.ts +8 -0
- package/thru-ts-client-sdk/utils/utils.ts +70 -0
- package/tsconfig.json +9 -0
- package/tsup.config.ts +10 -0
|
@@ -0,0 +1,813 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file thru/services/v1/query_service.proto (package thru.services.v1, edition 2023)
|
|
3
|
+
// option features.field_presence = EXPLICIT;
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
8
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
|
|
9
|
+
import { file_google_api_annotations } from "../../../google/api/annotations_pb";
|
|
10
|
+
import { file_google_api_client } from "../../../google/api/client_pb";
|
|
11
|
+
import { file_google_api_field_behavior } from "../../../google/api/field_behavior_pb";
|
|
12
|
+
import type { ConsensusStatus, VersionContext } from "../../common/v1/consensus_pb";
|
|
13
|
+
import { file_thru_common_v1_consensus } from "../../common/v1/consensus_pb";
|
|
14
|
+
import type { Filter } from "../../common/v1/filters_pb";
|
|
15
|
+
import { file_thru_common_v1_filters } from "../../common/v1/filters_pb";
|
|
16
|
+
import type { PageRequest, PageResponse } from "../../common/v1/pagination_pb";
|
|
17
|
+
import { file_thru_common_v1_pagination } from "../../common/v1/pagination_pb";
|
|
18
|
+
import type { Account, AccountSchema, AccountView, DataSlice, RawAccountSchema } from "../../core/v1/account_pb";
|
|
19
|
+
import { file_thru_core_v1_account } from "../../core/v1/account_pb";
|
|
20
|
+
import type { Block, BlockSchema, BlockView, RawBlockSchema } from "../../core/v1/block_pb";
|
|
21
|
+
import { file_thru_core_v1_block } from "../../core/v1/block_pb";
|
|
22
|
+
import type { StateProof, StateProofRequest } from "../../core/v1/state_pb";
|
|
23
|
+
import { file_thru_core_v1_state } from "../../core/v1/state_pb";
|
|
24
|
+
import type { RawTransactionSchema, TransactionExecutionResult, TransactionSchema, TransactionView } from "../../core/v1/transaction_pb";
|
|
25
|
+
import { file_thru_core_v1_transaction } from "../../core/v1/transaction_pb";
|
|
26
|
+
import type { BlockHash, Pubkey, Signature } from "../../core/v1/types_pb";
|
|
27
|
+
import { file_thru_core_v1_types } from "../../core/v1/types_pb";
|
|
28
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Describes the file thru/services/v1/query_service.proto.
|
|
32
|
+
*/
|
|
33
|
+
export const file_thru_services_v1_query_service: GenFile = /*@__PURE__*/
|
|
34
|
+
fileDesc("CiR0aHJ1L3NlcnZpY2VzL3YxL3F1ZXJ5X3NlcnZpY2UucHJvdG8SEHRocnUuc2VydmljZXMudjEiqwIKEUdldEFjY291bnRSZXF1ZXN0EioKB2FkZHJlc3MYASABKAsyFC50aHJ1LmNvcmUudjEuUHVia2V5QgPgQQISLAoEdmlldxgCIAEoDjIZLnRocnUuY29yZS52MS5BY2NvdW50Vmlld0ID4EEBEjwKD3ZlcnNpb25fY29udGV4dBgDIAEoCzIeLnRocnUuY29tbW9uLnYxLlZlcnNpb25Db250ZXh0QgPgQQISOwoNbWluX2NvbnNlbnN1cxgEIAEoDjIfLnRocnUuY29tbW9uLnYxLkNvbnNlbnN1c1N0YXR1c0ID4EEBEjAKCmRhdGFfc2xpY2UYBiABKAsyFy50aHJ1LmNvcmUudjEuRGF0YVNsaWNlQgPgQQFKBAgFEAZSCXNraXBfZGF0YSLrAQoUR2V0UmF3QWNjb3VudFJlcXVlc3QSKgoHYWRkcmVzcxgBIAEoCzIULnRocnUuY29yZS52MS5QdWJrZXlCA+BBAhIsCgR2aWV3GAIgASgOMhkudGhydS5jb3JlLnYxLkFjY291bnRWaWV3QgPgQQESPAoPdmVyc2lvbl9jb250ZXh0GAMgASgLMh4udGhydS5jb21tb24udjEuVmVyc2lvbkNvbnRleHRCA+BBAhI7Cg1taW5fY29uc2Vuc3VzGAQgASgOMh8udGhydS5jb21tb24udjEuQ29uc2Vuc3VzU3RhdHVzQgPgQQEi9QEKFUdldFRyYW5zYWN0aW9uUmVxdWVzdBIvCglzaWduYXR1cmUYASABKAsyFy50aHJ1LmNvcmUudjEuU2lnbmF0dXJlQgPgQQISMAoEdmlldxgCIAEoDjIdLnRocnUuY29yZS52MS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1LnNlcnZpY2VzLnYxLkdlbmVyYXRlU3RhdGVQcm9vZlJlc3BvbnNlIiOC0+STAh06ASoiGC92MS9zdGF0ZXByb29mczpnZW5lcmF0ZRJsCgpHZXRWZXJzaW9uEiMudGhydS5zZXJ2aWNlcy52MS5HZXRWZXJzaW9uUmVxdWVzdBokLnRocnUuc2VydmljZXMudjEuR2V0VmVyc2lvblJlc3BvbnNlIhOC0+STAg0SCy92MS92ZXJzaW9uGhPKQRBhcGkudGhydS5uZXR3b3JrQuEBChRjb20udGhydS5zZXJ2aWNlcy52MUIRUXVlcnlTZXJ2aWNlUHJvdG9QAVpIZ2l0aHViLmNvbS9VbnRvLUxhYnMvdGhydS1uZXQvZ3JwYy9wa2cvcHJvdG8vdGhydS9zZXJ2aWNlcy92MTtzZXJ2aWNlc3YxogIDVFNYqgIQVGhydS5TZXJ2aWNlcy5WMboCBFRIVVPKAhBUaHJ1XFNlcnZpY2VzXFYx4gIcVGhydVxTZXJ2aWNlc1xWMVxHUEJNZXRhZGF0YeoCElRocnU6OlNlcnZpY2VzOjpWMZIDAggBYghlZGl0aW9uc3DoBw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_thru_common_v1_consensus, file_thru_common_v1_filters, file_thru_common_v1_pagination, file_thru_core_v1_account, file_thru_core_v1_block, file_thru_core_v1_state, file_thru_core_v1_transaction, file_thru_core_v1_types]);
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* GetAccountRequest retrieves a decoded account by public key.
|
|
38
|
+
*
|
|
39
|
+
* @generated from message thru.services.v1.GetAccountRequest
|
|
40
|
+
*/
|
|
41
|
+
export type GetAccountRequest = Message<"thru.services.v1.GetAccountRequest"> & {
|
|
42
|
+
/**
|
|
43
|
+
* @generated from field: thru.core.v1.Pubkey address = 1;
|
|
44
|
+
*/
|
|
45
|
+
address?: Pubkey;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: thru.core.v1.AccountView view = 2;
|
|
49
|
+
*/
|
|
50
|
+
view: AccountView;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @generated from field: thru.common.v1.VersionContext version_context = 3;
|
|
54
|
+
*/
|
|
55
|
+
versionContext?: VersionContext;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
59
|
+
*/
|
|
60
|
+
minConsensus: ConsensusStatus;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: thru.core.v1.DataSlice data_slice = 6;
|
|
64
|
+
*/
|
|
65
|
+
dataSlice?: DataSlice;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Describes the message thru.services.v1.GetAccountRequest.
|
|
70
|
+
* Use `create(GetAccountRequestSchema)` to create a new message.
|
|
71
|
+
*/
|
|
72
|
+
export const GetAccountRequestSchema: GenMessage<GetAccountRequest> = /*@__PURE__*/
|
|
73
|
+
messageDesc(file_thru_services_v1_query_service, 0);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* GetRawAccountRequest retrieves raw account bytes by public key.
|
|
77
|
+
*
|
|
78
|
+
* @generated from message thru.services.v1.GetRawAccountRequest
|
|
79
|
+
*/
|
|
80
|
+
export type GetRawAccountRequest = Message<"thru.services.v1.GetRawAccountRequest"> & {
|
|
81
|
+
/**
|
|
82
|
+
* @generated from field: thru.core.v1.Pubkey address = 1;
|
|
83
|
+
*/
|
|
84
|
+
address?: Pubkey;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: thru.core.v1.AccountView view = 2;
|
|
88
|
+
*/
|
|
89
|
+
view: AccountView;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: thru.common.v1.VersionContext version_context = 3;
|
|
93
|
+
*/
|
|
94
|
+
versionContext?: VersionContext;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
98
|
+
*/
|
|
99
|
+
minConsensus: ConsensusStatus;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Describes the message thru.services.v1.GetRawAccountRequest.
|
|
104
|
+
* Use `create(GetRawAccountRequestSchema)` to create a new message.
|
|
105
|
+
*/
|
|
106
|
+
export const GetRawAccountRequestSchema: GenMessage<GetRawAccountRequest> = /*@__PURE__*/
|
|
107
|
+
messageDesc(file_thru_services_v1_query_service, 1);
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* GetTransactionRequest retrieves a decoded transaction by signature.
|
|
111
|
+
*
|
|
112
|
+
* @generated from message thru.services.v1.GetTransactionRequest
|
|
113
|
+
*/
|
|
114
|
+
export type GetTransactionRequest = Message<"thru.services.v1.GetTransactionRequest"> & {
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
117
|
+
*/
|
|
118
|
+
signature?: Signature;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: thru.core.v1.TransactionView view = 2;
|
|
122
|
+
*/
|
|
123
|
+
view: TransactionView;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: thru.common.v1.VersionContext version_context = 3;
|
|
127
|
+
*/
|
|
128
|
+
versionContext?: VersionContext;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
132
|
+
*/
|
|
133
|
+
minConsensus: ConsensusStatus;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Describes the message thru.services.v1.GetTransactionRequest.
|
|
138
|
+
* Use `create(GetTransactionRequestSchema)` to create a new message.
|
|
139
|
+
*/
|
|
140
|
+
export const GetTransactionRequestSchema: GenMessage<GetTransactionRequest> = /*@__PURE__*/
|
|
141
|
+
messageDesc(file_thru_services_v1_query_service, 2);
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* GetRawTransactionRequest retrieves raw transaction bytes by signature.
|
|
145
|
+
*
|
|
146
|
+
* @generated from message thru.services.v1.GetRawTransactionRequest
|
|
147
|
+
*/
|
|
148
|
+
export type GetRawTransactionRequest = Message<"thru.services.v1.GetRawTransactionRequest"> & {
|
|
149
|
+
/**
|
|
150
|
+
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
151
|
+
*/
|
|
152
|
+
signature?: Signature;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: thru.common.v1.VersionContext version_context = 2;
|
|
156
|
+
*/
|
|
157
|
+
versionContext?: VersionContext;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: thru.common.v1.ConsensusStatus min_consensus = 3;
|
|
161
|
+
*/
|
|
162
|
+
minConsensus: ConsensusStatus;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Describes the message thru.services.v1.GetRawTransactionRequest.
|
|
167
|
+
* Use `create(GetRawTransactionRequestSchema)` to create a new message.
|
|
168
|
+
*/
|
|
169
|
+
export const GetRawTransactionRequestSchema: GenMessage<GetRawTransactionRequest> = /*@__PURE__*/
|
|
170
|
+
messageDesc(file_thru_services_v1_query_service, 3);
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* GenerateStateProofRequest requests an account state proof.
|
|
174
|
+
*
|
|
175
|
+
* @generated from message thru.services.v1.GenerateStateProofRequest
|
|
176
|
+
*/
|
|
177
|
+
export type GenerateStateProofRequest = Message<"thru.services.v1.GenerateStateProofRequest"> & {
|
|
178
|
+
/**
|
|
179
|
+
* @generated from field: thru.core.v1.StateProofRequest request = 1;
|
|
180
|
+
*/
|
|
181
|
+
request?: StateProofRequest;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Describes the message thru.services.v1.GenerateStateProofRequest.
|
|
186
|
+
* Use `create(GenerateStateProofRequestSchema)` to create a new message.
|
|
187
|
+
*/
|
|
188
|
+
export const GenerateStateProofRequestSchema: GenMessage<GenerateStateProofRequest> = /*@__PURE__*/
|
|
189
|
+
messageDesc(file_thru_services_v1_query_service, 4);
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* GenerateStateProofResponse contains the generated proof.
|
|
193
|
+
*
|
|
194
|
+
* @generated from message thru.services.v1.GenerateStateProofResponse
|
|
195
|
+
*/
|
|
196
|
+
export type GenerateStateProofResponse = Message<"thru.services.v1.GenerateStateProofResponse"> & {
|
|
197
|
+
/**
|
|
198
|
+
* @generated from field: thru.core.v1.StateProof proof = 1;
|
|
199
|
+
*/
|
|
200
|
+
proof?: StateProof;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Describes the message thru.services.v1.GenerateStateProofResponse.
|
|
205
|
+
* Use `create(GenerateStateProofResponseSchema)` to create a new message.
|
|
206
|
+
*/
|
|
207
|
+
export const GenerateStateProofResponseSchema: GenMessage<GenerateStateProofResponse> = /*@__PURE__*/
|
|
208
|
+
messageDesc(file_thru_services_v1_query_service, 5);
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* GetBlockRequest retrieves decoded block information by slot or hash.
|
|
212
|
+
*
|
|
213
|
+
* @generated from message thru.services.v1.GetBlockRequest
|
|
214
|
+
*/
|
|
215
|
+
export type GetBlockRequest = Message<"thru.services.v1.GetBlockRequest"> & {
|
|
216
|
+
/**
|
|
217
|
+
* @generated from oneof thru.services.v1.GetBlockRequest.selector
|
|
218
|
+
*/
|
|
219
|
+
selector: {
|
|
220
|
+
/**
|
|
221
|
+
* @generated from field: uint64 slot = 1;
|
|
222
|
+
*/
|
|
223
|
+
value: bigint;
|
|
224
|
+
case: "slot";
|
|
225
|
+
} | {
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: thru.core.v1.BlockHash block_hash = 2;
|
|
228
|
+
*/
|
|
229
|
+
value: BlockHash;
|
|
230
|
+
case: "blockHash";
|
|
231
|
+
} | { case: undefined; value?: undefined };
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: thru.core.v1.BlockView view = 3;
|
|
235
|
+
*/
|
|
236
|
+
view: BlockView;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
240
|
+
*/
|
|
241
|
+
minConsensus: ConsensusStatus;
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Describes the message thru.services.v1.GetBlockRequest.
|
|
246
|
+
* Use `create(GetBlockRequestSchema)` to create a new message.
|
|
247
|
+
*/
|
|
248
|
+
export const GetBlockRequestSchema: GenMessage<GetBlockRequest> = /*@__PURE__*/
|
|
249
|
+
messageDesc(file_thru_services_v1_query_service, 6);
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* GetRawBlockRequest retrieves raw block bytes by slot or hash.
|
|
253
|
+
*
|
|
254
|
+
* @generated from message thru.services.v1.GetRawBlockRequest
|
|
255
|
+
*/
|
|
256
|
+
export type GetRawBlockRequest = Message<"thru.services.v1.GetRawBlockRequest"> & {
|
|
257
|
+
/**
|
|
258
|
+
* @generated from oneof thru.services.v1.GetRawBlockRequest.selector
|
|
259
|
+
*/
|
|
260
|
+
selector: {
|
|
261
|
+
/**
|
|
262
|
+
* @generated from field: uint64 slot = 1;
|
|
263
|
+
*/
|
|
264
|
+
value: bigint;
|
|
265
|
+
case: "slot";
|
|
266
|
+
} | {
|
|
267
|
+
/**
|
|
268
|
+
* @generated from field: thru.core.v1.BlockHash block_hash = 2;
|
|
269
|
+
*/
|
|
270
|
+
value: BlockHash;
|
|
271
|
+
case: "blockHash";
|
|
272
|
+
} | { case: undefined; value?: undefined };
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @generated from field: thru.common.v1.ConsensusStatus min_consensus = 3;
|
|
276
|
+
*/
|
|
277
|
+
minConsensus: ConsensusStatus;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Describes the message thru.services.v1.GetRawBlockRequest.
|
|
282
|
+
* Use `create(GetRawBlockRequestSchema)` to create a new message.
|
|
283
|
+
*/
|
|
284
|
+
export const GetRawBlockRequestSchema: GenMessage<GetRawBlockRequest> = /*@__PURE__*/
|
|
285
|
+
messageDesc(file_thru_services_v1_query_service, 7);
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* ListOwnedAccountsRequest lists accounts for a given owner public key.
|
|
289
|
+
*
|
|
290
|
+
* @generated from message thru.services.v1.ListOwnedAccountsRequest
|
|
291
|
+
*/
|
|
292
|
+
export type ListOwnedAccountsRequest = Message<"thru.services.v1.ListOwnedAccountsRequest"> & {
|
|
293
|
+
/**
|
|
294
|
+
* @generated from field: thru.core.v1.Pubkey owner = 1;
|
|
295
|
+
*/
|
|
296
|
+
owner?: Pubkey;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @generated from field: thru.core.v1.AccountView view = 2;
|
|
300
|
+
*/
|
|
301
|
+
view: AccountView;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: thru.common.v1.VersionContext version_context = 3;
|
|
305
|
+
*/
|
|
306
|
+
versionContext?: VersionContext;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @generated from field: thru.common.v1.Filter filter = 4;
|
|
310
|
+
*/
|
|
311
|
+
filter?: Filter;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: thru.common.v1.PageRequest page = 5;
|
|
315
|
+
*/
|
|
316
|
+
page?: PageRequest;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: thru.common.v1.ConsensusStatus min_consensus = 6;
|
|
320
|
+
*/
|
|
321
|
+
minConsensus: ConsensusStatus;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Describes the message thru.services.v1.ListOwnedAccountsRequest.
|
|
326
|
+
* Use `create(ListOwnedAccountsRequestSchema)` to create a new message.
|
|
327
|
+
*/
|
|
328
|
+
export const ListOwnedAccountsRequestSchema: GenMessage<ListOwnedAccountsRequest> = /*@__PURE__*/
|
|
329
|
+
messageDesc(file_thru_services_v1_query_service, 8);
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* ListOwnedAccountsResponse contains paginated accounts.
|
|
333
|
+
*
|
|
334
|
+
* @generated from message thru.services.v1.ListOwnedAccountsResponse
|
|
335
|
+
*/
|
|
336
|
+
export type ListOwnedAccountsResponse = Message<"thru.services.v1.ListOwnedAccountsResponse"> & {
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: repeated thru.core.v1.Account accounts = 1;
|
|
339
|
+
*/
|
|
340
|
+
accounts: Account[];
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* @generated from field: thru.common.v1.PageResponse page = 2;
|
|
344
|
+
*/
|
|
345
|
+
page?: PageResponse;
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Describes the message thru.services.v1.ListOwnedAccountsResponse.
|
|
350
|
+
* Use `create(ListOwnedAccountsResponseSchema)` to create a new message.
|
|
351
|
+
*/
|
|
352
|
+
export const ListOwnedAccountsResponseSchema: GenMessage<ListOwnedAccountsResponse> = /*@__PURE__*/
|
|
353
|
+
messageDesc(file_thru_services_v1_query_service, 9);
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* ListBlocksRequest lists blocks with pagination and filtering.
|
|
357
|
+
*
|
|
358
|
+
* @generated from message thru.services.v1.ListBlocksRequest
|
|
359
|
+
*/
|
|
360
|
+
export type ListBlocksRequest = Message<"thru.services.v1.ListBlocksRequest"> & {
|
|
361
|
+
/**
|
|
362
|
+
* @generated from field: thru.common.v1.Filter filter = 1;
|
|
363
|
+
*/
|
|
364
|
+
filter?: Filter;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* @generated from field: thru.common.v1.PageRequest page = 2;
|
|
368
|
+
*/
|
|
369
|
+
page?: PageRequest;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* @generated from field: thru.core.v1.BlockView view = 3;
|
|
373
|
+
*/
|
|
374
|
+
view: BlockView;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @generated from field: thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
378
|
+
*/
|
|
379
|
+
minConsensus: ConsensusStatus;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Describes the message thru.services.v1.ListBlocksRequest.
|
|
384
|
+
* Use `create(ListBlocksRequestSchema)` to create a new message.
|
|
385
|
+
*/
|
|
386
|
+
export const ListBlocksRequestSchema: GenMessage<ListBlocksRequest> = /*@__PURE__*/
|
|
387
|
+
messageDesc(file_thru_services_v1_query_service, 10);
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* ListBlocksResponse returns a page of blocks.
|
|
391
|
+
*
|
|
392
|
+
* @generated from message thru.services.v1.ListBlocksResponse
|
|
393
|
+
*/
|
|
394
|
+
export type ListBlocksResponse = Message<"thru.services.v1.ListBlocksResponse"> & {
|
|
395
|
+
/**
|
|
396
|
+
* @generated from field: repeated thru.core.v1.Block blocks = 1;
|
|
397
|
+
*/
|
|
398
|
+
blocks: Block[];
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @generated from field: thru.common.v1.PageResponse page = 2;
|
|
402
|
+
*/
|
|
403
|
+
page?: PageResponse;
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Describes the message thru.services.v1.ListBlocksResponse.
|
|
408
|
+
* Use `create(ListBlocksResponseSchema)` to create a new message.
|
|
409
|
+
*/
|
|
410
|
+
export const ListBlocksResponseSchema: GenMessage<ListBlocksResponse> = /*@__PURE__*/
|
|
411
|
+
messageDesc(file_thru_services_v1_query_service, 11);
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* ListTransactionsForAccountRequest lists transaction signatures involving an account.
|
|
415
|
+
*
|
|
416
|
+
* @generated from message thru.services.v1.ListTransactionsForAccountRequest
|
|
417
|
+
*/
|
|
418
|
+
export type ListTransactionsForAccountRequest = Message<"thru.services.v1.ListTransactionsForAccountRequest"> & {
|
|
419
|
+
/**
|
|
420
|
+
* @generated from field: thru.core.v1.Pubkey account = 1;
|
|
421
|
+
*/
|
|
422
|
+
account?: Pubkey;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @generated from field: thru.common.v1.PageRequest page = 2;
|
|
426
|
+
*/
|
|
427
|
+
page?: PageRequest;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Describes the message thru.services.v1.ListTransactionsForAccountRequest.
|
|
432
|
+
* Use `create(ListTransactionsForAccountRequestSchema)` to create a new message.
|
|
433
|
+
*/
|
|
434
|
+
export const ListTransactionsForAccountRequestSchema: GenMessage<ListTransactionsForAccountRequest> = /*@__PURE__*/
|
|
435
|
+
messageDesc(file_thru_services_v1_query_service, 12);
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* ListTransactionsForAccountResponse contains transaction signatures.
|
|
439
|
+
*
|
|
440
|
+
* @generated from message thru.services.v1.ListTransactionsForAccountResponse
|
|
441
|
+
*/
|
|
442
|
+
export type ListTransactionsForAccountResponse = Message<"thru.services.v1.ListTransactionsForAccountResponse"> & {
|
|
443
|
+
/**
|
|
444
|
+
* @generated from field: repeated thru.core.v1.Signature signatures = 1;
|
|
445
|
+
*/
|
|
446
|
+
signatures: Signature[];
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: thru.common.v1.PageResponse page = 2;
|
|
450
|
+
*/
|
|
451
|
+
page?: PageResponse;
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Describes the message thru.services.v1.ListTransactionsForAccountResponse.
|
|
456
|
+
* Use `create(ListTransactionsForAccountResponseSchema)` to create a new message.
|
|
457
|
+
*/
|
|
458
|
+
export const ListTransactionsForAccountResponseSchema: GenMessage<ListTransactionsForAccountResponse> = /*@__PURE__*/
|
|
459
|
+
messageDesc(file_thru_services_v1_query_service, 13);
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* GetVersionRequest fetches component version strings.
|
|
463
|
+
*
|
|
464
|
+
* @generated from message thru.services.v1.GetVersionRequest
|
|
465
|
+
*/
|
|
466
|
+
export type GetVersionRequest = Message<"thru.services.v1.GetVersionRequest"> & {
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Describes the message thru.services.v1.GetVersionRequest.
|
|
471
|
+
* Use `create(GetVersionRequestSchema)` to create a new message.
|
|
472
|
+
*/
|
|
473
|
+
export const GetVersionRequestSchema: GenMessage<GetVersionRequest> = /*@__PURE__*/
|
|
474
|
+
messageDesc(file_thru_services_v1_query_service, 14);
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* GetVersionResponse returns version information per component.
|
|
478
|
+
*
|
|
479
|
+
* @generated from message thru.services.v1.GetVersionResponse
|
|
480
|
+
*/
|
|
481
|
+
export type GetVersionResponse = Message<"thru.services.v1.GetVersionResponse"> & {
|
|
482
|
+
/**
|
|
483
|
+
* @generated from field: map<string, string> versions = 1;
|
|
484
|
+
*/
|
|
485
|
+
versions: { [key: string]: string };
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Describes the message thru.services.v1.GetVersionResponse.
|
|
490
|
+
* Use `create(GetVersionResponseSchema)` to create a new message.
|
|
491
|
+
*/
|
|
492
|
+
export const GetVersionResponseSchema: GenMessage<GetVersionResponse> = /*@__PURE__*/
|
|
493
|
+
messageDesc(file_thru_services_v1_query_service, 15);
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* GetEventRequest fetches an event by identifier.
|
|
497
|
+
*
|
|
498
|
+
* @generated from message thru.services.v1.GetEventRequest
|
|
499
|
+
*/
|
|
500
|
+
export type GetEventRequest = Message<"thru.services.v1.GetEventRequest"> & {
|
|
501
|
+
/**
|
|
502
|
+
* @generated from field: string event_id = 1;
|
|
503
|
+
*/
|
|
504
|
+
eventId: string;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* @generated from field: thru.common.v1.VersionContext version_context = 2;
|
|
508
|
+
*/
|
|
509
|
+
versionContext?: VersionContext;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Describes the message thru.services.v1.GetEventRequest.
|
|
514
|
+
* Use `create(GetEventRequestSchema)` to create a new message.
|
|
515
|
+
*/
|
|
516
|
+
export const GetEventRequestSchema: GenMessage<GetEventRequest> = /*@__PURE__*/
|
|
517
|
+
messageDesc(file_thru_services_v1_query_service, 16);
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Event represents a transaction event emitted by the chain.
|
|
521
|
+
*
|
|
522
|
+
* @generated from message thru.services.v1.Event
|
|
523
|
+
*/
|
|
524
|
+
export type Event = Message<"thru.services.v1.Event"> & {
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: string event_id = 1;
|
|
527
|
+
*/
|
|
528
|
+
eventId: string;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @generated from field: thru.core.v1.Signature transaction_signature = 2;
|
|
532
|
+
*/
|
|
533
|
+
transactionSignature?: Signature;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @generated from field: thru.core.v1.Pubkey program = 3;
|
|
537
|
+
*/
|
|
538
|
+
program?: Pubkey;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* @generated from field: bytes payload = 4;
|
|
542
|
+
*/
|
|
543
|
+
payload: Uint8Array;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* @generated from field: uint64 slot = 5;
|
|
547
|
+
*/
|
|
548
|
+
slot: bigint;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* @generated from field: uint32 call_idx = 6;
|
|
552
|
+
*/
|
|
553
|
+
callIdx: number;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: uint32 program_idx = 7;
|
|
557
|
+
*/
|
|
558
|
+
programIdx: number;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* @generated from field: uint32 payload_size = 8;
|
|
562
|
+
*/
|
|
563
|
+
payloadSize: number;
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Describes the message thru.services.v1.Event.
|
|
568
|
+
* Use `create(EventSchema)` to create a new message.
|
|
569
|
+
*/
|
|
570
|
+
export const EventSchema: GenMessage<Event> = /*@__PURE__*/
|
|
571
|
+
messageDesc(file_thru_services_v1_query_service, 17);
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* GetTransactionStatusRequest fetches execution status for a transaction.
|
|
575
|
+
*
|
|
576
|
+
* @generated from message thru.services.v1.GetTransactionStatusRequest
|
|
577
|
+
*/
|
|
578
|
+
export type GetTransactionStatusRequest = Message<"thru.services.v1.GetTransactionStatusRequest"> & {
|
|
579
|
+
/**
|
|
580
|
+
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
581
|
+
*/
|
|
582
|
+
signature?: Signature;
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Describes the message thru.services.v1.GetTransactionStatusRequest.
|
|
587
|
+
* Use `create(GetTransactionStatusRequestSchema)` to create a new message.
|
|
588
|
+
*/
|
|
589
|
+
export const GetTransactionStatusRequestSchema: GenMessage<GetTransactionStatusRequest> = /*@__PURE__*/
|
|
590
|
+
messageDesc(file_thru_services_v1_query_service, 18);
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* TransactionStatus captures status metadata for a transaction.
|
|
594
|
+
*
|
|
595
|
+
* @generated from message thru.services.v1.TransactionStatus
|
|
596
|
+
*/
|
|
597
|
+
export type TransactionStatus = Message<"thru.services.v1.TransactionStatus"> & {
|
|
598
|
+
/**
|
|
599
|
+
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
600
|
+
*/
|
|
601
|
+
signature?: Signature;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* @generated from field: thru.common.v1.ConsensusStatus consensus_status = 2;
|
|
605
|
+
*/
|
|
606
|
+
consensusStatus: ConsensusStatus;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @generated from field: thru.core.v1.TransactionExecutionResult execution_result = 3;
|
|
610
|
+
*/
|
|
611
|
+
executionResult?: TransactionExecutionResult;
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Describes the message thru.services.v1.TransactionStatus.
|
|
616
|
+
* Use `create(TransactionStatusSchema)` to create a new message.
|
|
617
|
+
*/
|
|
618
|
+
export const TransactionStatusSchema: GenMessage<TransactionStatus> = /*@__PURE__*/
|
|
619
|
+
messageDesc(file_thru_services_v1_query_service, 19);
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
*
|
|
624
|
+
* @generated from message thru.services.v1.GetHeightRequest
|
|
625
|
+
*/
|
|
626
|
+
export type GetHeightRequest = Message<"thru.services.v1.GetHeightRequest"> & {
|
|
627
|
+
};
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Describes the message thru.services.v1.GetHeightRequest.
|
|
631
|
+
* Use `create(GetHeightRequestSchema)` to create a new message.
|
|
632
|
+
*/
|
|
633
|
+
export const GetHeightRequestSchema: GenMessage<GetHeightRequest> = /*@__PURE__*/
|
|
634
|
+
messageDesc(file_thru_services_v1_query_service, 20);
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* GetHeightResponse
|
|
638
|
+
*
|
|
639
|
+
* @generated from message thru.services.v1.GetHeightResponse
|
|
640
|
+
*/
|
|
641
|
+
export type GetHeightResponse = Message<"thru.services.v1.GetHeightResponse"> & {
|
|
642
|
+
/**
|
|
643
|
+
* @generated from field: uint64 finalized = 1;
|
|
644
|
+
*/
|
|
645
|
+
finalized: bigint;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* @generated from field: uint64 locally_executed = 2;
|
|
649
|
+
*/
|
|
650
|
+
locallyExecuted: bigint;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* @generated from field: uint64 cluster_executed = 3;
|
|
654
|
+
*/
|
|
655
|
+
clusterExecuted: bigint;
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Describes the message thru.services.v1.GetHeightResponse.
|
|
660
|
+
* Use `create(GetHeightResponseSchema)` to create a new message.
|
|
661
|
+
*/
|
|
662
|
+
export const GetHeightResponseSchema: GenMessage<GetHeightResponse> = /*@__PURE__*/
|
|
663
|
+
messageDesc(file_thru_services_v1_query_service, 21);
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* QueryService defines unary RPCs for accessing blockchain data.
|
|
667
|
+
*
|
|
668
|
+
* @generated from service thru.services.v1.QueryService
|
|
669
|
+
*/
|
|
670
|
+
export const QueryService: GenService<{
|
|
671
|
+
/**
|
|
672
|
+
* Get block heights
|
|
673
|
+
*
|
|
674
|
+
* @generated from rpc thru.services.v1.QueryService.GetHeight
|
|
675
|
+
*/
|
|
676
|
+
getHeight: {
|
|
677
|
+
methodKind: "unary";
|
|
678
|
+
input: typeof GetHeightRequestSchema;
|
|
679
|
+
output: typeof GetHeightResponseSchema;
|
|
680
|
+
},
|
|
681
|
+
/**
|
|
682
|
+
* Get account information.
|
|
683
|
+
*
|
|
684
|
+
* @generated from rpc thru.services.v1.QueryService.GetAccount
|
|
685
|
+
*/
|
|
686
|
+
getAccount: {
|
|
687
|
+
methodKind: "unary";
|
|
688
|
+
input: typeof GetAccountRequestSchema;
|
|
689
|
+
output: typeof AccountSchema;
|
|
690
|
+
},
|
|
691
|
+
/**
|
|
692
|
+
* Get account raw bytes.
|
|
693
|
+
*
|
|
694
|
+
* @generated from rpc thru.services.v1.QueryService.GetRawAccount
|
|
695
|
+
*/
|
|
696
|
+
getRawAccount: {
|
|
697
|
+
methodKind: "unary";
|
|
698
|
+
input: typeof GetRawAccountRequestSchema;
|
|
699
|
+
output: typeof RawAccountSchema;
|
|
700
|
+
},
|
|
701
|
+
/**
|
|
702
|
+
* Get transaction by signature.
|
|
703
|
+
*
|
|
704
|
+
* @generated from rpc thru.services.v1.QueryService.GetTransaction
|
|
705
|
+
*/
|
|
706
|
+
getTransaction: {
|
|
707
|
+
methodKind: "unary";
|
|
708
|
+
input: typeof GetTransactionRequestSchema;
|
|
709
|
+
output: typeof TransactionSchema;
|
|
710
|
+
},
|
|
711
|
+
/**
|
|
712
|
+
* Get raw transaction by signature.
|
|
713
|
+
*
|
|
714
|
+
* @generated from rpc thru.services.v1.QueryService.GetRawTransaction
|
|
715
|
+
*/
|
|
716
|
+
getRawTransaction: {
|
|
717
|
+
methodKind: "unary";
|
|
718
|
+
input: typeof GetRawTransactionRequestSchema;
|
|
719
|
+
output: typeof RawTransactionSchema;
|
|
720
|
+
},
|
|
721
|
+
/**
|
|
722
|
+
* Get block by slot or hash.
|
|
723
|
+
*
|
|
724
|
+
* @generated from rpc thru.services.v1.QueryService.GetBlock
|
|
725
|
+
*/
|
|
726
|
+
getBlock: {
|
|
727
|
+
methodKind: "unary";
|
|
728
|
+
input: typeof GetBlockRequestSchema;
|
|
729
|
+
output: typeof BlockSchema;
|
|
730
|
+
},
|
|
731
|
+
/**
|
|
732
|
+
* Get raw block bytes.
|
|
733
|
+
*
|
|
734
|
+
* @generated from rpc thru.services.v1.QueryService.GetRawBlock
|
|
735
|
+
*/
|
|
736
|
+
getRawBlock: {
|
|
737
|
+
methodKind: "unary";
|
|
738
|
+
input: typeof GetRawBlockRequestSchema;
|
|
739
|
+
output: typeof RawBlockSchema;
|
|
740
|
+
},
|
|
741
|
+
/**
|
|
742
|
+
* List accounts owned by a public key.
|
|
743
|
+
*
|
|
744
|
+
* @generated from rpc thru.services.v1.QueryService.ListOwnedAccounts
|
|
745
|
+
*/
|
|
746
|
+
listOwnedAccounts: {
|
|
747
|
+
methodKind: "unary";
|
|
748
|
+
input: typeof ListOwnedAccountsRequestSchema;
|
|
749
|
+
output: typeof ListOwnedAccountsResponseSchema;
|
|
750
|
+
},
|
|
751
|
+
/**
|
|
752
|
+
* List blocks using pagination and filtering. By default returns blocks ordered from latest slot to the first one.
|
|
753
|
+
*
|
|
754
|
+
* @generated from rpc thru.services.v1.QueryService.ListBlocks
|
|
755
|
+
*/
|
|
756
|
+
listBlocks: {
|
|
757
|
+
methodKind: "unary";
|
|
758
|
+
input: typeof ListBlocksRequestSchema;
|
|
759
|
+
output: typeof ListBlocksResponseSchema;
|
|
760
|
+
},
|
|
761
|
+
/**
|
|
762
|
+
* List executed transaction signatures involving an account.
|
|
763
|
+
*
|
|
764
|
+
* @generated from rpc thru.services.v1.QueryService.ListTransactionsForAccount
|
|
765
|
+
*/
|
|
766
|
+
listTransactionsForAccount: {
|
|
767
|
+
methodKind: "unary";
|
|
768
|
+
input: typeof ListTransactionsForAccountRequestSchema;
|
|
769
|
+
output: typeof ListTransactionsForAccountResponseSchema;
|
|
770
|
+
},
|
|
771
|
+
/**
|
|
772
|
+
* Get a specific event by ID.
|
|
773
|
+
*
|
|
774
|
+
* @generated from rpc thru.services.v1.QueryService.GetEvent
|
|
775
|
+
*/
|
|
776
|
+
getEvent: {
|
|
777
|
+
methodKind: "unary";
|
|
778
|
+
input: typeof GetEventRequestSchema;
|
|
779
|
+
output: typeof EventSchema;
|
|
780
|
+
},
|
|
781
|
+
/**
|
|
782
|
+
* Get derived transaction status metadata.
|
|
783
|
+
*
|
|
784
|
+
* @generated from rpc thru.services.v1.QueryService.GetTransactionStatus
|
|
785
|
+
*/
|
|
786
|
+
getTransactionStatus: {
|
|
787
|
+
methodKind: "unary";
|
|
788
|
+
input: typeof GetTransactionStatusRequestSchema;
|
|
789
|
+
output: typeof TransactionStatusSchema;
|
|
790
|
+
},
|
|
791
|
+
/**
|
|
792
|
+
* Generate an account state proof snapshot.
|
|
793
|
+
*
|
|
794
|
+
* @generated from rpc thru.services.v1.QueryService.GenerateStateProof
|
|
795
|
+
*/
|
|
796
|
+
generateStateProof: {
|
|
797
|
+
methodKind: "unary";
|
|
798
|
+
input: typeof GenerateStateProofRequestSchema;
|
|
799
|
+
output: typeof GenerateStateProofResponseSchema;
|
|
800
|
+
},
|
|
801
|
+
/**
|
|
802
|
+
* Get component version strings.
|
|
803
|
+
*
|
|
804
|
+
* @generated from rpc thru.services.v1.QueryService.GetVersion
|
|
805
|
+
*/
|
|
806
|
+
getVersion: {
|
|
807
|
+
methodKind: "unary";
|
|
808
|
+
input: typeof GetVersionRequestSchema;
|
|
809
|
+
output: typeof GetVersionResponseSchema;
|
|
810
|
+
},
|
|
811
|
+
}> = /*@__PURE__*/
|
|
812
|
+
serviceDesc(file_thru_services_v1_query_service, 0);
|
|
813
|
+
|