chia-agent 10.0.0 → 11.0.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 +189 -26
- package/README.md +5 -5
- 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 +10 -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/chia/wallet/nft_wallet/nft_info.d.ts +1 -0
- package/api/rpc/common/index.d.ts +7 -2
- package/api/rpc/full_node/index.d.ts +109 -7
- package/api/rpc/full_node/index.js +65 -1
- package/api/rpc/index.d.ts +2 -2
- package/api/rpc/index.js +20 -4
- package/api/rpc/wallet/index.d.ts +96 -13
- package/api/rpc/wallet/index.js +40 -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 +1 -1
|
@@ -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,11 +1,11 @@
|
|
|
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, 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";
|
|
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
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
11
|
import type { RpcCrawlerMessage } from "./crawler/index";
|
package/api/rpc/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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.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 = void 0;
|
|
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.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 = 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
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; } });
|
|
@@ -47,6 +47,15 @@ Object.defineProperty(exports, "get_unfinished_block_headers", { enumerable: tru
|
|
|
47
47
|
Object.defineProperty(exports, "push_tx", { enumerable: true, get: function () { return index_2.push_tx; } });
|
|
48
48
|
Object.defineProperty(exports, "get_puzzle_and_solution", { enumerable: true, get: function () { return index_2.get_puzzle_and_solution; } });
|
|
49
49
|
Object.defineProperty(exports, "get_fee_estimate", { enumerable: true, get: function () { return index_2.get_fee_estimate; } });
|
|
50
|
+
Object.defineProperty(exports, "get_all_blocks", { enumerable: true, get: function () { return index_2.get_all_blocks; } });
|
|
51
|
+
Object.defineProperty(exports, "farm_block_fullnode", { enumerable: true, get: function () { return index_2.farm_block; } });
|
|
52
|
+
Object.defineProperty(exports, "set_auto_farming", { enumerable: true, get: function () { return index_2.set_auto_farming; } });
|
|
53
|
+
Object.defineProperty(exports, "get_auto_farming", { enumerable: true, get: function () { return index_2.get_auto_farming; } });
|
|
54
|
+
Object.defineProperty(exports, "get_farming_ph", { enumerable: true, get: function () { return index_2.get_farming_ph; } });
|
|
55
|
+
Object.defineProperty(exports, "get_all_coins", { enumerable: true, get: function () { return index_2.get_all_coins; } });
|
|
56
|
+
Object.defineProperty(exports, "get_all_puzzle_hashes", { enumerable: true, get: function () { return index_2.get_all_puzzle_hashes; } });
|
|
57
|
+
Object.defineProperty(exports, "revert_blocks", { enumerable: true, get: function () { return index_2.revert_blocks; } });
|
|
58
|
+
Object.defineProperty(exports, "reorg_blocks", { enumerable: true, get: function () { return index_2.reorg_blocks; } });
|
|
50
59
|
var index_3 = require("./harvester/index");
|
|
51
60
|
Object.defineProperty(exports, "chia_harvester_service", { enumerable: true, get: function () { return index_3.chia_harvester_service; } });
|
|
52
61
|
Object.defineProperty(exports, "add_plot_directory", { enumerable: true, get: function () { return index_3.add_plot_directory; } });
|
|
@@ -80,9 +89,14 @@ Object.defineProperty(exports, "delete_notifications", { enumerable: true, get:
|
|
|
80
89
|
Object.defineProperty(exports, "send_notification", { enumerable: true, get: function () { return index_4.send_notification; } });
|
|
81
90
|
Object.defineProperty(exports, "sign_message_by_address", { enumerable: true, get: function () { return index_4.sign_message_by_address; } });
|
|
82
91
|
Object.defineProperty(exports, "sign_message_by_id", { enumerable: true, get: function () { return index_4.sign_message_by_id; } });
|
|
92
|
+
Object.defineProperty(exports, "verify_signature", { enumerable: true, get: function () { return index_4.verify_signature; } });
|
|
93
|
+
Object.defineProperty(exports, "get_transaction_memo", { enumerable: true, get: function () { return index_4.get_transaction_memo; } });
|
|
83
94
|
Object.defineProperty(exports, "nft_calculate_royalties", { enumerable: true, get: function () { return index_4.nft_calculate_royalties; } });
|
|
84
95
|
Object.defineProperty(exports, "nft_mint_bulk", { enumerable: true, get: function () { return index_4.nft_mint_bulk; } });
|
|
96
|
+
Object.defineProperty(exports, "nft_set_did_bulk", { enumerable: true, get: function () { return index_4.nft_set_did_bulk; } });
|
|
97
|
+
Object.defineProperty(exports, "nft_transfer_bulk", { enumerable: true, get: function () { return index_4.nft_transfer_bulk; } });
|
|
85
98
|
Object.defineProperty(exports, "delete_all_keys", { enumerable: true, get: function () { return index_4.delete_all_keys; } });
|
|
99
|
+
Object.defineProperty(exports, "set_wallet_resync_on_startup", { enumerable: true, get: function () { return index_4.set_wallet_resync_on_startup; } });
|
|
86
100
|
Object.defineProperty(exports, "delete_key", { enumerable: true, get: function () { return index_4.delete_key; } });
|
|
87
101
|
Object.defineProperty(exports, "did_set_wallet_name", { enumerable: true, get: function () { return index_4.did_set_wallet_name; } });
|
|
88
102
|
Object.defineProperty(exports, "did_get_wallet_name", { enumerable: true, get: function () { return index_4.did_get_wallet_name; } });
|
|
@@ -100,6 +114,7 @@ Object.defineProperty(exports, "did_spend", { enumerable: true, get: function ()
|
|
|
100
114
|
Object.defineProperty(exports, "did_update_recovery_ids", { enumerable: true, get: function () { return index_4.did_update_recovery_ids; } });
|
|
101
115
|
Object.defineProperty(exports, "did_update_metadata", { enumerable: true, get: function () { return index_4.did_update_metadata; } });
|
|
102
116
|
Object.defineProperty(exports, "nft_mint_nft", { enumerable: true, get: function () { return index_4.nft_mint_nft; } });
|
|
117
|
+
Object.defineProperty(exports, "nft_count_nfts", { enumerable: true, get: function () { return index_4.nft_count_nfts; } });
|
|
103
118
|
Object.defineProperty(exports, "nft_get_nfts", { enumerable: true, get: function () { return index_4.nft_get_nfts; } });
|
|
104
119
|
Object.defineProperty(exports, "nft_set_nft_did", { enumerable: true, get: function () { return index_4.nft_set_nft_did; } });
|
|
105
120
|
Object.defineProperty(exports, "nft_get_by_did", { enumerable: true, get: function () { return index_4.nft_get_by_did; } });
|
|
@@ -110,6 +125,7 @@ Object.defineProperty(exports, "nft_transfer_nft", { enumerable: true, get: func
|
|
|
110
125
|
Object.defineProperty(exports, "nft_get_info", { enumerable: true, get: function () { return index_4.nft_get_info; } });
|
|
111
126
|
Object.defineProperty(exports, "nft_add_uri", { enumerable: true, get: function () { return index_4.nft_add_uri; } });
|
|
112
127
|
Object.defineProperty(exports, "farm_block", { enumerable: true, get: function () { return index_4.farm_block; } });
|
|
128
|
+
Object.defineProperty(exports, "get_timestamp_for_height", { enumerable: true, get: function () { return index_4.get_timestamp_for_height; } });
|
|
113
129
|
Object.defineProperty(exports, "generate_mnemonic", { enumerable: true, get: function () { return index_4.generate_mnemonic; } });
|
|
114
130
|
Object.defineProperty(exports, "get_all_offers", { enumerable: true, get: function () { return index_4.get_all_offers; } });
|
|
115
131
|
Object.defineProperty(exports, "get_cat_list", { enumerable: true, get: function () { return index_4.get_cat_list; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletInfo } from "../../chia/wallet/wallet_info";
|
|
2
2
|
import { Coin } from "../../chia/types/blockchain_format/coin";
|
|
3
|
-
import { bool, bytes, False, int, Optional, str, True, uint128, uint16, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
3
|
+
import { bool, bytes, False, int, None, Optional, str, True, uint128, uint16, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
4
4
|
import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
|
|
5
5
|
import { TransactionRecord, TransactionRecordConvenience } from "../../chia/wallet/transaction_record";
|
|
6
6
|
import { SpendBundle } from "../../chia/types/spend_bundle";
|
|
@@ -15,6 +15,7 @@ import { TPushTxResponseOfWallet } from "../index";
|
|
|
15
15
|
import { GetMessageType, ResType } from "../../types";
|
|
16
16
|
import { TDaemon } from "../../../daemon/index";
|
|
17
17
|
import { CoinRecord } from "../../chia/types/coin_record";
|
|
18
|
+
import { SigningMode } from "../../chia/types/signing_mode";
|
|
18
19
|
export declare const chia_wallet_service = "chia_wallet";
|
|
19
20
|
export declare type chia_wallet_service = typeof chia_wallet_service;
|
|
20
21
|
export declare const log_in_command = "log_in";
|
|
@@ -122,6 +123,16 @@ export declare type TDeleteAllKeysResponse = {} | {
|
|
|
122
123
|
};
|
|
123
124
|
export declare type WsDeleteAllKeysMessage = GetMessageType<chia_wallet_service, delete_all_keys_command, TDeleteAllKeysResponse>;
|
|
124
125
|
export declare function delete_all_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDeleteAllKeysResponse, WsDeleteAllKeysMessage>>;
|
|
126
|
+
export declare const set_wallet_resync_on_startup_command = "set_wallet_resync_on_startup";
|
|
127
|
+
export declare type set_wallet_resync_on_startup_command = typeof set_wallet_resync_on_startup_command;
|
|
128
|
+
export declare type TSetWalletResyncOnStartupRequest = {
|
|
129
|
+
enable?: bool;
|
|
130
|
+
};
|
|
131
|
+
export declare type TSetWalletResyncOnStartupResponse = {
|
|
132
|
+
success: True;
|
|
133
|
+
};
|
|
134
|
+
export declare type WsSetWalletResyncOnStartupMessage = GetMessageType<chia_wallet_service, set_wallet_resync_on_startup_command, TSetWalletResyncOnStartupResponse>;
|
|
135
|
+
export declare function set_wallet_resync_on_startup<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSetWalletResyncOnStartupResponse, WsSetWalletResyncOnStartupMessage>>;
|
|
125
136
|
export declare const get_sync_status_command = "get_sync_status";
|
|
126
137
|
export declare type get_sync_status_command = typeof get_sync_status_command;
|
|
127
138
|
export declare type TGetSyncStatusRequest = {};
|
|
@@ -164,6 +175,13 @@ export declare type TFarmBlockRequest = {
|
|
|
164
175
|
export declare type TFarmBlockResponse = {};
|
|
165
176
|
export declare type WsFarmBlockMessage = GetMessageType<chia_wallet_service, farm_block_command, TFarmBlockResponse>;
|
|
166
177
|
export declare function farm_block<T extends TRPCAgent | TDaemon>(agent: T, data: TFarmBlockRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TFarmBlockResponse, WsFarmBlockMessage>>;
|
|
178
|
+
export declare const get_timestamp_for_height_command = "get_timestamp_for_height";
|
|
179
|
+
export declare type get_timestamp_for_height_command = typeof get_timestamp_for_height_command;
|
|
180
|
+
export declare type TGetTimestampForHeightResponse = {
|
|
181
|
+
timestamp: uint64;
|
|
182
|
+
};
|
|
183
|
+
export declare type WsGetTimestampForHeightMessage = GetMessageType<chia_wallet_service, get_timestamp_for_height_command, TGetTimestampForHeightResponse>;
|
|
184
|
+
export declare function get_timestamp_for_height<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTimestampForHeightResponse, WsGetTimestampForHeightMessage>>;
|
|
167
185
|
export declare const get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
168
186
|
export declare type get_initial_freeze_period_command_of_wallet = typeof get_initial_freeze_period_command_of_wallet;
|
|
169
187
|
export declare type TGetInitialFreezePeriodRequestOfWallet = {};
|
|
@@ -384,6 +402,7 @@ export declare type TSendTransactionRequest = {
|
|
|
384
402
|
max_coin_amount?: uint64;
|
|
385
403
|
exclude_coin_amounts?: uint64[];
|
|
386
404
|
exclude_coin_ids?: str[];
|
|
405
|
+
reuse_puzhash?: bool;
|
|
387
406
|
};
|
|
388
407
|
export declare type TSendTransactionResponse = {
|
|
389
408
|
transaction: TransactionRecordConvenience;
|
|
@@ -564,6 +583,7 @@ export declare type TGetNotificationsResponse = {
|
|
|
564
583
|
id: str;
|
|
565
584
|
message: str;
|
|
566
585
|
amount: uint64;
|
|
586
|
+
height: uint32;
|
|
567
587
|
}>;
|
|
568
588
|
};
|
|
569
589
|
export declare type WsGetNotificationsMessage = GetMessageType<chia_wallet_service, get_notifications_command, TGetNotificationsResponse>;
|
|
@@ -592,6 +612,8 @@ export declare function send_notification<T extends TRPCAgent | TDaemon>(agent:
|
|
|
592
612
|
export declare const verify_signature_command = "verify_signature";
|
|
593
613
|
export declare type verify_signature_command = typeof verify_signature_command;
|
|
594
614
|
export declare type TVerifySignatureRequest = {
|
|
615
|
+
message: str;
|
|
616
|
+
signing_mode?: SigningMode;
|
|
595
617
|
pubkey: str;
|
|
596
618
|
signature: str;
|
|
597
619
|
address?: str;
|
|
@@ -604,16 +626,30 @@ export declare type TVerifySignatureResponse = {
|
|
|
604
626
|
};
|
|
605
627
|
export declare type WsVerifySignatureMessage = GetMessageType<chia_wallet_service, verify_signature_command, TVerifySignatureResponse>;
|
|
606
628
|
export declare function verify_signature<T extends TRPCAgent | TDaemon>(agent: T, data: TVerifySignatureRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVerifySignatureResponse, WsVerifySignatureMessage>>;
|
|
629
|
+
export declare const get_transaction_memo_command = "get_transaction_memo";
|
|
630
|
+
export declare type get_transaction_memo_command = typeof get_transaction_memo_command;
|
|
631
|
+
export declare type TGetTransactionMemoRequest = {
|
|
632
|
+
transaction_id: str;
|
|
633
|
+
};
|
|
634
|
+
export declare type TGetTransactionMemoResponse = {
|
|
635
|
+
[transaction_id: string]: {
|
|
636
|
+
[coin_id: string]: string[];
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
export declare type WsGetTransactionMemoMessage = GetMessageType<chia_wallet_service, get_transaction_memo_command, TGetTransactionMemoResponse>;
|
|
640
|
+
export declare function get_transaction_memo<T extends TRPCAgent | TDaemon>(agent: T, data: TGetTransactionMemoRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTransactionMemoResponse, WsGetTransactionMemoMessage>>;
|
|
607
641
|
export declare const sign_message_by_address_command = "sign_message_by_address";
|
|
608
642
|
export declare type sign_message_by_address_command = typeof sign_message_by_address_command;
|
|
609
643
|
export declare type TSignMessageByAddressRequest = {
|
|
610
644
|
address: str;
|
|
611
645
|
message: str;
|
|
646
|
+
is_hex?: bool;
|
|
612
647
|
};
|
|
613
648
|
export declare type TSignMessageByAddressResponse = {
|
|
614
649
|
success: True;
|
|
615
650
|
pubkey: str;
|
|
616
651
|
signature: str;
|
|
652
|
+
signing_mode: SigningMode;
|
|
617
653
|
};
|
|
618
654
|
export declare type WsSignMessageByAddressMessage = GetMessageType<chia_wallet_service, sign_message_by_address_command, TSignMessageByAddressResponse>;
|
|
619
655
|
export declare function sign_message_by_address<T extends TRPCAgent | TDaemon>(agent: T, data: TSignMessageByAddressRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSignMessageByAddressResponse, WsSignMessageByAddressMessage>>;
|
|
@@ -622,6 +658,7 @@ export declare type sign_message_by_id_command = typeof sign_message_by_id_comma
|
|
|
622
658
|
export declare type TSignMessageByIdRequest = {
|
|
623
659
|
id: str;
|
|
624
660
|
message: str;
|
|
661
|
+
is_hex?: bool;
|
|
625
662
|
};
|
|
626
663
|
export declare type TSignMessageByIdResponse = {
|
|
627
664
|
success: False;
|
|
@@ -630,7 +667,8 @@ export declare type TSignMessageByIdResponse = {
|
|
|
630
667
|
success: True;
|
|
631
668
|
pubkey: str;
|
|
632
669
|
signature: str;
|
|
633
|
-
latest_coin_id: str;
|
|
670
|
+
latest_coin_id: str | None;
|
|
671
|
+
signing_mode: SigningMode;
|
|
634
672
|
};
|
|
635
673
|
export declare type WsSignMessageByIdMessage = GetMessageType<chia_wallet_service, sign_message_by_id_command, TSignMessageByIdResponse>;
|
|
636
674
|
export declare function sign_message_by_id<T extends TRPCAgent | TDaemon>(agent: T, data: TSignMessageByIdRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSignMessageByIdResponse, WsSignMessageByIdMessage>>;
|
|
@@ -695,10 +733,12 @@ export declare type TCatSpendRequest = {
|
|
|
695
733
|
amount: uint64;
|
|
696
734
|
inner_address: str;
|
|
697
735
|
memos?: str[];
|
|
736
|
+
coins?: Coin[];
|
|
698
737
|
min_coin_amount?: uint64;
|
|
699
738
|
max_coin_amount?: uint64;
|
|
700
739
|
exclude_coin_amounts?: uint64[];
|
|
701
740
|
exclude_coin_ids?: str[];
|
|
741
|
+
reuse_puzhash?: bool;
|
|
702
742
|
};
|
|
703
743
|
export declare type TCatSpendResponse = {
|
|
704
744
|
transaction: TransactionRecordConvenience;
|
|
@@ -727,6 +767,7 @@ export declare type TCreateOfferForIdsRequest = {
|
|
|
727
767
|
min_coin_amount?: uint64;
|
|
728
768
|
max_coin_amount?: uint64;
|
|
729
769
|
solver?: Record<str, any>;
|
|
770
|
+
reuse_puzhash?: bool;
|
|
730
771
|
};
|
|
731
772
|
export declare type TCreateOfferForIdsResponse = {
|
|
732
773
|
offer: str;
|
|
@@ -747,6 +788,7 @@ export declare type TGetOfferSummaryResponse = {
|
|
|
747
788
|
fees: int;
|
|
748
789
|
infos: TDriverDict;
|
|
749
790
|
};
|
|
791
|
+
id: bytes32;
|
|
750
792
|
};
|
|
751
793
|
export declare type WsGetOfferSummaryMessage = GetMessageType<chia_wallet_service, get_offer_summary_command, TGetOfferSummaryResponse>;
|
|
752
794
|
export declare function get_offer_summary<T extends TRPCAgent | TDaemon>(agent: T, data: TGetOfferSummaryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetOfferSummaryResponse, WsGetOfferSummaryMessage>>;
|
|
@@ -757,6 +799,7 @@ export declare type TCheckOfferValidityRequest = {
|
|
|
757
799
|
};
|
|
758
800
|
export declare type TCheckOfferValidityResponse = {
|
|
759
801
|
valid: bool;
|
|
802
|
+
id: bytes32;
|
|
760
803
|
};
|
|
761
804
|
export declare type WsCheckOfferValidityMessage = GetMessageType<chia_wallet_service, check_offer_validity_command, TCheckOfferValidityResponse>;
|
|
762
805
|
export declare function check_offer_validity<T extends TRPCAgent | TDaemon>(agent: T, data: TCheckOfferValidityRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCheckOfferValidityResponse, WsCheckOfferValidityMessage>>;
|
|
@@ -768,6 +811,7 @@ export declare type TTakeOfferRequest = {
|
|
|
768
811
|
min_coin_amount?: uint64;
|
|
769
812
|
max_coin_amount?: uint64;
|
|
770
813
|
solver?: Record<str, any>;
|
|
814
|
+
reuse_puzhash?: bool;
|
|
771
815
|
};
|
|
772
816
|
export declare type TTakeOfferResponse = {
|
|
773
817
|
trade_record: TradeRecordConvenience;
|
|
@@ -870,6 +914,7 @@ export declare type TDidUpdateRecoveryIdsRequest = {
|
|
|
870
914
|
wallet_id: uint32;
|
|
871
915
|
new_list: str[];
|
|
872
916
|
num_verifications_required?: uint64;
|
|
917
|
+
reuse_puzhash?: bool;
|
|
873
918
|
};
|
|
874
919
|
export declare type TDidUpdateRecoveryIdsResponse = {
|
|
875
920
|
success: bool;
|
|
@@ -882,6 +927,7 @@ export declare type TDidUpdateMetadataRequest = {
|
|
|
882
927
|
wallet_id: uint32;
|
|
883
928
|
metadata?: Record<str, str>;
|
|
884
929
|
fee?: uint64;
|
|
930
|
+
reuse_puzhash?: bool;
|
|
885
931
|
};
|
|
886
932
|
export declare type TDidUpdateMetadataResponse = {
|
|
887
933
|
success: True;
|
|
@@ -1037,9 +1083,6 @@ export declare type TDidMessageSpendRequest = {
|
|
|
1037
1083
|
puzzle_announcements: str[];
|
|
1038
1084
|
};
|
|
1039
1085
|
export declare type TDidMessageSpendResponse = {
|
|
1040
|
-
success: False;
|
|
1041
|
-
error: str;
|
|
1042
|
-
} | {
|
|
1043
1086
|
success: True;
|
|
1044
1087
|
spend_bundle: SpendBundle;
|
|
1045
1088
|
};
|
|
@@ -1064,6 +1107,7 @@ export declare type TDidGetInfoResponse = {
|
|
|
1064
1107
|
metadata: Record<str, str>;
|
|
1065
1108
|
launcher_id: str;
|
|
1066
1109
|
full_puzzle: str;
|
|
1110
|
+
solution: any;
|
|
1067
1111
|
hints: str[];
|
|
1068
1112
|
};
|
|
1069
1113
|
export declare type WsDidGetInfoMessage = GetMessageType<chia_wallet_service, did_get_info_command, TDidGetInfoResponse>;
|
|
@@ -1089,6 +1133,7 @@ export declare type TDidTransferDidRequest = {
|
|
|
1089
1133
|
inner_address: str;
|
|
1090
1134
|
fee?: uint64;
|
|
1091
1135
|
with_recovery_info?: bool;
|
|
1136
|
+
reuse_puzhash?: bool;
|
|
1092
1137
|
};
|
|
1093
1138
|
export declare type TDidTransferDidResponse = {
|
|
1094
1139
|
success: True;
|
|
@@ -1114,6 +1159,7 @@ export declare type TNftMintNftRequest = {
|
|
|
1114
1159
|
fee?: uint64;
|
|
1115
1160
|
did_id?: str;
|
|
1116
1161
|
royalty_percentage?: uint16;
|
|
1162
|
+
reuse_puzhash?: bool;
|
|
1117
1163
|
};
|
|
1118
1164
|
export declare type TNftMintNftResponse = {
|
|
1119
1165
|
wallet_id: uint32;
|
|
@@ -1123,6 +1169,21 @@ export declare type TNftMintNftResponse = {
|
|
|
1123
1169
|
};
|
|
1124
1170
|
export declare type WsNftMintNftMessage = GetMessageType<chia_wallet_service, nft_mint_nft_command, TNftMintNftResponse>;
|
|
1125
1171
|
export declare function nft_mint_nft<T extends TRPCAgent | TDaemon>(agent: T, data: TNftMintNftRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftMintNftResponse, WsNftMintNftMessage>>;
|
|
1172
|
+
export declare const nft_count_nfts_command = "nft_count_nfts";
|
|
1173
|
+
export declare type nft_count_nfts_command = typeof nft_count_nfts_command;
|
|
1174
|
+
export declare type TNftCountNftsRequest = {
|
|
1175
|
+
wallet_id: uint32;
|
|
1176
|
+
};
|
|
1177
|
+
export declare type TNftCountNftsResponse = {
|
|
1178
|
+
success: False;
|
|
1179
|
+
error: str;
|
|
1180
|
+
} | {
|
|
1181
|
+
wallet_id: uint32;
|
|
1182
|
+
success: True;
|
|
1183
|
+
count: int;
|
|
1184
|
+
};
|
|
1185
|
+
export declare type WsNftCountNftsMessage = GetMessageType<chia_wallet_service, nft_count_nfts_command, TNftCountNftsResponse>;
|
|
1186
|
+
export declare function nft_count_nfts<T extends TRPCAgent | TDaemon>(agent: T, data: TNftCountNftsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftCountNftsResponse, WsNftCountNftsMessage>>;
|
|
1126
1187
|
export declare const nft_get_nfts_command = "nft_get_nfts";
|
|
1127
1188
|
export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
|
|
1128
1189
|
export declare type TNftGetNftsRequest = {
|
|
@@ -1145,6 +1206,7 @@ export declare type TNftSetNftDidRequest = {
|
|
|
1145
1206
|
did_id?: str;
|
|
1146
1207
|
nft_coin_id: str;
|
|
1147
1208
|
fee?: uint64;
|
|
1209
|
+
reuse_puzhash?: bool;
|
|
1148
1210
|
};
|
|
1149
1211
|
export declare type TNftSetNftDidResponse = {
|
|
1150
1212
|
wallet_id: uint32;
|
|
@@ -1165,6 +1227,7 @@ export declare type TNftSetDidBulkRequest = {
|
|
|
1165
1227
|
}>;
|
|
1166
1228
|
did_id?: str;
|
|
1167
1229
|
fee?: uint64;
|
|
1230
|
+
reuse_puzhash?: bool;
|
|
1168
1231
|
};
|
|
1169
1232
|
export declare type TNftSetDidBulkResponse = {
|
|
1170
1233
|
success: False;
|
|
@@ -1173,9 +1236,32 @@ export declare type TNftSetDidBulkResponse = {
|
|
|
1173
1236
|
success: True;
|
|
1174
1237
|
wallet_id: uint32[];
|
|
1175
1238
|
spend_bundle: SpendBundle;
|
|
1239
|
+
tx_num: int;
|
|
1176
1240
|
};
|
|
1177
1241
|
export declare type WsNftSetDidBulkMessage = GetMessageType<chia_wallet_service, nft_set_did_bulk_command, TNftSetDidBulkResponse>;
|
|
1178
1242
|
export declare function nft_set_did_bulk<T extends TRPCAgent | TDaemon>(agent: T, data: TNftSetDidBulkRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftSetDidBulkResponse, WsNftSetDidBulkMessage>>;
|
|
1243
|
+
export declare const nft_transfer_bulk_command = "nft_transfer_bulk";
|
|
1244
|
+
export declare type nft_transfer_bulk_command = typeof nft_transfer_bulk_command;
|
|
1245
|
+
export declare type TNftTransferBulkRequest = {
|
|
1246
|
+
nft_coin_list: Array<{
|
|
1247
|
+
nft_coin_id: str;
|
|
1248
|
+
wallet_id: uint32;
|
|
1249
|
+
}>;
|
|
1250
|
+
target_address: str;
|
|
1251
|
+
fee?: uint64;
|
|
1252
|
+
reuse_puzhash?: bool;
|
|
1253
|
+
};
|
|
1254
|
+
export declare type TNftTransferBulkResponse = {
|
|
1255
|
+
success: False;
|
|
1256
|
+
error: str;
|
|
1257
|
+
} | {
|
|
1258
|
+
success: True;
|
|
1259
|
+
wallet_id: uint32[];
|
|
1260
|
+
spend_bundle: SpendBundle;
|
|
1261
|
+
tx_num: int;
|
|
1262
|
+
};
|
|
1263
|
+
export declare type WsNftTransferBulkMessage = GetMessageType<chia_wallet_service, nft_transfer_bulk_command, TNftTransferBulkResponse>;
|
|
1264
|
+
export declare function nft_transfer_bulk<T extends TRPCAgent | TDaemon>(agent: T, data: TNftTransferBulkRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftTransferBulkResponse, WsNftTransferBulkMessage>>;
|
|
1179
1265
|
export declare const nft_get_by_did_command = "nft_get_by_did";
|
|
1180
1266
|
export declare type nft_get_by_did_command = typeof nft_get_by_did_command;
|
|
1181
1267
|
export declare type TNftGetByDidRequest = {
|
|
@@ -1198,9 +1284,6 @@ export declare type TNftGetWalletDidRequest = {
|
|
|
1198
1284
|
export declare type TNftGetWalletDidResponse = {
|
|
1199
1285
|
did_id: Optional<str>;
|
|
1200
1286
|
success: True;
|
|
1201
|
-
} | {
|
|
1202
|
-
success: False;
|
|
1203
|
-
error: str;
|
|
1204
1287
|
};
|
|
1205
1288
|
export declare type WsNftGetWalletDidMessage = GetMessageType<chia_wallet_service, nft_get_wallet_did_command, TNftGetWalletDidResponse>;
|
|
1206
1289
|
export declare function nft_get_wallet_did<T extends TRPCAgent | TDaemon>(agent: T, data: TNftGetWalletDidRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftGetWalletDidResponse, WsNftGetWalletDidMessage>>;
|
|
@@ -1225,9 +1308,6 @@ export declare type TNftSetNftStatusRequest = {
|
|
|
1225
1308
|
};
|
|
1226
1309
|
export declare type TNftSetNftStatusResponse = {
|
|
1227
1310
|
success: True;
|
|
1228
|
-
} | {
|
|
1229
|
-
success: False;
|
|
1230
|
-
error: str;
|
|
1231
1311
|
};
|
|
1232
1312
|
export declare type WsNftSetNftStatusMessage = GetMessageType<chia_wallet_service, nft_set_nft_status_command, TNftSetNftStatusResponse>;
|
|
1233
1313
|
export declare function nft_set_nft_status<T extends TRPCAgent | TDaemon>(agent: T, data: TNftSetNftStatusRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftSetNftStatusResponse, WsNftSetNftStatusMessage>>;
|
|
@@ -1238,6 +1318,7 @@ export declare type TNftTransferNftRequest = {
|
|
|
1238
1318
|
target_address: str;
|
|
1239
1319
|
nft_coin_id: str;
|
|
1240
1320
|
fee?: uint64;
|
|
1321
|
+
reuse_puzhash?: bool;
|
|
1241
1322
|
};
|
|
1242
1323
|
export declare type TNftTransferNftResponse = {
|
|
1243
1324
|
success: True;
|
|
@@ -1273,6 +1354,7 @@ export declare type TNftAddUriRequest = {
|
|
|
1273
1354
|
key: str;
|
|
1274
1355
|
nft_coin_id: str;
|
|
1275
1356
|
fee?: uint64;
|
|
1357
|
+
reuse_puzhash?: bool;
|
|
1276
1358
|
};
|
|
1277
1359
|
export declare type TNftAddUriResponse = {
|
|
1278
1360
|
success: True;
|
|
@@ -1328,6 +1410,7 @@ export declare type TNftMintBulkRequest = {
|
|
|
1328
1410
|
did_lineage_parent?: str;
|
|
1329
1411
|
mint_from_did?: bool;
|
|
1330
1412
|
fee?: uint64;
|
|
1413
|
+
reuse_puzhash?: bool;
|
|
1331
1414
|
};
|
|
1332
1415
|
export declare type TNftMintBulkResponse = {
|
|
1333
1416
|
success: False;
|
|
@@ -1567,5 +1650,5 @@ export declare type TDlDeleteMirrorResponse = {
|
|
|
1567
1650
|
};
|
|
1568
1651
|
export declare type WsDlDeleteMirrorMessage = GetMessageType<chia_wallet_service, dl_delete_mirror_command, TDlDeleteMirrorResponse>;
|
|
1569
1652
|
export declare function dl_delete_mirror<T extends TRPCAgent | TDaemon>(agent: T, data: TDlDeleteMirrorRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlDeleteMirrorResponse, WsDlDeleteMirrorMessage>>;
|
|
1570
|
-
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetSpendableCoinsResponse | TGetCoinRecordsByNamesResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TVerifySignatureResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | 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;
|
|
1571
|
-
export declare type RpcWalletMessageOnWs = WsAddKeyMessage | WsAddRateLimitedFundsMessage | WsCancelOfferMessage | WsCancelOffersMessage | WsCatGetAssetIdMessage | WsCatGetNameMessage | WsGetStrayCatsMessage | WsCatAssetIdToNameMessage | WsCatSetNameMessage | WsCatSpendMessage | WsCheckOfferValidityMessage | WsCreateNewWalletMessage | WsCreateOfferForIdsMessage | WsCreateSignedTransactionMessage | WsDeleteUnconfirmedTransactionsMessage | WsSelectCoinsMessage | WsGetSpendableCoinsMessage | WsGetCoinRecordsByNamesMessage | WsGetCurrentDerivationIndexMessage | WsExtendDerivationIndexMessage | WsGetNotificationsMessage | WsDeleteNotificationsMessage | WsSendNotificationMessage | WsSignMessageByAddressMessage | WsSignMessageByIdMessage | WsVerifySignatureMessage | WsNftCalculateRoyaltiesMessage | WsNftMintBulkMessage | WsNftSetDidBulkMessage | WsDeleteAllKeysMessage | WsDeleteKeyMessage | WsCheckDeleteKeyMessage | WsDidSetWalletNameMessage | WsDidGetWalletNameMessage | WsDidCreateAttestMessage | WsDidCreateBackupFileMessage | WsDidTransferDidMessage | WsDidMessageSpendMessage | WsDidGetInfoMessage | WsDidFindLostDidMessage | WsDidGetDidMessage | WsDidGetInformationNeededForRecoveryMessage | WsDidGetCurrentCoinInfoMessage | WsDidGetPubkeyMessage | WsDidGetRecoveryListMessage | WsDidGetMetadataMessage | WsDidRecoverySpendMessage | WsDidSpendMessage | WsDidUpdateRecoveryIdsMessage | WsDidUpdateMetadataMessage | WsNftMintNftMessage | WsNftGetNftsMessage | WsNftSetNftDidMessage | WsNftGetByDidMessage | WsNftGetWalletDidMessage | WsNftGetWalletsWithDidsMessage | WsNftSetNftStatusMessage | WsNftTransferNftMessage | WsNftGetInfoMessage | WsNftAddUriMessage | WsFarmBlockMessage | WsGenerateMnemonicMessage | WsGetAllOffersMessage | WsGetCatListMessage | WsGetFarmedAmountMessage | WsGetHeightInfoMessage | WsGetInitialFreezePeriodMessageOfWallet | WsGetLoggedInFingerprintMessage | WsGetOfferMessage | WsGetOffersCountMessage | WsGetOfferSummaryMessage | WsGetNetworkInfoMessageOfWallet | WsGetNextAddressMessage | WsGetPrivateKeyMessage | WsGetPublicKeysMessage | WsGetSyncStatusMessage | WsGetTransactionMessage | WsGetTransactionCountMessage | WsGetTransactionsMessage | WsGetWalletBalanceMessage | WsGetWalletsMessage | WsLoginMessage | WsPushTxMessageOfWallet | WsPushTransactionsMessage | WsPwJoinPoolMessage | WsPwSelfPoolMessage | WsPwAbsorbRewardsMessage | WsPwStatusMessage | WsRlSetUserInfoMessage | WsSendClawbackTransactionMessage | WsSendTransactionMessage | WsSendTransactionMultiMessage | WsTakeOfferMessage | WsCreateNewDlMessage | WsDlTrackNewMessage | WsDlStopTrackingMessage | WsDlLatestSingletonMessage | WsDlSingletonsByRootMessage | WsDlUpdateRootMessage | WsDlUpdateMultipleMessage | WsDlHistoryMessage | WsDlOwnedSingletonsMessage | WsDlGetMirrorsMessage | WsDlNewMirrorMessage | WsDlDeleteMirrorMessage;
|
|
1653
|
+
export declare type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetSpendableCoinsResponse | TGetCoinRecordsByNamesResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TVerifySignatureResponse | TGetTransactionMemoResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse | TNftTransferBulkResponse | TDeleteAllKeysResponse | TSetWalletResyncOnStartupResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftCountNftsResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TFarmBlockResponse | TGetTimestampForHeightResponse | 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;
|
|
1654
|
+
export declare type RpcWalletMessageOnWs = WsAddKeyMessage | WsAddRateLimitedFundsMessage | WsCancelOfferMessage | WsCancelOffersMessage | WsCatGetAssetIdMessage | WsCatGetNameMessage | WsGetStrayCatsMessage | WsCatAssetIdToNameMessage | WsCatSetNameMessage | WsCatSpendMessage | WsCheckOfferValidityMessage | WsCreateNewWalletMessage | WsCreateOfferForIdsMessage | WsCreateSignedTransactionMessage | WsDeleteUnconfirmedTransactionsMessage | WsSelectCoinsMessage | WsGetSpendableCoinsMessage | WsGetCoinRecordsByNamesMessage | WsGetCurrentDerivationIndexMessage | WsExtendDerivationIndexMessage | WsGetNotificationsMessage | WsDeleteNotificationsMessage | WsSendNotificationMessage | WsSignMessageByAddressMessage | WsSignMessageByIdMessage | WsVerifySignatureMessage | WsGetTransactionMemoMessage | WsNftCalculateRoyaltiesMessage | WsNftMintBulkMessage | WsNftSetDidBulkMessage | WsNftTransferBulkMessage | WsDeleteAllKeysMessage | WsSetWalletResyncOnStartupMessage | WsDeleteKeyMessage | WsCheckDeleteKeyMessage | WsDidSetWalletNameMessage | WsDidGetWalletNameMessage | WsDidCreateAttestMessage | WsDidCreateBackupFileMessage | WsDidTransferDidMessage | WsDidMessageSpendMessage | WsDidGetInfoMessage | WsDidFindLostDidMessage | WsDidGetDidMessage | WsDidGetInformationNeededForRecoveryMessage | WsDidGetCurrentCoinInfoMessage | WsDidGetPubkeyMessage | WsDidGetRecoveryListMessage | WsDidGetMetadataMessage | WsDidRecoverySpendMessage | WsDidSpendMessage | WsDidUpdateRecoveryIdsMessage | WsDidUpdateMetadataMessage | WsNftMintNftMessage | WsNftCountNftsMessage | WsNftGetNftsMessage | WsNftSetNftDidMessage | WsNftGetByDidMessage | WsNftGetWalletDidMessage | WsNftGetWalletsWithDidsMessage | WsNftSetNftStatusMessage | WsNftTransferNftMessage | WsNftGetInfoMessage | WsNftAddUriMessage | WsFarmBlockMessage | WsGetTimestampForHeightMessage | WsGenerateMnemonicMessage | WsGetAllOffersMessage | WsGetCatListMessage | WsGetFarmedAmountMessage | WsGetHeightInfoMessage | WsGetInitialFreezePeriodMessageOfWallet | WsGetLoggedInFingerprintMessage | WsGetOfferMessage | WsGetOffersCountMessage | WsGetOfferSummaryMessage | WsGetNetworkInfoMessageOfWallet | WsGetNextAddressMessage | WsGetPrivateKeyMessage | WsGetPublicKeysMessage | WsGetSyncStatusMessage | WsGetTransactionMessage | WsGetTransactionCountMessage | WsGetTransactionsMessage | WsGetWalletBalanceMessage | WsGetWalletsMessage | WsLoginMessage | WsPushTxMessageOfWallet | WsPushTransactionsMessage | WsPwJoinPoolMessage | WsPwSelfPoolMessage | WsPwAbsorbRewardsMessage | WsPwStatusMessage | WsRlSetUserInfoMessage | WsSendClawbackTransactionMessage | WsSendTransactionMessage | WsSendTransactionMultiMessage | WsTakeOfferMessage | WsCreateNewDlMessage | WsDlTrackNewMessage | WsDlStopTrackingMessage | WsDlLatestSingletonMessage | WsDlSingletonsByRootMessage | WsDlUpdateRootMessage | WsDlUpdateMultipleMessage | WsDlHistoryMessage | WsDlOwnedSingletonsMessage | WsDlGetMirrorsMessage | WsDlNewMirrorMessage | WsDlDeleteMirrorMessage;
|