chia-agent 10.1.0 → 11.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 +167 -47
- package/README.md +5 -5
- package/api/chia/data_layer/data_layer_util.d.ts +6 -0
- package/api/chia/types/blockchain_format/program.d.ts +0 -2
- package/api/chia/types/blockchain_format/serialized_program.d.ts +2 -0
- package/api/chia/types/blockchain_format/serialized_program.js +2 -0
- package/api/chia/types/coin_spend.d.ts +1 -1
- package/api/chia/types/full_block.d.ts +1 -1
- package/api/chia/types/mempool_item.d.ts +11 -2
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +2 -0
- package/api/chia/wallet/wallet_node.d.ts +10 -0
- package/api/chia/wallet/wallet_node.js +2 -0
- package/api/rpc/data_layer/index.d.ts +8 -3
- package/api/rpc/data_layer/index.js +8 -1
- package/api/rpc/full_node/index.d.ts +101 -9
- package/api/rpc/full_node/index.js +65 -1
- package/api/rpc/index.d.ts +3 -3
- package/api/rpc/index.js +19 -4
- package/api/rpc/wallet/index.d.ts +63 -11
- package/api/rpc/wallet/index.js +26 -5
- package/api/ws/farmer/index.d.ts +13 -3
- package/api/ws/farmer/index.js +32 -3
- package/api/ws/harvester/index.d.ts +14 -4
- package/api/ws/harvester/index.js +27 -1
- package/api/ws/index.d.ts +3 -3
- package/api/ws/index.js +10 -4
- package/api/ws/wallet/index.d.ts +33 -15
- package/api/ws/wallet/index.js +40 -11
- package/package.json +2 -2
|
@@ -2,10 +2,10 @@ import { FullBlock } from "../../chia/types/full_block";
|
|
|
2
2
|
import { BlockRecord } from "../../chia/consensus/block_record";
|
|
3
3
|
import { bool, float, int, Optional, str, uint128, uint32, uint64 } from "../../chia/types/_python_types_";
|
|
4
4
|
import { UnfinishedHeaderBlock } from "../../chia/types/unfinished_header_block";
|
|
5
|
-
import { CoinRecordBackwardCompatible } from "../../chia/types/coin_record";
|
|
5
|
+
import { CoinRecord, CoinRecordBackwardCompatible } from "../../chia/types/coin_record";
|
|
6
6
|
import { SpendBundle } from "../../chia/types/spend_bundle";
|
|
7
7
|
import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
|
|
8
|
-
import {
|
|
8
|
+
import { MempoolItemInJsonDict } from "../../chia/types/mempool_item";
|
|
9
9
|
import { TRPCAgent } from "../../../rpc";
|
|
10
10
|
import { EndOfSubSlotBundle } from "../../chia/types/end_of_slot_bundle";
|
|
11
11
|
import { SignagePoint } from "../../chia/full_node/signage_point";
|
|
@@ -13,7 +13,6 @@ import { CoinSpend } from "../../chia/types/coin_spend";
|
|
|
13
13
|
import { CLVMCost } from "../../chia/types/clvm_cost";
|
|
14
14
|
import { GetMessageType, ResType } from "../../types";
|
|
15
15
|
import { TDaemon } from "../../../daemon/index";
|
|
16
|
-
import { Mojos } from "../../chia/types/mojos";
|
|
17
16
|
export declare const chia_full_node_service = "chia_full_node";
|
|
18
17
|
export declare type chia_full_node_service = typeof chia_full_node_service;
|
|
19
18
|
export declare const get_blockchain_state_command = "get_blockchain_state";
|
|
@@ -34,7 +33,7 @@ export declare type TGetBlockchainStateResponse = {
|
|
|
34
33
|
space: uint128;
|
|
35
34
|
mempool_size: int;
|
|
36
35
|
mempool_cost: CLVMCost;
|
|
37
|
-
mempool_fees:
|
|
36
|
+
mempool_fees: int;
|
|
38
37
|
mempool_min_fees: {
|
|
39
38
|
cost_5000000: float;
|
|
40
39
|
};
|
|
@@ -295,7 +294,7 @@ export declare const get_all_mempool_items_command = "get_all_mempool_items";
|
|
|
295
294
|
export declare type get_all_mempool_items_command = typeof get_all_mempool_items_command;
|
|
296
295
|
export declare type TGetAllMempoolItemsRequest = {};
|
|
297
296
|
export declare type TGetAllMempoolItemsResponse = {
|
|
298
|
-
mempool_items: Record<string,
|
|
297
|
+
mempool_items: Record<string, MempoolItemInJsonDict>;
|
|
299
298
|
};
|
|
300
299
|
export declare type WsGetAllMempoolItemsMessage = GetMessageType<chia_full_node_service, get_all_mempool_items_command, TGetAllMempoolItemsResponse>;
|
|
301
300
|
export declare function get_all_mempool_items<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAllMempoolItemsResponse, WsGetAllMempoolItemsMessage>>;
|
|
@@ -306,7 +305,7 @@ export declare type TGetMempoolItemByTxIdRequest = {
|
|
|
306
305
|
include_pending?: bool;
|
|
307
306
|
};
|
|
308
307
|
export declare type TGetMempoolItemByTxIdResponse = {
|
|
309
|
-
mempool_item:
|
|
308
|
+
mempool_item: MempoolItemInJsonDict;
|
|
310
309
|
};
|
|
311
310
|
export declare type WsGetMempoolItemByTxIdMessage = GetMessageType<chia_full_node_service, get_mempool_item_by_tx_id_command, TGetMempoolItemByTxIdResponse>;
|
|
312
311
|
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>>;
|
|
@@ -324,7 +323,7 @@ export declare type TGetFeeEstimateResponse = {
|
|
|
324
323
|
target_times: int[];
|
|
325
324
|
current_fee_rate: uint64;
|
|
326
325
|
mempool_size: CLVMCost;
|
|
327
|
-
mempool_fees:
|
|
326
|
+
mempool_fees: int;
|
|
328
327
|
num_spends: int;
|
|
329
328
|
mempool_max_size: CLVMCost;
|
|
330
329
|
full_node_synced: bool;
|
|
@@ -338,5 +337,98 @@ export declare type TGetFeeEstimateResponse = {
|
|
|
338
337
|
};
|
|
339
338
|
export declare type WsGetFeeEstimateMessage = GetMessageType<chia_full_node_service, get_fee_estimate_command, TGetFeeEstimateResponse>;
|
|
340
339
|
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
|
|
342
|
-
export declare type
|
|
340
|
+
export declare const get_all_blocks_command = "get_all_blocks";
|
|
341
|
+
export declare type get_all_blocks_command = typeof get_all_blocks_command;
|
|
342
|
+
export declare type TGetAllBlocksResponse = {
|
|
343
|
+
blocks: FullBlock[];
|
|
344
|
+
success: bool;
|
|
345
|
+
};
|
|
346
|
+
export declare type WsGetAllBlocksMessage = GetMessageType<chia_full_node_service, get_all_blocks_command, TGetAllBlocksResponse>;
|
|
347
|
+
export declare function get_all_blocks<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAllBlocksResponse, WsGetAllBlocksMessage>>;
|
|
348
|
+
export declare const farm_block_command = "farm_block";
|
|
349
|
+
export declare type farm_block_command = typeof farm_block_command;
|
|
350
|
+
export declare type TFarmBlockRequest = {
|
|
351
|
+
address: str;
|
|
352
|
+
guarantee_tx_block?: bool;
|
|
353
|
+
blocks?: int;
|
|
354
|
+
};
|
|
355
|
+
export declare type TFarmBlockResponse = {
|
|
356
|
+
new_peak_height: int;
|
|
357
|
+
success: bool;
|
|
358
|
+
};
|
|
359
|
+
export declare type WsFarmBlockMessage = GetMessageType<chia_full_node_service, farm_block_command, TFarmBlockResponse>;
|
|
360
|
+
export declare function farm_block<T extends TRPCAgent | TDaemon>(agent: T, data: TFarmBlockRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TFarmBlockResponse, WsFarmBlockMessage>>;
|
|
361
|
+
export declare const set_auto_farming_command = "set_auto_farming";
|
|
362
|
+
export declare type set_auto_farming_command = typeof set_auto_farming_command;
|
|
363
|
+
export declare type TSetAutoFarmingRequest = {
|
|
364
|
+
auto_farm: bool;
|
|
365
|
+
};
|
|
366
|
+
export declare type TSetAutoFarmingResponse = {
|
|
367
|
+
auto_farm_enabled: bool;
|
|
368
|
+
success: bool;
|
|
369
|
+
};
|
|
370
|
+
export declare type WsSetAutoFarmingMessage = GetMessageType<chia_full_node_service, set_auto_farming_command, TSetAutoFarmingResponse>;
|
|
371
|
+
export declare function set_auto_farming<T extends TRPCAgent | TDaemon>(agent: T, data: TSetAutoFarmingRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSetAutoFarmingResponse, WsSetAutoFarmingMessage>>;
|
|
372
|
+
export declare const get_auto_farming_command = "get_auto_farming";
|
|
373
|
+
export declare type get_auto_farming_command = typeof get_auto_farming_command;
|
|
374
|
+
export declare type TGetAutoFarmingResponse = {
|
|
375
|
+
new_peak_height: uint64;
|
|
376
|
+
success: bool;
|
|
377
|
+
};
|
|
378
|
+
export declare type WsGetAutoFarmingMessage = GetMessageType<chia_full_node_service, get_auto_farming_command, TGetAutoFarmingResponse>;
|
|
379
|
+
export declare function get_auto_farming<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAutoFarmingResponse, WsGetAutoFarmingMessage>>;
|
|
380
|
+
export declare const get_farming_ph_command = "get_farming_ph";
|
|
381
|
+
export declare type get_farming_ph_command = typeof get_farming_ph_command;
|
|
382
|
+
export declare type TGetFarmingPhResponse = {
|
|
383
|
+
puzzle_hash: str;
|
|
384
|
+
success: bool;
|
|
385
|
+
};
|
|
386
|
+
export declare type WsGetFarmingPhMessage = GetMessageType<chia_full_node_service, get_farming_ph_command, TGetFarmingPhResponse>;
|
|
387
|
+
export declare function get_farming_ph<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetFarmingPhResponse, WsGetFarmingPhMessage>>;
|
|
388
|
+
export declare const get_all_coins_command = "get_all_coins";
|
|
389
|
+
export declare type get_all_coins_command = typeof get_all_coins_command;
|
|
390
|
+
export declare type TGetAllCoinsRequest = {
|
|
391
|
+
include_spent_coins?: bool;
|
|
392
|
+
};
|
|
393
|
+
export declare type TGetAllCoinsResponse = {
|
|
394
|
+
coin_records: CoinRecord[];
|
|
395
|
+
success: bool;
|
|
396
|
+
};
|
|
397
|
+
export declare type WsGetAllCoinsMessage = GetMessageType<chia_full_node_service, get_all_coins_command, TGetAllCoinsResponse>;
|
|
398
|
+
export declare function get_all_coins<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAllCoinsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAllCoinsResponse, WsGetAllCoinsMessage>>;
|
|
399
|
+
export declare const get_all_puzzle_hashes_command = "get_all_puzzle_hashes";
|
|
400
|
+
export declare type get_all_puzzle_hashes_command = typeof get_all_puzzle_hashes_command;
|
|
401
|
+
export declare type TGetAllPuzzleHashesResponse = {
|
|
402
|
+
puzzle_hashes: Record<bytes32, [uint128, int]>;
|
|
403
|
+
success: bool;
|
|
404
|
+
};
|
|
405
|
+
export declare type WsGetAllPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_all_puzzle_hashes_command, TGetAllPuzzleHashesResponse>;
|
|
406
|
+
export declare function get_all_puzzle_hashes<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAllPuzzleHashesResponse, WsGetAllPuzzleHashesMessage>>;
|
|
407
|
+
export declare const revert_blocks_command = "revert_blocks";
|
|
408
|
+
export declare type revert_blocks_command = typeof revert_blocks_command;
|
|
409
|
+
export declare type TRevertBlocksRequest = {
|
|
410
|
+
num_of_blocks?: int;
|
|
411
|
+
delete_all_blocks?: bool;
|
|
412
|
+
};
|
|
413
|
+
export declare type TRevertBlocksResponse = {
|
|
414
|
+
new_peak_height: int;
|
|
415
|
+
success: bool;
|
|
416
|
+
};
|
|
417
|
+
export declare type WsRevertBlocksMessage = GetMessageType<chia_full_node_service, revert_blocks_command, TRevertBlocksResponse>;
|
|
418
|
+
export declare function revert_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TRevertBlocksRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TRevertBlocksResponse, WsRevertBlocksMessage>>;
|
|
419
|
+
export declare const reorg_blocks_command = "reorg_blocks";
|
|
420
|
+
export declare type reorg_blocks_command = typeof reorg_blocks_command;
|
|
421
|
+
export declare type TReorgBlocksRequest = {
|
|
422
|
+
num_of_blocks_to_rev?: int;
|
|
423
|
+
num_of_new_blocks?: int;
|
|
424
|
+
revert_all_blocks?: bool;
|
|
425
|
+
random_seed?: str;
|
|
426
|
+
};
|
|
427
|
+
export declare type TReorgBlocksResponse = {
|
|
428
|
+
new_peak_height: int;
|
|
429
|
+
success: bool;
|
|
430
|
+
};
|
|
431
|
+
export declare type WsReorgBlocksMessage = GetMessageType<chia_full_node_service, reorg_blocks_command, TReorgBlocksResponse>;
|
|
432
|
+
export declare function reorg_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TReorgBlocksRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TReorgBlocksResponse, WsReorgBlocksMessage>>;
|
|
433
|
+
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 | TGetAllBlocksResponse | TFarmBlockResponse | TSetAutoFarmingResponse | TGetAutoFarmingResponse | TGetFarmingPhResponse | TGetAllCoinsResponse | TGetAllPuzzleHashesResponse | TRevertBlocksResponse | TReorgBlocksResponse;
|
|
434
|
+
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 | WsGetAllBlocksMessage | WsFarmBlockMessage | WsSetAutoFarmingMessage | WsGetAutoFarmingMessage | WsGetFarmingPhMessage | WsGetAllCoinsMessage | WsGetAllPuzzleHashesMessage | WsRevertBlocksMessage | WsReorgBlocksMessage;
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.get_mempool_item_by_tx_id_command = exports.get_all_mempool_items = exports.get_all_mempool_items_command = exports.get_all_mempool_tx_ids = exports.get_all_mempool_tx_ids_command = exports.get_puzzle_and_solution = exports.get_puzzle_and_solution_command = exports.push_tx = exports.push_tx_command = exports.get_coin_records_by_hint = exports.get_coin_records_by_hint_command = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_parent_ids_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_coin_record_by_name = exports.get_coin_record_by_name_command = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hashes_command = exports.get_coin_records_by_puzzle_hash = exports.get_coin_records_by_puzzle_hash_command = exports.get_recent_signage_point_or_eos = exports.get_recent_signage_point_or_eos_command = exports.get_network_info_of_full_node = exports.get_network_info_command_of_full_node = exports.get_initial_freeze_period_of_full_node = exports.get_initial_freeze_period_command_of_full_node = exports.get_additions_and_removals = exports.get_additions_and_removals_command = exports.get_network_space = exports.get_network_space_command = exports.get_unfinished_block_headers = exports.get_unfinished_block_headers_command = exports.get_block_spends = exports.get_block_spends_command = exports.get_block_records = exports.get_block_records_command = exports.get_block_record = exports.get_block_record_command = exports.get_block_record_by_height = exports.get_block_record_by_height_command = exports.get_block_count_metrics = exports.get_block_count_metrics_command = exports.get_blocks = exports.get_blocks_command = exports.get_block = exports.get_block_command = exports.get_blockchain_state = exports.get_blockchain_state_command = exports.chia_full_node_service = void 0;
|
|
13
|
-
exports.get_fee_estimate = exports.get_fee_estimate_command = exports.get_mempool_item_by_tx_id = void 0;
|
|
13
|
+
exports.reorg_blocks = exports.reorg_blocks_command = exports.revert_blocks = exports.revert_blocks_command = exports.get_all_puzzle_hashes = exports.get_all_puzzle_hashes_command = exports.get_all_coins = exports.get_all_coins_command = exports.get_farming_ph = exports.get_farming_ph_command = exports.get_auto_farming = exports.get_auto_farming_command = exports.set_auto_farming = exports.set_auto_farming_command = exports.farm_block = exports.farm_block_command = exports.get_all_blocks = exports.get_all_blocks_command = exports.get_fee_estimate = exports.get_fee_estimate_command = exports.get_mempool_item_by_tx_id = void 0;
|
|
14
14
|
exports.chia_full_node_service = "chia_full_node";
|
|
15
15
|
exports.get_blockchain_state_command = "get_blockchain_state";
|
|
16
16
|
function get_blockchain_state(agent) {
|
|
@@ -194,3 +194,67 @@ function get_fee_estimate(agent, data) {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
exports.get_fee_estimate = get_fee_estimate;
|
|
197
|
+
// simulator RPCs
|
|
198
|
+
exports.get_all_blocks_command = "get_all_blocks";
|
|
199
|
+
function get_all_blocks(agent) {
|
|
200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.get_all_blocks_command);
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
exports.get_all_blocks = get_all_blocks;
|
|
205
|
+
exports.farm_block_command = "farm_block";
|
|
206
|
+
function farm_block(agent, data) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.farm_block_command, data);
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
exports.farm_block = farm_block;
|
|
212
|
+
exports.set_auto_farming_command = "set_auto_farming";
|
|
213
|
+
function set_auto_farming(agent, data) {
|
|
214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
215
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.set_auto_farming_command, data);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
exports.set_auto_farming = set_auto_farming;
|
|
219
|
+
exports.get_auto_farming_command = "get_auto_farming";
|
|
220
|
+
function get_auto_farming(agent) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.get_auto_farming_command);
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
exports.get_auto_farming = get_auto_farming;
|
|
226
|
+
exports.get_farming_ph_command = "get_farming_ph";
|
|
227
|
+
function get_farming_ph(agent) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.get_farming_ph_command);
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
exports.get_farming_ph = get_farming_ph;
|
|
233
|
+
exports.get_all_coins_command = "get_all_coins";
|
|
234
|
+
function get_all_coins(agent, data) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.get_all_coins_command, data);
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
exports.get_all_coins = get_all_coins;
|
|
240
|
+
exports.get_all_puzzle_hashes_command = "get_all_puzzle_hashes";
|
|
241
|
+
function get_all_puzzle_hashes(agent) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.get_all_puzzle_hashes_command);
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
exports.get_all_puzzle_hashes = get_all_puzzle_hashes;
|
|
247
|
+
exports.revert_blocks_command = "revert_blocks";
|
|
248
|
+
function revert_blocks(agent, data) {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.revert_blocks_command, data);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
exports.revert_blocks = revert_blocks;
|
|
254
|
+
exports.reorg_blocks_command = "reorg_blocks";
|
|
255
|
+
function reorg_blocks(agent, data) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
return agent.sendMessage(exports.chia_full_node_service, exports.reorg_blocks_command, data);
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
exports.reorg_blocks = reorg_blocks;
|
package/api/rpc/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { RpcFarmerMessage } from "./farmer/index";
|
|
2
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
3
|
import type { RpcFullNodeMessage } from "./full_node/index";
|
|
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";
|
|
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, TGetAllBlocksResponse, get_all_blocks, TFarmBlockRequest as TFarmBlockFullNodeRequest, TFarmBlockResponse as TFarmBlockFullNodeResponse, farm_block as farm_block_fullnode, TSetAutoFarmingRequest, TSetAutoFarmingResponse, set_auto_farming, TGetAutoFarmingResponse, get_auto_farming, TGetFarmingPhResponse, get_farming_ph, TGetAllCoinsRequest, TGetAllCoinsResponse, get_all_coins, TGetAllPuzzleHashesResponse, get_all_puzzle_hashes, TRevertBlocksRequest, TRevertBlocksResponse, revert_blocks, TReorgBlocksRequest, TReorgBlocksResponse, reorg_blocks } from "./full_node/index";
|
|
5
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
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";
|
|
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, TVerifySignatureRequest, TVerifySignatureResponse, verify_signature, TGetTransactionMemoRequest, TGetTransactionMemoResponse, get_transaction_memo, 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, TSetWalletResyncOnStartupRequest, TSetWalletResyncOnStartupResponse, set_wallet_resync_on_startup, 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, TNftCountNftsRequest, TNftCountNftsResponse, nft_count_nfts, 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
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";
|
|
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, TCheckPluginsResponse, check_plugins, } from "./data_layer/index";
|
|
11
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
13
|
import type { RpcCommonMessage } from "./common/index";
|
package/api/rpc/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
3
|
+
exports.reorg_blocks = exports.revert_blocks = exports.get_all_puzzle_hashes = exports.get_all_coins = exports.get_farming_ph = exports.get_auto_farming = exports.set_auto_farming = exports.farm_block_fullnode = exports.get_all_blocks = 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.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.set_wallet_resync_on_startup = exports.delete_all_keys = exports.nft_transfer_bulk = exports.nft_set_did_bulk = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.get_transaction_memo = exports.verify_signature = 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 = 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 = void 0;
|
|
5
|
+
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 = 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_count_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 = void 0;
|
|
6
|
+
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.check_plugins = 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 = 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 = void 0;
|
|
7
|
+
exports.healthz = void 0;
|
|
7
8
|
var index_1 = require("./farmer/index");
|
|
8
9
|
Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
|
|
9
10
|
Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
|
|
@@ -47,6 +48,15 @@ Object.defineProperty(exports, "get_unfinished_block_headers", { enumerable: tru
|
|
|
47
48
|
Object.defineProperty(exports, "push_tx", { enumerable: true, get: function () { return index_2.push_tx; } });
|
|
48
49
|
Object.defineProperty(exports, "get_puzzle_and_solution", { enumerable: true, get: function () { return index_2.get_puzzle_and_solution; } });
|
|
49
50
|
Object.defineProperty(exports, "get_fee_estimate", { enumerable: true, get: function () { return index_2.get_fee_estimate; } });
|
|
51
|
+
Object.defineProperty(exports, "get_all_blocks", { enumerable: true, get: function () { return index_2.get_all_blocks; } });
|
|
52
|
+
Object.defineProperty(exports, "farm_block_fullnode", { enumerable: true, get: function () { return index_2.farm_block; } });
|
|
53
|
+
Object.defineProperty(exports, "set_auto_farming", { enumerable: true, get: function () { return index_2.set_auto_farming; } });
|
|
54
|
+
Object.defineProperty(exports, "get_auto_farming", { enumerable: true, get: function () { return index_2.get_auto_farming; } });
|
|
55
|
+
Object.defineProperty(exports, "get_farming_ph", { enumerable: true, get: function () { return index_2.get_farming_ph; } });
|
|
56
|
+
Object.defineProperty(exports, "get_all_coins", { enumerable: true, get: function () { return index_2.get_all_coins; } });
|
|
57
|
+
Object.defineProperty(exports, "get_all_puzzle_hashes", { enumerable: true, get: function () { return index_2.get_all_puzzle_hashes; } });
|
|
58
|
+
Object.defineProperty(exports, "revert_blocks", { enumerable: true, get: function () { return index_2.revert_blocks; } });
|
|
59
|
+
Object.defineProperty(exports, "reorg_blocks", { enumerable: true, get: function () { return index_2.reorg_blocks; } });
|
|
50
60
|
var index_3 = require("./harvester/index");
|
|
51
61
|
Object.defineProperty(exports, "chia_harvester_service", { enumerable: true, get: function () { return index_3.chia_harvester_service; } });
|
|
52
62
|
Object.defineProperty(exports, "add_plot_directory", { enumerable: true, get: function () { return index_3.add_plot_directory; } });
|
|
@@ -80,11 +90,14 @@ Object.defineProperty(exports, "delete_notifications", { enumerable: true, get:
|
|
|
80
90
|
Object.defineProperty(exports, "send_notification", { enumerable: true, get: function () { return index_4.send_notification; } });
|
|
81
91
|
Object.defineProperty(exports, "sign_message_by_address", { enumerable: true, get: function () { return index_4.sign_message_by_address; } });
|
|
82
92
|
Object.defineProperty(exports, "sign_message_by_id", { enumerable: true, get: function () { return index_4.sign_message_by_id; } });
|
|
93
|
+
Object.defineProperty(exports, "verify_signature", { enumerable: true, get: function () { return index_4.verify_signature; } });
|
|
94
|
+
Object.defineProperty(exports, "get_transaction_memo", { enumerable: true, get: function () { return index_4.get_transaction_memo; } });
|
|
83
95
|
Object.defineProperty(exports, "nft_calculate_royalties", { enumerable: true, get: function () { return index_4.nft_calculate_royalties; } });
|
|
84
96
|
Object.defineProperty(exports, "nft_mint_bulk", { enumerable: true, get: function () { return index_4.nft_mint_bulk; } });
|
|
85
97
|
Object.defineProperty(exports, "nft_set_did_bulk", { enumerable: true, get: function () { return index_4.nft_set_did_bulk; } });
|
|
86
98
|
Object.defineProperty(exports, "nft_transfer_bulk", { enumerable: true, get: function () { return index_4.nft_transfer_bulk; } });
|
|
87
99
|
Object.defineProperty(exports, "delete_all_keys", { enumerable: true, get: function () { return index_4.delete_all_keys; } });
|
|
100
|
+
Object.defineProperty(exports, "set_wallet_resync_on_startup", { enumerable: true, get: function () { return index_4.set_wallet_resync_on_startup; } });
|
|
88
101
|
Object.defineProperty(exports, "delete_key", { enumerable: true, get: function () { return index_4.delete_key; } });
|
|
89
102
|
Object.defineProperty(exports, "did_set_wallet_name", { enumerable: true, get: function () { return index_4.did_set_wallet_name; } });
|
|
90
103
|
Object.defineProperty(exports, "did_get_wallet_name", { enumerable: true, get: function () { return index_4.did_get_wallet_name; } });
|
|
@@ -102,6 +115,7 @@ Object.defineProperty(exports, "did_spend", { enumerable: true, get: function ()
|
|
|
102
115
|
Object.defineProperty(exports, "did_update_recovery_ids", { enumerable: true, get: function () { return index_4.did_update_recovery_ids; } });
|
|
103
116
|
Object.defineProperty(exports, "did_update_metadata", { enumerable: true, get: function () { return index_4.did_update_metadata; } });
|
|
104
117
|
Object.defineProperty(exports, "nft_mint_nft", { enumerable: true, get: function () { return index_4.nft_mint_nft; } });
|
|
118
|
+
Object.defineProperty(exports, "nft_count_nfts", { enumerable: true, get: function () { return index_4.nft_count_nfts; } });
|
|
105
119
|
Object.defineProperty(exports, "nft_get_nfts", { enumerable: true, get: function () { return index_4.nft_get_nfts; } });
|
|
106
120
|
Object.defineProperty(exports, "nft_set_nft_did", { enumerable: true, get: function () { return index_4.nft_set_nft_did; } });
|
|
107
121
|
Object.defineProperty(exports, "nft_get_by_did", { enumerable: true, get: function () { return index_4.nft_get_by_did; } });
|
|
@@ -186,6 +200,7 @@ Object.defineProperty(exports, "take_offer_dl", { enumerable: true, get: functio
|
|
|
186
200
|
Object.defineProperty(exports, "verify_offer", { enumerable: true, get: function () { return index_5.verify_offer; } });
|
|
187
201
|
Object.defineProperty(exports, "cancel_offer_dl", { enumerable: true, get: function () { return index_5.cancel_offer; } });
|
|
188
202
|
Object.defineProperty(exports, "get_sync_status_dl", { enumerable: true, get: function () { return index_5.get_sync_status; } });
|
|
203
|
+
Object.defineProperty(exports, "check_plugins", { enumerable: true, get: function () { return index_5.check_plugins; } });
|
|
189
204
|
var index_6 = require("./crawler/index");
|
|
190
205
|
Object.defineProperty(exports, "chia_crawler_service", { enumerable: true, get: function () { return index_6.chia_crawler_service; } });
|
|
191
206
|
Object.defineProperty(exports, "get_ips_after_timestamp", { enumerable: true, get: function () { return index_6.get_ips_after_timestamp; } });
|