chia-agent 9.2.0 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +179 -1
- package/README.md +12 -5
- package/api/chia/data_layer/data_layer_util.d.ts +8 -1
- package/api/chia/types/mempool_item.d.ts +2 -2
- package/api/chia/types/mojos.d.ts +2 -0
- package/api/chia/types/mojos.js +2 -0
- package/api/chia/types/signing_mode.d.ts +4 -0
- package/api/chia/types/signing_mode.js +2 -0
- package/api/rpc/common/index.d.ts +23 -9
- package/api/rpc/crawler/index.d.ts +8 -2
- package/api/rpc/data_layer/index.d.ts +68 -27
- package/api/rpc/data_layer/index.js +8 -1
- package/api/rpc/farmer/index.d.ts +30 -13
- package/api/rpc/full_node/index.d.ts +69 -28
- package/api/rpc/harvester/index.d.ts +16 -6
- package/api/rpc/index.d.ts +10 -17
- package/api/rpc/index.js +7 -3
- package/api/rpc/wallet/index.d.ts +390 -107
- package/api/rpc/wallet/index.js +68 -4
- package/api/types.d.ts +3 -0
- package/api/ws/chia_plots_create/index.d.ts +4 -2
- package/api/ws/crawler/index.d.ts +5 -2
- package/api/ws/daemon/index.d.ts +71 -38
- package/api/ws/farmer/index.d.ts +16 -8
- package/api/ws/full_node/index.d.ts +10 -5
- package/api/ws/harvester/index.d.ts +7 -3
- package/api/ws/index.d.ts +8 -17
- package/api/ws/timelord/index.d.ts +9 -4
- package/api/ws/wallet/index.d.ts +11 -6
- package/daemon/index.d.ts +6 -7
- package/package.json +1 -1
- package/rpc/index.d.ts +1 -2
|
@@ -11,6 +11,9 @@ import { EndOfSubSlotBundle } from "../../chia/types/end_of_slot_bundle";
|
|
|
11
11
|
import { SignagePoint } from "../../chia/full_node/signage_point";
|
|
12
12
|
import { CoinSpend } from "../../chia/types/coin_spend";
|
|
13
13
|
import { CLVMCost } from "../../chia/types/clvm_cost";
|
|
14
|
+
import { GetMessageType, ResType } from "../../types";
|
|
15
|
+
import { TDaemon } from "../../../daemon/index";
|
|
16
|
+
import { Mojos } from "../../chia/types/mojos";
|
|
14
17
|
export declare const chia_full_node_service = "chia_full_node";
|
|
15
18
|
export declare type chia_full_node_service = typeof chia_full_node_service;
|
|
16
19
|
export declare const get_blockchain_state_command = "get_blockchain_state";
|
|
@@ -30,7 +33,8 @@ export declare type TGetBlockchainStateResponse = {
|
|
|
30
33
|
sub_slot_iters: uint64;
|
|
31
34
|
space: uint128;
|
|
32
35
|
mempool_size: int;
|
|
33
|
-
mempool_cost:
|
|
36
|
+
mempool_cost: CLVMCost;
|
|
37
|
+
mempool_fees: Mojos;
|
|
34
38
|
mempool_min_fees: {
|
|
35
39
|
cost_5000000: float;
|
|
36
40
|
};
|
|
@@ -39,7 +43,8 @@ export declare type TGetBlockchainStateResponse = {
|
|
|
39
43
|
node_id: str;
|
|
40
44
|
};
|
|
41
45
|
};
|
|
42
|
-
export declare
|
|
46
|
+
export declare type WsGetBlockchainStateMessage = GetMessageType<chia_full_node_service, get_blockchain_state_command, TGetBlockchainStateResponse>;
|
|
47
|
+
export declare function get_blockchain_state<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockchainStateResponse, WsGetBlockchainStateMessage>>;
|
|
43
48
|
export declare const get_block_command = "get_block";
|
|
44
49
|
export declare type get_block_command = typeof get_block_command;
|
|
45
50
|
export declare type TGetBlockRequest = {
|
|
@@ -48,7 +53,8 @@ export declare type TGetBlockRequest = {
|
|
|
48
53
|
export declare type TGetBlockResponse = {
|
|
49
54
|
block: FullBlock;
|
|
50
55
|
};
|
|
51
|
-
export declare
|
|
56
|
+
export declare type WsGetBlockMessage = GetMessageType<chia_full_node_service, get_block_command, TGetBlockResponse>;
|
|
57
|
+
export declare function get_block<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockResponse, WsGetBlockMessage>>;
|
|
52
58
|
export declare const get_blocks_command = "get_blocks";
|
|
53
59
|
export declare type get_blocks_command = typeof get_blocks_command;
|
|
54
60
|
export declare type TGetBlocksRequest = {
|
|
@@ -62,7 +68,8 @@ export declare type TGetBlocksResponse = {
|
|
|
62
68
|
header_hash: str;
|
|
63
69
|
}>;
|
|
64
70
|
};
|
|
65
|
-
export declare
|
|
71
|
+
export declare type WsGetBlocksMessage = GetMessageType<chia_full_node_service, get_blocks_command, TGetBlocksResponse>;
|
|
72
|
+
export declare function get_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlocksRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlocksResponse, WsGetBlocksMessage>>;
|
|
66
73
|
export declare const get_block_count_metrics_command = "get_block_count_metrics";
|
|
67
74
|
export declare type get_block_count_metrics_command = typeof get_block_count_metrics_command;
|
|
68
75
|
export declare type TGetBlockCountMetricsResponse = {
|
|
@@ -72,7 +79,8 @@ export declare type TGetBlockCountMetricsResponse = {
|
|
|
72
79
|
"hint_count": int;
|
|
73
80
|
};
|
|
74
81
|
};
|
|
75
|
-
export declare
|
|
82
|
+
export declare type WsGetBlockCountMetricsMessage = GetMessageType<chia_full_node_service, get_block_count_metrics_command, TGetBlockCountMetricsResponse>;
|
|
83
|
+
export declare function get_block_count_metrics<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockCountMetricsResponse, WsGetBlockCountMetricsMessage>>;
|
|
76
84
|
export declare const get_block_record_by_height_command = "get_block_record_by_height";
|
|
77
85
|
export declare type get_block_record_by_height_command = typeof get_block_record_by_height_command;
|
|
78
86
|
export declare type TGetBlockRecordByHeightRequest = {
|
|
@@ -81,7 +89,8 @@ export declare type TGetBlockRecordByHeightRequest = {
|
|
|
81
89
|
export declare type TGetBlockRecordByHeightResponse = {
|
|
82
90
|
block_record: Optional<BlockRecord>;
|
|
83
91
|
};
|
|
84
|
-
export declare
|
|
92
|
+
export declare type WsGetBlockRecordByHeightMessage = GetMessageType<chia_full_node_service, get_block_record_by_height_command, TGetBlockRecordByHeightResponse>;
|
|
93
|
+
export declare function get_block_record_by_height<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordByHeightRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockRecordByHeightResponse, WsGetBlockRecordByHeightMessage>>;
|
|
85
94
|
export declare const get_block_record_command = "get_block_record";
|
|
86
95
|
export declare type get_block_record_command = typeof get_block_record_command;
|
|
87
96
|
export declare type TGetBlockRecordRequest = {
|
|
@@ -90,7 +99,8 @@ export declare type TGetBlockRecordRequest = {
|
|
|
90
99
|
export declare type TGetBlockRecordResponse = {
|
|
91
100
|
block_record: BlockRecord;
|
|
92
101
|
};
|
|
93
|
-
export declare
|
|
102
|
+
export declare type WsGetBlockRecordMessage = GetMessageType<chia_full_node_service, get_block_record_command, TGetBlockRecordResponse>;
|
|
103
|
+
export declare function get_block_record<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockRecordResponse, WsGetBlockRecordMessage>>;
|
|
94
104
|
export declare const get_block_records_command = "get_block_records";
|
|
95
105
|
export declare type get_block_records_command = typeof get_block_records_command;
|
|
96
106
|
export declare type TGetBlockRecordsRequest = {
|
|
@@ -100,7 +110,8 @@ export declare type TGetBlockRecordsRequest = {
|
|
|
100
110
|
export declare type TGetBlockRecordsResponse = {
|
|
101
111
|
block_records: BlockRecord[];
|
|
102
112
|
};
|
|
103
|
-
export declare
|
|
113
|
+
export declare type WsGetBlockRecordsMessage = GetMessageType<chia_full_node_service, get_block_records_command, TGetBlockRecordsResponse>;
|
|
114
|
+
export declare function get_block_records<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockRecordsResponse, WsGetBlockRecordsMessage>>;
|
|
104
115
|
export declare const get_block_spends_command = "get_block_spends";
|
|
105
116
|
export declare type get_block_spends_command = typeof get_block_spends_command;
|
|
106
117
|
export declare type TGetBlockSpendsRequest = {
|
|
@@ -109,14 +120,16 @@ export declare type TGetBlockSpendsRequest = {
|
|
|
109
120
|
export declare type TGetBlockSpendsResponse = {
|
|
110
121
|
block_spends: CoinSpend[];
|
|
111
122
|
};
|
|
112
|
-
export declare
|
|
123
|
+
export declare type WsGetBlockSpendsMessage = GetMessageType<chia_full_node_service, get_block_spends_command, TGetBlockSpendsResponse>;
|
|
124
|
+
export declare function get_block_spends<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockSpendsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetBlockSpendsResponse, WsGetBlockSpendsMessage>>;
|
|
113
125
|
export declare const get_unfinished_block_headers_command = "get_unfinished_block_headers";
|
|
114
126
|
export declare type get_unfinished_block_headers_command = typeof get_unfinished_block_headers_command;
|
|
115
127
|
export declare type TGetUnfinishedBlockHeadersRequest = {};
|
|
116
128
|
export declare type TGetUnfinishedBlockHeadersResponse = {
|
|
117
129
|
headers: UnfinishedHeaderBlock[];
|
|
118
130
|
};
|
|
119
|
-
export declare
|
|
131
|
+
export declare type WsGetUnfinishedBlockHeadersMessage = GetMessageType<chia_full_node_service, get_unfinished_block_headers_command, TGetUnfinishedBlockHeadersResponse>;
|
|
132
|
+
export declare function get_unfinished_block_headers<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetUnfinishedBlockHeadersResponse, WsGetUnfinishedBlockHeadersMessage>>;
|
|
120
133
|
export declare const get_network_space_command = "get_network_space";
|
|
121
134
|
export declare type get_network_space_command = typeof get_network_space_command;
|
|
122
135
|
export declare type TGetNetworkSpaceRequest = {
|
|
@@ -126,7 +139,8 @@ export declare type TGetNetworkSpaceRequest = {
|
|
|
126
139
|
export declare type TGetNetworkSpaceResponse = {
|
|
127
140
|
space: uint128;
|
|
128
141
|
};
|
|
129
|
-
export declare
|
|
142
|
+
export declare type WsGetNetworkSpaceMessage = GetMessageType<chia_full_node_service, get_network_space_command, TGetNetworkSpaceResponse>;
|
|
143
|
+
export declare function get_network_space<T extends TRPCAgent | TDaemon>(agent: T, data: TGetNetworkSpaceRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetNetworkSpaceResponse, WsGetNetworkSpaceMessage>>;
|
|
130
144
|
export declare const get_additions_and_removals_command = "get_additions_and_removals";
|
|
131
145
|
export declare type get_additions_and_removals_command = typeof get_additions_and_removals_command;
|
|
132
146
|
export declare type TGetAdditionsAndRemovalsRequest = {
|
|
@@ -136,14 +150,16 @@ export declare type TGetAdditionsAndRemovalsResponse = {
|
|
|
136
150
|
additions: CoinRecordBackwardCompatible[];
|
|
137
151
|
removals: CoinRecordBackwardCompatible[];
|
|
138
152
|
};
|
|
139
|
-
export declare
|
|
153
|
+
export declare type WsGetAdditionsAndRemovalsMessage = GetMessageType<chia_full_node_service, get_additions_and_removals_command, TGetAdditionsAndRemovalsResponse>;
|
|
154
|
+
export declare function get_additions_and_removals<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAdditionsAndRemovalsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAdditionsAndRemovalsResponse, WsGetAdditionsAndRemovalsMessage>>;
|
|
140
155
|
export declare const get_initial_freeze_period_command_of_full_node = "get_initial_freeze_period";
|
|
141
156
|
export declare type get_initial_freeze_period_command_of_full_node = typeof get_initial_freeze_period_command_of_full_node;
|
|
142
157
|
export declare type TGetInitialFreezePeriodRequestOfFullNode = {};
|
|
143
158
|
export declare type TGetInitialFreezePeriodResponseOfFullNode = {
|
|
144
159
|
INITIAL_FREEZE_END_TIMESTAMP: uint64;
|
|
145
160
|
};
|
|
146
|
-
export declare
|
|
161
|
+
export declare type WsGetInitialFreezePeriodMessageOfFullNode = GetMessageType<chia_full_node_service, get_initial_freeze_period_command_of_full_node, TGetInitialFreezePeriodResponseOfFullNode>;
|
|
162
|
+
export declare function get_initial_freeze_period_of_full_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetInitialFreezePeriodResponseOfFullNode, WsGetInitialFreezePeriodMessageOfFullNode>>;
|
|
147
163
|
export declare const get_network_info_command_of_full_node = "get_network_info";
|
|
148
164
|
export declare type get_network_info_command_of_full_node = typeof get_network_info_command_of_full_node;
|
|
149
165
|
export declare type TGetNetworkInfoRequestOfFullNode = {};
|
|
@@ -151,7 +167,8 @@ export declare type TGetNetworkInfoResponseOfFullNode = {
|
|
|
151
167
|
network_name: str;
|
|
152
168
|
network_prefix: str;
|
|
153
169
|
};
|
|
154
|
-
export declare
|
|
170
|
+
export declare type WsGetNetworkInfoMessageOfFullNode = GetMessageType<chia_full_node_service, get_network_info_command_of_full_node, TGetNetworkInfoResponseOfFullNode>;
|
|
171
|
+
export declare function get_network_info_of_full_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetNetworkInfoResponseOfFullNode, WsGetNetworkInfoMessageOfFullNode>>;
|
|
155
172
|
export declare const get_recent_signage_point_or_eos_command = "get_recent_signage_point_or_eos";
|
|
156
173
|
export declare type get_recent_signage_point_or_eos_command = typeof get_recent_signage_point_or_eos_command;
|
|
157
174
|
export declare type TGetRecentSignagePointOrEOSCommandRequest = {
|
|
@@ -168,7 +185,8 @@ export declare type TGetRecentSignagePointOrEOSCommandResponse = {
|
|
|
168
185
|
time_received: float;
|
|
169
186
|
reverted: bool;
|
|
170
187
|
};
|
|
171
|
-
export declare
|
|
188
|
+
export declare type WsGetRecentSignagePointOrEOSCommandMessage = GetMessageType<chia_full_node_service, get_recent_signage_point_or_eos_command, TGetRecentSignagePointOrEOSCommandResponse>;
|
|
189
|
+
export declare function get_recent_signage_point_or_eos<T extends TRPCAgent | TDaemon>(agent: T, data: TGetRecentSignagePointOrEOSCommandRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetRecentSignagePointOrEOSCommandResponse, WsGetRecentSignagePointOrEOSCommandMessage>>;
|
|
172
190
|
export declare const get_coin_records_by_puzzle_hash_command = "get_coin_records_by_puzzle_hash";
|
|
173
191
|
export declare type get_coin_records_by_puzzle_hash_command = typeof get_coin_records_by_puzzle_hash_command;
|
|
174
192
|
export declare type TGetCoinRecordsByPuzzleHashRequest = {
|
|
@@ -180,7 +198,8 @@ export declare type TGetCoinRecordsByPuzzleHashRequest = {
|
|
|
180
198
|
export declare type TGetCoinRecordsByPuzzleHashResponse = {
|
|
181
199
|
coin_records: CoinRecordBackwardCompatible[];
|
|
182
200
|
};
|
|
183
|
-
export declare
|
|
201
|
+
export declare type WsGetCoinRecordsByPuzzleHashMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hash_command, TGetCoinRecordsByPuzzleHashResponse>;
|
|
202
|
+
export declare function get_coin_records_by_puzzle_hash<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByPuzzleHashResponse, WsGetCoinRecordsByPuzzleHashMessage>>;
|
|
184
203
|
export declare const get_coin_records_by_puzzle_hashes_command = "get_coin_records_by_puzzle_hashes";
|
|
185
204
|
export declare type get_coin_records_by_puzzle_hashes_command = typeof get_coin_records_by_puzzle_hashes_command;
|
|
186
205
|
export declare type TGetCoinRecordsByPuzzleHashesRequest = {
|
|
@@ -192,7 +211,8 @@ export declare type TGetCoinRecordsByPuzzleHashesRequest = {
|
|
|
192
211
|
export declare type TGetCoinRecordsByPuzzleHashesResponse = {
|
|
193
212
|
coin_records: CoinRecordBackwardCompatible[];
|
|
194
213
|
};
|
|
195
|
-
export declare
|
|
214
|
+
export declare type WsGetCoinRecordsByPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hashes_command, TGetCoinRecordsByPuzzleHashesResponse>;
|
|
215
|
+
export declare function get_coin_records_by_puzzle_hashes<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashesRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByPuzzleHashesResponse, WsGetCoinRecordsByPuzzleHashesMessage>>;
|
|
196
216
|
export declare const get_coin_record_by_name_command = "get_coin_record_by_name";
|
|
197
217
|
export declare type get_coin_record_by_name_command = typeof get_coin_record_by_name_command;
|
|
198
218
|
export declare type TGetCoinRecordByNameRequest = {
|
|
@@ -201,7 +221,8 @@ export declare type TGetCoinRecordByNameRequest = {
|
|
|
201
221
|
export declare type TGetCoinRecordByNameResponse = {
|
|
202
222
|
coin_record: CoinRecordBackwardCompatible;
|
|
203
223
|
};
|
|
204
|
-
export declare
|
|
224
|
+
export declare type WsGetCoinRecordByNameMessage = GetMessageType<chia_full_node_service, get_coin_record_by_name_command, TGetCoinRecordByNameResponse>;
|
|
225
|
+
export declare function get_coin_record_by_name<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordByNameRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordByNameResponse, WsGetCoinRecordByNameMessage>>;
|
|
205
226
|
export declare const get_coin_records_by_names_command = "get_coin_records_by_names";
|
|
206
227
|
export declare type get_coin_records_by_names_command = typeof get_coin_records_by_names_command;
|
|
207
228
|
export declare type TGetCoinRecordsByNamesRequest = {
|
|
@@ -213,7 +234,8 @@ export declare type TGetCoinRecordsByNamesRequest = {
|
|
|
213
234
|
export declare type TGetCoinRecordsByNamesResponse = {
|
|
214
235
|
coin_records: CoinRecordBackwardCompatible[];
|
|
215
236
|
};
|
|
216
|
-
export declare
|
|
237
|
+
export declare type WsGetCoinRecordsByNamesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_names_command, TGetCoinRecordsByNamesResponse>;
|
|
238
|
+
export declare function get_coin_records_by_names<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByNamesRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByNamesResponse, WsGetCoinRecordsByNamesMessage>>;
|
|
217
239
|
export declare const get_coin_records_by_parent_ids_command = "get_coin_records_by_parent_ids";
|
|
218
240
|
export declare type get_coin_records_by_parent_ids_command = typeof get_coin_records_by_parent_ids_command;
|
|
219
241
|
export declare type TGetCoinRecordsByParentIdsRequest = {
|
|
@@ -225,7 +247,8 @@ export declare type TGetCoinRecordsByParentIdsRequest = {
|
|
|
225
247
|
export declare type TGetCoinRecordsByParentIdsResponse = {
|
|
226
248
|
coin_records: CoinRecordBackwardCompatible[];
|
|
227
249
|
};
|
|
228
|
-
export declare
|
|
250
|
+
export declare type WsGetCoinRecordsByParentIdsMessage = GetMessageType<chia_full_node_service, get_coin_records_by_parent_ids_command, TGetCoinRecordsByParentIdsResponse>;
|
|
251
|
+
export declare function get_coin_records_by_parent_ids<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByParentIdsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByParentIdsResponse, WsGetCoinRecordsByParentIdsMessage>>;
|
|
229
252
|
export declare const get_coin_records_by_hint_command = "get_coin_records_by_hint";
|
|
230
253
|
export declare type get_coin_records_by_hint_command = typeof get_coin_records_by_hint_command;
|
|
231
254
|
export declare type TGetCoinRecordsByHintRequest = {
|
|
@@ -237,7 +260,8 @@ export declare type TGetCoinRecordsByHintRequest = {
|
|
|
237
260
|
export declare type TGetCoinRecordsByHintResponse = {
|
|
238
261
|
coin_records: CoinRecordBackwardCompatible[];
|
|
239
262
|
};
|
|
240
|
-
export declare
|
|
263
|
+
export declare type WsGetCoinRecordsByHintMessage = GetMessageType<chia_full_node_service, get_coin_records_by_hint_command, TGetCoinRecordsByHintResponse>;
|
|
264
|
+
export declare function get_coin_records_by_hint<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByHintRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByHintResponse, WsGetCoinRecordsByHintMessage>>;
|
|
241
265
|
export declare const push_tx_command = "push_tx";
|
|
242
266
|
export declare type push_tx_command = typeof push_tx_command;
|
|
243
267
|
export declare type TPushTxRequest = {
|
|
@@ -246,7 +270,8 @@ export declare type TPushTxRequest = {
|
|
|
246
270
|
export declare type TPushTxResponse = {
|
|
247
271
|
status: str;
|
|
248
272
|
};
|
|
249
|
-
export declare
|
|
273
|
+
export declare type WsPushTxMessage = GetMessageType<chia_full_node_service, push_tx_command, TPushTxResponse>;
|
|
274
|
+
export declare function push_tx<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTxRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TPushTxResponse, WsPushTxMessage>>;
|
|
250
275
|
export declare const get_puzzle_and_solution_command = "get_puzzle_and_solution";
|
|
251
276
|
export declare type get_puzzle_and_solution_command = typeof get_puzzle_and_solution_command;
|
|
252
277
|
export declare type TGetPuzzleAndSolutionRequest = {
|
|
@@ -256,35 +281,42 @@ export declare type TGetPuzzleAndSolutionRequest = {
|
|
|
256
281
|
export declare type TGetPuzzleAndSolutionResponse = {
|
|
257
282
|
coin_solution: CoinSpend;
|
|
258
283
|
};
|
|
259
|
-
export declare
|
|
284
|
+
export declare type WsGetPuzzleAndSolutionMessage = GetMessageType<chia_full_node_service, get_puzzle_and_solution_command, TGetPuzzleAndSolutionResponse>;
|
|
285
|
+
export declare function get_puzzle_and_solution<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPuzzleAndSolutionRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetPuzzleAndSolutionResponse, WsGetPuzzleAndSolutionMessage>>;
|
|
260
286
|
export declare const get_all_mempool_tx_ids_command = "get_all_mempool_tx_ids";
|
|
261
287
|
export declare type get_all_mempool_tx_ids_command = typeof get_all_mempool_tx_ids_command;
|
|
262
288
|
export declare type TGetAllMempoolTxIdsRequest = {};
|
|
263
289
|
export declare type TGetAllMempoolTxIdsResponse = {
|
|
264
290
|
tx_ids: bytes32[];
|
|
265
291
|
};
|
|
266
|
-
export declare
|
|
292
|
+
export declare type WsGetAllMempoolTxIdsMessage = GetMessageType<chia_full_node_service, get_all_mempool_tx_ids_command, TGetAllMempoolTxIdsResponse>;
|
|
293
|
+
export declare function get_all_mempool_tx_ids<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAllMempoolTxIdsResponse, WsGetAllMempoolTxIdsMessage>>;
|
|
267
294
|
export declare const get_all_mempool_items_command = "get_all_mempool_items";
|
|
268
295
|
export declare type get_all_mempool_items_command = typeof get_all_mempool_items_command;
|
|
269
296
|
export declare type TGetAllMempoolItemsRequest = {};
|
|
270
297
|
export declare type TGetAllMempoolItemsResponse = {
|
|
271
298
|
mempool_items: Record<string, MempoolItem>;
|
|
272
299
|
};
|
|
273
|
-
export declare
|
|
300
|
+
export declare type WsGetAllMempoolItemsMessage = GetMessageType<chia_full_node_service, get_all_mempool_items_command, TGetAllMempoolItemsResponse>;
|
|
301
|
+
export declare function get_all_mempool_items<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAllMempoolItemsResponse, WsGetAllMempoolItemsMessage>>;
|
|
274
302
|
export declare const get_mempool_item_by_tx_id_command = "get_mempool_item_by_tx_id";
|
|
275
303
|
export declare type get_mempool_item_by_tx_id_command = typeof get_mempool_item_by_tx_id_command;
|
|
276
304
|
export declare type TGetMempoolItemByTxIdRequest = {
|
|
277
305
|
tx_id: str;
|
|
306
|
+
include_pending?: bool;
|
|
278
307
|
};
|
|
279
308
|
export declare type TGetMempoolItemByTxIdResponse = {
|
|
280
309
|
mempool_item: MempoolItem;
|
|
281
310
|
};
|
|
282
|
-
export declare
|
|
311
|
+
export declare type WsGetMempoolItemByTxIdMessage = GetMessageType<chia_full_node_service, get_mempool_item_by_tx_id_command, TGetMempoolItemByTxIdResponse>;
|
|
312
|
+
export declare function get_mempool_item_by_tx_id<T extends TRPCAgent | TDaemon>(agent: T, data: TGetMempoolItemByTxIdRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetMempoolItemByTxIdResponse, WsGetMempoolItemByTxIdMessage>>;
|
|
283
313
|
export declare const get_fee_estimate_command = "get_fee_estimate";
|
|
284
314
|
export declare type get_fee_estimate_command = typeof get_fee_estimate_command;
|
|
285
315
|
export declare type TGetFeeEstimateRequest = {
|
|
286
316
|
spend_bundle?: SpendBundle;
|
|
287
317
|
cost?: uint64;
|
|
318
|
+
spend_type?: "send_xch_transaction" | "cat_spend" | "take_offer" | "cancel_offer" | "nft_set_nft_did" | "nft_transfer_nft" | "create_new_pool_wallet" | "pw_absorb_rewards" | "create_new_did_wallet";
|
|
319
|
+
spend_count?: uint64;
|
|
288
320
|
target_times: int[];
|
|
289
321
|
};
|
|
290
322
|
export declare type TGetFeeEstimateResponse = {
|
|
@@ -292,10 +324,19 @@ export declare type TGetFeeEstimateResponse = {
|
|
|
292
324
|
target_times: int[];
|
|
293
325
|
current_fee_rate: uint64;
|
|
294
326
|
mempool_size: CLVMCost;
|
|
327
|
+
mempool_fees: Mojos;
|
|
328
|
+
num_spends: int;
|
|
295
329
|
mempool_max_size: CLVMCost;
|
|
296
330
|
full_node_synced: bool;
|
|
297
331
|
peak_height: uint32;
|
|
298
332
|
last_peak_timestamp: uint64;
|
|
299
333
|
node_time_utc: int;
|
|
300
|
-
|
|
301
|
-
|
|
334
|
+
last_block_cost: int;
|
|
335
|
+
fees_last_block: uint64;
|
|
336
|
+
fee_rate_last_block: float;
|
|
337
|
+
last_tx_block_height: int;
|
|
338
|
+
};
|
|
339
|
+
export declare type WsGetFeeEstimateMessage = GetMessageType<chia_full_node_service, get_fee_estimate_command, TGetFeeEstimateResponse>;
|
|
340
|
+
export declare function get_fee_estimate<T extends TRPCAgent | TDaemon>(agent: T, data: TGetFeeEstimateRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetFeeEstimateResponse, WsGetFeeEstimateMessage>>;
|
|
341
|
+
export declare type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockSpendsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByNamesResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetCoinRecordsByParentIdsResponse | TGetCoinRecordsByHintResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse | TGetPuzzleAndSolutionResponse | TGetFeeEstimateResponse;
|
|
342
|
+
export declare type RpcFullNodeMessageOnWs = WsGetAdditionsAndRemovalsMessage | WsGetAllMempoolItemsMessage | WsGetAllMempoolTxIdsMessage | WsGetBlockMessage | WsGetBlockRecordByHeightMessage | WsGetBlockRecordMessage | WsGetBlockRecordsMessage | WsGetBlockSpendsMessage | WsGetBlockchainStateMessage | WsGetBlocksMessage | WsGetBlockCountMetricsMessage | WsGetRecentSignagePointOrEOSCommandMessage | WsGetCoinRecordByNameMessage | WsGetCoinRecordsByNamesMessage | WsGetCoinRecordsByPuzzleHashMessage | WsGetCoinRecordsByPuzzleHashesMessage | WsGetCoinRecordsByParentIdsMessage | WsGetCoinRecordsByHintMessage | WsGetInitialFreezePeriodMessageOfFullNode | WsGetMempoolItemByTxIdMessage | WsGetNetworkInfoMessageOfFullNode | WsGetNetworkSpaceMessage | WsGetUnfinishedBlockHeadersMessage | WsPushTxMessage | WsGetPuzzleAndSolutionMessage | WsGetFeeEstimateMessage;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { str } from "../../chia/types/_python_types_";
|
|
2
2
|
import { TRPCAgent } from "../../../rpc";
|
|
3
3
|
import { Plot } from "../../chia/harvester/harvester";
|
|
4
|
+
import { GetMessageType, ResType } from "../../types";
|
|
5
|
+
import { TDaemon } from "../../../daemon/index";
|
|
4
6
|
export declare const chia_harvester_service = "chia_harvester";
|
|
5
7
|
export declare type chia_harvester_service = typeof chia_harvester_service;
|
|
6
8
|
export declare const get_plots_command = "get_plots";
|
|
@@ -11,37 +13,45 @@ export declare type TGetPlotsResponse = {
|
|
|
11
13
|
failed_to_open_filenames: str[];
|
|
12
14
|
not_found_filenames: str[];
|
|
13
15
|
};
|
|
14
|
-
export declare
|
|
16
|
+
export declare type WsGetPlotsMessage = GetMessageType<chia_harvester_service, get_plots_command, TGetPlotsResponse>;
|
|
17
|
+
export declare function get_plots<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetPlotsResponse, WsGetPlotsMessage>>;
|
|
15
18
|
export declare const refresh_plots_command = "refresh_plots";
|
|
16
19
|
export declare type refresh_plots_command = typeof refresh_plots_command;
|
|
17
20
|
export declare type TRefreshPlotsRequest = {};
|
|
18
21
|
export declare type TRefreshPlotsResponse = {};
|
|
19
|
-
export declare
|
|
22
|
+
export declare type WsRefreshPlotsMessage = GetMessageType<chia_harvester_service, refresh_plots_command, TRefreshPlotsResponse>;
|
|
23
|
+
export declare function refresh_plots<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TRefreshPlotsResponse, WsRefreshPlotsMessage>>;
|
|
20
24
|
export declare const delete_plot_command = "delete_plot";
|
|
21
25
|
export declare type delete_plot_command = typeof delete_plot_command;
|
|
22
26
|
export declare type TDeletePlotRequest = {
|
|
23
27
|
filename: str;
|
|
24
28
|
};
|
|
25
29
|
export declare type TDeletePlotResponse = {};
|
|
26
|
-
export declare
|
|
30
|
+
export declare type WsDeletePlotMessage = GetMessageType<chia_harvester_service, delete_plot_command, TDeletePlotResponse>;
|
|
31
|
+
export declare function delete_plot<T extends TRPCAgent | TDaemon>(agent: T, data: TDeletePlotRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDeletePlotResponse, WsDeletePlotMessage>>;
|
|
27
32
|
export declare const add_plot_directory_command = "add_plot_directory";
|
|
28
33
|
export declare type add_plot_directory_command = typeof add_plot_directory_command;
|
|
29
34
|
export declare type TAddPlotDirectoryRequest = {
|
|
30
35
|
dirname: str;
|
|
31
36
|
};
|
|
32
37
|
export declare type TAddPlotDirectoryResponse = {};
|
|
33
|
-
export declare
|
|
38
|
+
export declare type WsAddPlotDirectoryMessage = GetMessageType<chia_harvester_service, add_plot_directory_command, TAddPlotDirectoryResponse>;
|
|
39
|
+
export declare function add_plot_directory<T extends TRPCAgent | TDaemon>(agent: T, data: TAddPlotDirectoryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TAddPlotDirectoryResponse, WsAddPlotDirectoryMessage>>;
|
|
34
40
|
export declare const get_plot_directories_command = "get_plot_directories";
|
|
35
41
|
export declare type get_plot_directories_command = typeof get_plot_directories_command;
|
|
36
42
|
export declare type TGetPlotDirectoriesRequest = {};
|
|
37
43
|
export declare type TGetPlotDirectoriesResponse = {
|
|
38
44
|
directories: str[];
|
|
39
45
|
};
|
|
40
|
-
export declare
|
|
46
|
+
export declare type WsGetPlotDirectoriesMessage = GetMessageType<chia_harvester_service, get_plot_directories_command, TGetPlotDirectoriesResponse>;
|
|
47
|
+
export declare function get_plot_directories<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetPlotDirectoriesResponse, WsGetPlotDirectoriesMessage>>;
|
|
41
48
|
export declare const remove_plot_directory_command = "remove_plot_directory";
|
|
42
49
|
export declare type remove_plot_directory_command = typeof remove_plot_directory_command;
|
|
43
50
|
export declare type TRemovePlotDirectoryRequest = {
|
|
44
51
|
dirname: str;
|
|
45
52
|
};
|
|
46
53
|
export declare type TRemovePlotDirectoryResponse = {};
|
|
47
|
-
export declare
|
|
54
|
+
export declare type WsRemovePlotDirectoryMessage = GetMessageType<chia_harvester_service, remove_plot_directory_command, TRemovePlotDirectoryResponse>;
|
|
55
|
+
export declare function remove_plot_directory<T extends TRPCAgent | TDaemon>(agent: T, data: TRemovePlotDirectoryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TRemovePlotDirectoryResponse, WsRemovePlotDirectoryMessage>>;
|
|
56
|
+
export declare type RpcHarvesterMessage = TAddPlotDirectoryResponse | TDeletePlotResponse | TGetPlotDirectoriesResponse | TGetPlotsResponse | TRefreshPlotsResponse | TRemovePlotDirectoryResponse;
|
|
57
|
+
export declare type RpcHarvesterMessageOnWs = WsAddPlotDirectoryMessage | WsDeletePlotMessage | WsGetPlotDirectoriesMessage | WsGetPlotsMessage | WsRefreshPlotsMessage | WsRemovePlotDirectoryMessage;
|
package/api/rpc/index.d.ts
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export { chia_farmer_service, TGetRewardTargetRequest, TGetRewardTargetResponse, get_reward_targets, TGetSignagePointRequest, TGetSignagePointResponse, get_signage_point, TGetSignagePointsRequest, TGetSignagePointsResponse, get_signage_points, TSetRewardTargetRequest, TSetRewardTargetResponse, set_reward_targets, TGetHarvestersRequest, TGetHarvestersResponse, get_harvesters, TGetHarvestersSummaryResponse, get_harvesters_summary, TGetHarvesterPlotsValidRequest, TGetHarvesterPlotsValidResponse, get_harvester_plots_valid, TGetHarvesterPlotsInvalidRequest, TGetHarvesterPlotsInvalidResponse, get_harvester_plots_invalid, TGetHarvesterPlotsKeysMissingRequest, TGetHarvesterPlotsKeysMissingResponse, get_harvester_plots_keys_missing, TGetHarvesterPlotsDuplicatesRequest, TGetHarvesterPlotsDuplicatesResponse, get_harvester_plots_duplicates, TSetPayoutInstructionsRequest, TSetPayoutInstructionsResponse, set_pool_payout_instructions, TGetPoolStateRequest, TGetPoolStateResponse, get_pool_state, TGetPoolLinkRequest, TGetPoolLinkResponse, get_pool_login_link, } from "./farmer/index";
|
|
3
|
-
import type {
|
|
1
|
+
import type { RpcFarmerMessage } from "./farmer/index";
|
|
2
|
+
export { chia_farmer_service, RpcFarmerMessage, TGetRewardTargetRequest, TGetRewardTargetResponse, get_reward_targets, TGetSignagePointRequest, TGetSignagePointResponse, get_signage_point, TGetSignagePointsRequest, TGetSignagePointsResponse, get_signage_points, TSetRewardTargetRequest, TSetRewardTargetResponse, set_reward_targets, TGetHarvestersRequest, TGetHarvestersResponse, get_harvesters, TGetHarvestersSummaryResponse, get_harvesters_summary, TGetHarvesterPlotsValidRequest, TGetHarvesterPlotsValidResponse, get_harvester_plots_valid, TGetHarvesterPlotsInvalidRequest, TGetHarvesterPlotsInvalidResponse, get_harvester_plots_invalid, TGetHarvesterPlotsKeysMissingRequest, TGetHarvesterPlotsKeysMissingResponse, get_harvester_plots_keys_missing, TGetHarvesterPlotsDuplicatesRequest, TGetHarvesterPlotsDuplicatesResponse, get_harvester_plots_duplicates, TSetPayoutInstructionsRequest, TSetPayoutInstructionsResponse, set_pool_payout_instructions, TGetPoolStateRequest, TGetPoolStateResponse, get_pool_state, TGetPoolLinkRequest, TGetPoolLinkResponse, get_pool_login_link, } from "./farmer/index";
|
|
3
|
+
import type { RpcFullNodeMessage } from "./full_node/index";
|
|
4
4
|
export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsAndRemovalsResponse, get_additions_and_removals, TGetAllMempoolItemsRequest, TGetAllMempoolItemsResponse, get_all_mempool_items, TGetAllMempoolTxIdsRequest, TGetAllMempoolTxIdsResponse, get_all_mempool_tx_ids, TGetBlockRecordByHeightRequest, TGetBlockRecordByHeightResponse, get_block_record_by_height, TGetBlockRecordRequest, TGetBlockRecordResponse, get_block_record, TGetBlockRecordsRequest, TGetBlockRecordsResponse, get_block_records, TGetBlockSpendsRequest, TGetBlockSpendsResponse, get_block_spends, TGetBlockRequest, TGetBlockResponse, get_block, TGetBlockchainStateRequest, TGetBlockchainStateResponse, get_blockchain_state, TGetBlocksRequest, TGetBlocksResponse, get_blocks, TGetBlockCountMetricsResponse, get_block_count_metrics, TGetRecentSignagePointOrEOSCommandRequest, TGetRecentSignagePointOrEOSCommandResponse, get_recent_signage_point_or_eos, TGetCoinRecordsByNamesRequest, TGetCoinRecordsByNamesResponse, get_coin_records_by_names, TGetCoinRecordByNameRequest, TGetCoinRecordByNameResponse, get_coin_record_by_name, TGetCoinRecordsByPuzzleHashRequest, TGetCoinRecordsByPuzzleHashResponse, get_coin_records_by_puzzle_hash, TGetCoinRecordsByPuzzleHashesRequest, TGetCoinRecordsByPuzzleHashesResponse, get_coin_records_by_puzzle_hashes, TGetCoinRecordsByParentIdsRequest, TGetCoinRecordsByParentIdsResponse, get_coin_records_by_parent_ids, TGetCoinRecordsByHintRequest, TGetCoinRecordsByHintResponse, get_coin_records_by_hint, TGetInitialFreezePeriodRequestOfFullNode, TGetInitialFreezePeriodResponseOfFullNode, get_initial_freeze_period_of_full_node, TGetMempoolItemByTxIdRequest, TGetMempoolItemByTxIdResponse, get_mempool_item_by_tx_id, TGetNetworkInfoRequestOfFullNode, TGetNetworkInfoResponseOfFullNode, get_network_info_of_full_node, TGetNetworkSpaceRequest, TGetNetworkSpaceResponse, get_network_space, TGetUnfinishedBlockHeadersRequest, TGetUnfinishedBlockHeadersResponse, get_unfinished_block_headers, TPushTxRequest, TPushTxResponse, push_tx, TGetPuzzleAndSolutionRequest, TGetPuzzleAndSolutionResponse, get_puzzle_and_solution, TGetFeeEstimateRequest, TGetFeeEstimateResponse, get_fee_estimate, } from "./full_node/index";
|
|
5
|
-
import type {
|
|
5
|
+
import type { RpcHarvesterMessage } from "./harvester/index";
|
|
6
6
|
export { chia_harvester_service, TAddPlotDirectoryRequest, TAddPlotDirectoryResponse, add_plot_directory, TDeletePlotRequest, TDeletePlotResponse, delete_plot, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsRequest, TGetPlotsResponse, get_plots, TRefreshPlotsRequest, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, } from "./harvester/index";
|
|
7
|
-
import type {
|
|
8
|
-
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
|
|
9
|
-
import {
|
|
10
|
-
export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, } from "./data_layer/index";
|
|
11
|
-
import type {
|
|
7
|
+
import type { RpcWalletMessage } from "./wallet/index";
|
|
8
|
+
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TNftSetDidBulkRequest, TNftSetDidBulkResponse, nft_set_did_bulk, TNftTransferBulkRequest, TNftTransferBulkResponse, nft_transfer_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGetTimestampForHeightResponse, get_timestamp_for_height, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
|
|
9
|
+
import type { RpcDataLayerMessage } from "./data_layer/index";
|
|
10
|
+
export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, TGetSyncStatusRequest as TGetSyncStatusRequestDL, TGetSyncStatusResponse as TGetSyncStatusResponseDL, get_sync_status as get_sync_status_dl, } from "./data_layer/index";
|
|
11
|
+
import type { RpcCrawlerMessage } from "./crawler/index";
|
|
12
12
|
export { chia_crawler_service, TGetIpsAfterTimestampRequest, TGetIpsAfterTimestampResponse, TGetPeerCountsResponse, get_ips_after_timestamp, get_peer_counts, } from "./crawler/index";
|
|
13
|
-
import type {
|
|
13
|
+
import type { RpcCommonMessage } from "./common/index";
|
|
14
14
|
export { chia_common_service, TGetConnectionsRequest, TGetConnectionsResponse, TOpenConnectionRequest, TOpenConnectionResponse, TCloseConnectionRequest, TCloseConnectionResponse, TStopNodeResponse, TGetRoutesResponse, THealthzResponse, get_connections, open_connection, close_connection, stop_node, get_routes, healthz, } from "./common/index";
|
|
15
|
-
export declare type RpcFarmerMessage = TGetRewardTargetResponse | TGetSignagePointResponse | TGetSignagePointsResponse | TSetRewardTargetResponse | TGetHarvestersResponse | TGetHarvestersSummaryResponse | TGetHarvesterPlotsValidResponse | TGetHarvesterPlotsInvalidResponse | TGetHarvesterPlotsKeysMissingResponse | TGetHarvesterPlotsDuplicatesResponse | TSetPayoutInstructionsResponse | TGetPoolStateResponse | TGetPoolLinkResponse;
|
|
16
|
-
export declare type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockSpendsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByNamesResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetCoinRecordsByParentIdsResponse | TGetCoinRecordsByHintResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse | TGetPuzzleAndSolutionResponse | TGetFeeEstimateResponse;
|
|
17
|
-
export declare type RpcHarvesterMessage = TAddPlotDirectoryResponse | TDeletePlotResponse | TGetPlotDirectoriesResponse | TGetPlotsResponse | TRefreshPlotsResponse | TRemovePlotDirectoryResponse;
|
|
18
|
-
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TFarmBlockResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNetworkInfoResponseOfWallet | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPushTransactionsResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse;
|
|
19
|
-
export declare type RpcDataLayerMessage = TCreateDataStoreResponse | TGetOwnedStoresResponse | TBatchUpdateResponse | TGetValueResponse | TGetKeysResponse | TGetKeysValuesResponse | TGetAncestorsResponse | TGetRootResponse | TGetLocalRootResponse | TGetRootsResponse | TDeleteKeyResponseDL | TInsertResponse | TSubscribeResponse | TUnsubscribeResponse | TAddMirrorResponse | TDeleteMirrorResponse | TGetMirrorsResponse | TRemoveSubscriptionsResponse | TSubscriptionsResponse | TGetKvDiffResponse | TGetRootHistoryResponse | TAddMissingFilesResponse | TMakeOfferResponse | TTakeOfferResponseDL | TVerifyOfferResponse | TCancelOfferResponseDL;
|
|
20
|
-
export declare type RpcCrawlerMessage = TGetIpsAfterTimestampResponse | TGetPeerCountsResponse;
|
|
21
|
-
export declare type RpcCommonMessage = TGetConnectionsResponse | TOpenConnectionResponse | TCloseConnectionResponse | TStopNodeResponse | TGetRoutesResponse | THealthzResponse;
|
|
22
15
|
export declare type RpcMessage = RpcFarmerMessage | RpcFullNodeMessage | RpcHarvesterMessage | RpcWalletMessage | RpcDataLayerMessage | RpcCrawlerMessage | RpcCommonMessage;
|
package/api/rpc/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.add_key = exports.chia_wallet_service = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = exports.get_fee_estimate = exports.get_puzzle_and_solution = exports.push_tx = exports.get_unfinished_block_headers = exports.get_network_space = exports.get_network_info_of_full_node = exports.get_mempool_item_by_tx_id = exports.get_initial_freeze_period_of_full_node = exports.get_coin_records_by_hint = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hash = exports.get_coin_record_by_name = exports.get_coin_records_by_names = exports.get_recent_signage_point_or_eos = exports.get_block_count_metrics = exports.get_blocks = exports.get_blockchain_state = exports.get_block = exports.get_block_spends = exports.get_block_records = exports.get_block_record = exports.get_block_record_by_height = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = exports.get_additions_and_removals = exports.chia_full_node_service = exports.get_pool_login_link = exports.get_pool_state = exports.set_pool_payout_instructions = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_invalid = exports.get_harvester_plots_valid = exports.get_harvesters_summary = exports.get_harvesters = exports.set_reward_targets = exports.get_signage_points = exports.get_signage_point = exports.get_reward_targets = exports.chia_farmer_service = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = void 0;
|
|
4
|
+
exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = exports.did_get_recovery_list = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.delete_all_keys = exports.nft_transfer_bulk = exports.nft_set_did_bulk = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = void 0;
|
|
5
|
+
exports.chia_data_layer_service = exports.dl_delete_mirror = exports.dl_new_mirror = exports.dl_get_mirrors = exports.dl_owned_singletons = exports.dl_history = exports.dl_update_multiple = exports.dl_update_root = exports.dl_singletons_by_root = exports.dl_latest_singleton = exports.dl_stop_tracking = exports.dl_track_new = exports.create_new_dl = exports.take_offer = exports.send_transaction_multi = exports.send_transaction = exports.send_clawback_transaction = exports.rl_set_user_info = exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = exports.pw_join_pool = exports.push_transactions = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction = exports.get_transaction_count = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = exports.get_next_address = exports.get_network_info_of_wallet = exports.get_offer_summary = exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.get_timestamp_for_height = exports.farm_block = exports.nft_add_uri = exports.nft_get_info = exports.nft_transfer_nft = void 0;
|
|
6
|
+
exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = exports.batch_update = exports.get_owned_stores = exports.create_data_store = void 0;
|
|
7
7
|
var index_1 = require("./farmer/index");
|
|
8
8
|
Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
|
|
9
9
|
Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
|
|
@@ -82,6 +82,8 @@ Object.defineProperty(exports, "sign_message_by_address", { enumerable: true, ge
|
|
|
82
82
|
Object.defineProperty(exports, "sign_message_by_id", { enumerable: true, get: function () { return index_4.sign_message_by_id; } });
|
|
83
83
|
Object.defineProperty(exports, "nft_calculate_royalties", { enumerable: true, get: function () { return index_4.nft_calculate_royalties; } });
|
|
84
84
|
Object.defineProperty(exports, "nft_mint_bulk", { enumerable: true, get: function () { return index_4.nft_mint_bulk; } });
|
|
85
|
+
Object.defineProperty(exports, "nft_set_did_bulk", { enumerable: true, get: function () { return index_4.nft_set_did_bulk; } });
|
|
86
|
+
Object.defineProperty(exports, "nft_transfer_bulk", { enumerable: true, get: function () { return index_4.nft_transfer_bulk; } });
|
|
85
87
|
Object.defineProperty(exports, "delete_all_keys", { enumerable: true, get: function () { return index_4.delete_all_keys; } });
|
|
86
88
|
Object.defineProperty(exports, "delete_key", { enumerable: true, get: function () { return index_4.delete_key; } });
|
|
87
89
|
Object.defineProperty(exports, "did_set_wallet_name", { enumerable: true, get: function () { return index_4.did_set_wallet_name; } });
|
|
@@ -110,6 +112,7 @@ Object.defineProperty(exports, "nft_transfer_nft", { enumerable: true, get: func
|
|
|
110
112
|
Object.defineProperty(exports, "nft_get_info", { enumerable: true, get: function () { return index_4.nft_get_info; } });
|
|
111
113
|
Object.defineProperty(exports, "nft_add_uri", { enumerable: true, get: function () { return index_4.nft_add_uri; } });
|
|
112
114
|
Object.defineProperty(exports, "farm_block", { enumerable: true, get: function () { return index_4.farm_block; } });
|
|
115
|
+
Object.defineProperty(exports, "get_timestamp_for_height", { enumerable: true, get: function () { return index_4.get_timestamp_for_height; } });
|
|
113
116
|
Object.defineProperty(exports, "generate_mnemonic", { enumerable: true, get: function () { return index_4.generate_mnemonic; } });
|
|
114
117
|
Object.defineProperty(exports, "get_all_offers", { enumerable: true, get: function () { return index_4.get_all_offers; } });
|
|
115
118
|
Object.defineProperty(exports, "get_cat_list", { enumerable: true, get: function () { return index_4.get_cat_list; } });
|
|
@@ -182,6 +185,7 @@ Object.defineProperty(exports, "make_offer", { enumerable: true, get: function (
|
|
|
182
185
|
Object.defineProperty(exports, "take_offer_dl", { enumerable: true, get: function () { return index_5.take_offer; } });
|
|
183
186
|
Object.defineProperty(exports, "verify_offer", { enumerable: true, get: function () { return index_5.verify_offer; } });
|
|
184
187
|
Object.defineProperty(exports, "cancel_offer_dl", { enumerable: true, get: function () { return index_5.cancel_offer; } });
|
|
188
|
+
Object.defineProperty(exports, "get_sync_status_dl", { enumerable: true, get: function () { return index_5.get_sync_status; } });
|
|
185
189
|
var index_6 = require("./crawler/index");
|
|
186
190
|
Object.defineProperty(exports, "chia_crawler_service", { enumerable: true, get: function () { return index_6.chia_crawler_service; } });
|
|
187
191
|
Object.defineProperty(exports, "get_ips_after_timestamp", { enumerable: true, get: function () { return index_6.get_ips_after_timestamp; } });
|