chia-agent
Version:
chia rpc/websocket client library
450 lines (449 loc) • 29.1 kB
TypeScript
import { FullBlock } from "../../chia/types/full_block";
import { BlockRecord } from "../../chia/consensus/block_record";
import { bool, float, Optional, str } from "../../chia/types/_python_types_";
import { int, uint128, uint32, uint64 } from "../../chia_rs/wheel/python/sized_ints";
import { UnfinishedHeaderBlock } from "../../chia/types/unfinished_header_block";
import { CoinRecord, CoinRecordBackwardCompatible } from "../../chia/types/coin_record";
import { SpendBundle } from "../../chia/types/spend_bundle";
import { bytes32 } from "../../chia_rs/wheel/python/sized_bytes";
import { MempoolItemInJsonDict } from "../../chia/types/mempool_item";
import { TRPCAgent } from "../../../rpc";
import { EndOfSubSlotBundle } from "../../chia/types/end_of_slot_bundle";
import { SignagePoint } from "../../chia/full_node/signage_point";
import { CoinSpend, CoinSpendWithConditions } from "../../chia/types/coin_spend";
import { CLVMCost } from "../../chia/types/clvm_cost";
import { GetMessageType, ResType } from "../../types";
import { TDaemon } from "../../../daemon/index";
export declare const chia_full_node_service = "chia_full_node";
export type chia_full_node_service = typeof chia_full_node_service;
export declare const get_blockchain_state_command = "get_blockchain_state";
export type get_blockchain_state_command = typeof get_blockchain_state_command;
export type TGetBlockchainStateResponse = {
blockchain_state: {
peak: Optional<BlockRecord>;
genesis_challenge_initialized: bool;
sync: {
sync_mode: bool;
synced: bool;
sync_tip_height: uint32;
sync_progress_height: uint32;
};
difficulty: uint64;
sub_slot_iters: uint64;
space: uint128;
average_block_time: Optional<uint32>;
mempool_size: int;
mempool_cost: CLVMCost;
mempool_fees: int;
mempool_min_fees: {
cost_5000000: float;
};
mempool_max_total_cost: int;
block_max_cost: int;
node_id: str;
};
};
export type WsGetBlockchainStateMessage = GetMessageType<chia_full_node_service, get_blockchain_state_command, TGetBlockchainStateResponse>;
export declare function get_blockchain_state<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetBlockchainStateResponse, WsGetBlockchainStateMessage>>;
export declare const get_block_command = "get_block";
export type get_block_command = typeof get_block_command;
export type TGetBlockRequest = {
header_hash: str;
};
export type TGetBlockResponse = {
block: FullBlock;
};
export type WsGetBlockMessage = GetMessageType<chia_full_node_service, get_block_command, TGetBlockResponse>;
export declare function get_block<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRequest): Promise<ResType<T, TGetBlockResponse, WsGetBlockMessage>>;
export declare const get_blocks_command = "get_blocks";
export type get_blocks_command = typeof get_blocks_command;
export type TGetBlocksRequest = {
start: int;
end: int;
exclude_header_hash?: bool;
exclude_reorged?: bool;
};
export type TGetBlocksResponse = {
blocks: FullBlock[] | Array<FullBlock & {
header_hash: str;
}>;
};
export type WsGetBlocksMessage = GetMessageType<chia_full_node_service, get_blocks_command, TGetBlocksResponse>;
export declare function get_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlocksRequest): Promise<ResType<T, TGetBlocksResponse, WsGetBlocksMessage>>;
export declare const get_block_count_metrics_command = "get_block_count_metrics";
export type get_block_count_metrics_command = typeof get_block_count_metrics_command;
export type TGetBlockCountMetricsResponse = {
metrics: {
compact_blocks: int;
uncompact_blocks: int;
hint_count: int;
};
};
export type WsGetBlockCountMetricsMessage = GetMessageType<chia_full_node_service, get_block_count_metrics_command, TGetBlockCountMetricsResponse>;
export declare function get_block_count_metrics<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetBlockCountMetricsResponse, WsGetBlockCountMetricsMessage>>;
export declare const get_block_record_by_height_command = "get_block_record_by_height";
export type get_block_record_by_height_command = typeof get_block_record_by_height_command;
export type TGetBlockRecordByHeightRequest = {
height: int;
};
export type TGetBlockRecordByHeightResponse = {
block_record: Optional<BlockRecord>;
};
export type WsGetBlockRecordByHeightMessage = GetMessageType<chia_full_node_service, get_block_record_by_height_command, TGetBlockRecordByHeightResponse>;
export declare function get_block_record_by_height<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordByHeightRequest): Promise<ResType<T, TGetBlockRecordByHeightResponse, WsGetBlockRecordByHeightMessage>>;
export declare const get_block_record_command = "get_block_record";
export type get_block_record_command = typeof get_block_record_command;
export type TGetBlockRecordRequest = {
header_hash: str;
};
export type TGetBlockRecordResponse = {
block_record: BlockRecord;
};
export type WsGetBlockRecordMessage = GetMessageType<chia_full_node_service, get_block_record_command, TGetBlockRecordResponse>;
export declare function get_block_record<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordRequest): Promise<ResType<T, TGetBlockRecordResponse, WsGetBlockRecordMessage>>;
export declare const get_block_records_command = "get_block_records";
export type get_block_records_command = typeof get_block_records_command;
export type TGetBlockRecordsRequest = {
start: int;
end: int;
};
export type TGetBlockRecordsResponse = {
block_records: BlockRecord[];
};
export type WsGetBlockRecordsMessage = GetMessageType<chia_full_node_service, get_block_records_command, TGetBlockRecordsResponse>;
export declare function get_block_records<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordsRequest): Promise<ResType<T, TGetBlockRecordsResponse, WsGetBlockRecordsMessage>>;
export declare const get_block_spends_command = "get_block_spends";
export type get_block_spends_command = typeof get_block_spends_command;
export type TGetBlockSpendsRequest = {
header_hash: str;
};
export type TGetBlockSpendsResponse = {
block_spends: CoinSpend[];
};
export type WsGetBlockSpendsMessage = GetMessageType<chia_full_node_service, get_block_spends_command, TGetBlockSpendsResponse>;
export declare function get_block_spends<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockSpendsRequest): Promise<ResType<T, TGetBlockSpendsResponse, WsGetBlockSpendsMessage>>;
export declare const get_block_spends_with_conditions_command = "get_block_spends_with_conditions";
export type get_block_spends_with_conditions_command = typeof get_block_spends_with_conditions_command;
export type TGetBlockSpendsWithConditionsRequest = {
header_hash: str;
};
export type TGetBlockSpendsWithConditionsResponse = {
block_spends_with_conditions: CoinSpendWithConditions[];
};
export type WsGetBlockSpendsWithConditionsMessage = GetMessageType<chia_full_node_service, get_block_spends_with_conditions_command, TGetBlockSpendsWithConditionsResponse>;
export declare function get_block_spends_with_conditions<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockSpendsWithConditionsRequest): Promise<ResType<T, TGetBlockSpendsWithConditionsResponse, WsGetBlockSpendsWithConditionsMessage>>;
export declare const get_unfinished_block_headers_command = "get_unfinished_block_headers";
export type get_unfinished_block_headers_command = typeof get_unfinished_block_headers_command;
export type TGetUnfinishedBlockHeadersResponse = {
headers: UnfinishedHeaderBlock[];
};
export type WsGetUnfinishedBlockHeadersMessage = GetMessageType<chia_full_node_service, get_unfinished_block_headers_command, TGetUnfinishedBlockHeadersResponse>;
export declare function get_unfinished_block_headers<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetUnfinishedBlockHeadersResponse, WsGetUnfinishedBlockHeadersMessage>>;
export declare const get_network_space_command = "get_network_space";
export type get_network_space_command = typeof get_network_space_command;
export type TGetNetworkSpaceRequest = {
newer_block_header_hash: str;
older_block_header_hash: str;
};
export type TGetNetworkSpaceResponse = {
space: uint128;
};
export type WsGetNetworkSpaceMessage = GetMessageType<chia_full_node_service, get_network_space_command, TGetNetworkSpaceResponse>;
export declare function get_network_space<T extends TRPCAgent | TDaemon>(agent: T, data: TGetNetworkSpaceRequest): Promise<ResType<T, TGetNetworkSpaceResponse, WsGetNetworkSpaceMessage>>;
export declare const get_additions_and_removals_command = "get_additions_and_removals";
export type get_additions_and_removals_command = typeof get_additions_and_removals_command;
export type TGetAdditionsAndRemovalsRequest = {
header_hash: str;
};
export type TGetAdditionsAndRemovalsResponse = {
additions: CoinRecordBackwardCompatible[];
removals: CoinRecordBackwardCompatible[];
};
export type WsGetAdditionsAndRemovalsMessage = GetMessageType<chia_full_node_service, get_additions_and_removals_command, TGetAdditionsAndRemovalsResponse>;
export declare function get_additions_and_removals<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAdditionsAndRemovalsRequest): Promise<ResType<T, TGetAdditionsAndRemovalsResponse, WsGetAdditionsAndRemovalsMessage>>;
export declare const get_aggsig_additional_data_command = "get_aggsig_additional_data";
export type get_aggsig_additional_data_command = typeof get_aggsig_additional_data_command;
export type TGetAggsigAdditionalDataResponse = {
additional_data: str;
};
export type WsGetAggsigAdditionalDataMessage = GetMessageType<chia_full_node_service, get_aggsig_additional_data_command, TGetAggsigAdditionalDataResponse>;
export declare function get_aggsig_additional_data<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAggsigAdditionalDataResponse, WsGetAggsigAdditionalDataMessage>>;
export declare const get_initial_freeze_period_command_of_full_node = "get_initial_freeze_period";
export type get_initial_freeze_period_command_of_full_node = typeof get_initial_freeze_period_command_of_full_node;
export type TGetInitialFreezePeriodResponseOfFullNode = {
INITIAL_FREEZE_END_TIMESTAMP: uint64;
};
export type WsGetInitialFreezePeriodMessageOfFullNode = GetMessageType<chia_full_node_service, get_initial_freeze_period_command_of_full_node, TGetInitialFreezePeriodResponseOfFullNode>;
export declare function get_initial_freeze_period_of_full_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetInitialFreezePeriodResponseOfFullNode, WsGetInitialFreezePeriodMessageOfFullNode>>;
export declare const get_recent_signage_point_or_eos_command = "get_recent_signage_point_or_eos";
export type get_recent_signage_point_or_eos_command = typeof get_recent_signage_point_or_eos_command;
export type TGetRecentSignagePointOrEOSCommandRequest = {
challenge_hash: str;
} | {
sp_hash: str;
};
export type TGetRecentSignagePointOrEOSCommandResponse = {
eos: EndOfSubSlotBundle;
time_received: float;
reverted: bool;
} | {
signage_point: SignagePoint;
time_received: float;
reverted: bool;
};
export type WsGetRecentSignagePointOrEOSCommandMessage = GetMessageType<chia_full_node_service, get_recent_signage_point_or_eos_command, TGetRecentSignagePointOrEOSCommandResponse>;
export declare function get_recent_signage_point_or_eos<T extends TRPCAgent | TDaemon>(agent: T, data: TGetRecentSignagePointOrEOSCommandRequest): Promise<ResType<T, TGetRecentSignagePointOrEOSCommandResponse, WsGetRecentSignagePointOrEOSCommandMessage>>;
export declare const get_coin_records_by_puzzle_hash_command = "get_coin_records_by_puzzle_hash";
export type get_coin_records_by_puzzle_hash_command = typeof get_coin_records_by_puzzle_hash_command;
export type TGetCoinRecordsByPuzzleHashRequest = {
puzzle_hash: str;
start_height: uint32;
end_height: uint32;
include_spent_coins: bool;
};
export type TGetCoinRecordsByPuzzleHashResponse = {
coin_records: CoinRecordBackwardCompatible[];
};
export type WsGetCoinRecordsByPuzzleHashMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hash_command, TGetCoinRecordsByPuzzleHashResponse>;
export declare function get_coin_records_by_puzzle_hash<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashRequest): Promise<ResType<T, TGetCoinRecordsByPuzzleHashResponse, WsGetCoinRecordsByPuzzleHashMessage>>;
export declare const get_coin_records_by_puzzle_hashes_command = "get_coin_records_by_puzzle_hashes";
export type get_coin_records_by_puzzle_hashes_command = typeof get_coin_records_by_puzzle_hashes_command;
export type TGetCoinRecordsByPuzzleHashesRequest = {
puzzle_hashes: str[];
start_height: uint32;
end_height: uint32;
include_spent_coins: bool;
};
export type TGetCoinRecordsByPuzzleHashesResponse = {
coin_records: CoinRecordBackwardCompatible[];
};
export type WsGetCoinRecordsByPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hashes_command, TGetCoinRecordsByPuzzleHashesResponse>;
export declare function get_coin_records_by_puzzle_hashes<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashesRequest): Promise<ResType<T, TGetCoinRecordsByPuzzleHashesResponse, WsGetCoinRecordsByPuzzleHashesMessage>>;
export declare const get_coin_record_by_name_command = "get_coin_record_by_name";
export type get_coin_record_by_name_command = typeof get_coin_record_by_name_command;
export type TGetCoinRecordByNameRequest = {
name: str;
};
export type TGetCoinRecordByNameResponse = {
coin_record: CoinRecordBackwardCompatible;
};
export type WsGetCoinRecordByNameMessage = GetMessageType<chia_full_node_service, get_coin_record_by_name_command, TGetCoinRecordByNameResponse>;
export declare function get_coin_record_by_name<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordByNameRequest): Promise<ResType<T, TGetCoinRecordByNameResponse, WsGetCoinRecordByNameMessage>>;
export declare const get_coin_records_by_names_command = "get_coin_records_by_names";
export type get_coin_records_by_names_command = typeof get_coin_records_by_names_command;
export type TGetCoinRecordsByNamesRequest = {
names: str[];
start_height?: uint32;
end_height?: uint32;
include_spent_coins?: bool;
};
export type TGetCoinRecordsByNamesResponse = {
coin_records: CoinRecordBackwardCompatible[];
};
export type WsGetCoinRecordsByNamesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_names_command, TGetCoinRecordsByNamesResponse>;
export declare function get_coin_records_by_names<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByNamesRequest): Promise<ResType<T, TGetCoinRecordsByNamesResponse, WsGetCoinRecordsByNamesMessage>>;
export declare const get_coin_records_by_parent_ids_command = "get_coin_records_by_parent_ids";
export type get_coin_records_by_parent_ids_command = typeof get_coin_records_by_parent_ids_command;
export type TGetCoinRecordsByParentIdsRequest = {
parent_ids: str[];
start_height?: uint32;
end_height?: uint32;
include_spent_coins?: bool;
};
export type TGetCoinRecordsByParentIdsResponse = {
coin_records: CoinRecordBackwardCompatible[];
};
export type WsGetCoinRecordsByParentIdsMessage = GetMessageType<chia_full_node_service, get_coin_records_by_parent_ids_command, TGetCoinRecordsByParentIdsResponse>;
export declare function get_coin_records_by_parent_ids<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByParentIdsRequest): Promise<ResType<T, TGetCoinRecordsByParentIdsResponse, WsGetCoinRecordsByParentIdsMessage>>;
export declare const get_coin_records_by_hint_command = "get_coin_records_by_hint";
export type get_coin_records_by_hint_command = typeof get_coin_records_by_hint_command;
export type TGetCoinRecordsByHintRequest = {
hint: str;
start_height?: uint32;
end_height?: uint32;
include_spent_coins?: bool;
};
export type TGetCoinRecordsByHintResponse = {
coin_records: CoinRecordBackwardCompatible[];
};
export type WsGetCoinRecordsByHintMessage = GetMessageType<chia_full_node_service, get_coin_records_by_hint_command, TGetCoinRecordsByHintResponse>;
export declare function get_coin_records_by_hint<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByHintRequest): Promise<ResType<T, TGetCoinRecordsByHintResponse, WsGetCoinRecordsByHintMessage>>;
export declare const push_tx_command = "push_tx";
export type push_tx_command = typeof push_tx_command;
export type TPushTxRequest = {
spend_bundle: SpendBundle;
};
export type TPushTxResponse = {
status: str;
};
export type WsPushTxMessage = GetMessageType<chia_full_node_service, push_tx_command, TPushTxResponse>;
export declare function push_tx<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTxRequest): Promise<ResType<T, TPushTxResponse, WsPushTxMessage>>;
export declare const get_puzzle_and_solution_command = "get_puzzle_and_solution";
export type get_puzzle_and_solution_command = typeof get_puzzle_and_solution_command;
export type TGetPuzzleAndSolutionRequest = {
coin_id: str;
height: uint32;
};
export type TGetPuzzleAndSolutionResponse = {
coin_solution: CoinSpend;
};
export type WsGetPuzzleAndSolutionMessage = GetMessageType<chia_full_node_service, get_puzzle_and_solution_command, TGetPuzzleAndSolutionResponse>;
export declare function get_puzzle_and_solution<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPuzzleAndSolutionRequest): Promise<ResType<T, TGetPuzzleAndSolutionResponse, WsGetPuzzleAndSolutionMessage>>;
export declare const get_all_mempool_tx_ids_command = "get_all_mempool_tx_ids";
export type get_all_mempool_tx_ids_command = typeof get_all_mempool_tx_ids_command;
export type TGetAllMempoolTxIdsResponse = {
tx_ids: bytes32[];
};
export type WsGetAllMempoolTxIdsMessage = GetMessageType<chia_full_node_service, get_all_mempool_tx_ids_command, TGetAllMempoolTxIdsResponse>;
export declare function get_all_mempool_tx_ids<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllMempoolTxIdsResponse, WsGetAllMempoolTxIdsMessage>>;
export declare const get_all_mempool_items_command = "get_all_mempool_items";
export type get_all_mempool_items_command = typeof get_all_mempool_items_command;
export type TGetAllMempoolItemsResponse = {
mempool_items: Record<string, MempoolItemInJsonDict>;
};
export type WsGetAllMempoolItemsMessage = GetMessageType<chia_full_node_service, get_all_mempool_items_command, TGetAllMempoolItemsResponse>;
export declare function get_all_mempool_items<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllMempoolItemsResponse, WsGetAllMempoolItemsMessage>>;
export declare const get_mempool_item_by_tx_id_command = "get_mempool_item_by_tx_id";
export type get_mempool_item_by_tx_id_command = typeof get_mempool_item_by_tx_id_command;
export type TGetMempoolItemByTxIdRequest = {
tx_id: str;
include_pending?: bool;
};
export type TGetMempoolItemByTxIdResponse = {
mempool_item: MempoolItemInJsonDict;
};
export type WsGetMempoolItemByTxIdMessage = GetMessageType<chia_full_node_service, get_mempool_item_by_tx_id_command, TGetMempoolItemByTxIdResponse>;
export declare function get_mempool_item_by_tx_id<T extends TRPCAgent | TDaemon>(agent: T, data: TGetMempoolItemByTxIdRequest): Promise<ResType<T, TGetMempoolItemByTxIdResponse, WsGetMempoolItemByTxIdMessage>>;
export declare const get_mempool_items_by_coin_name_command = "get_mempool_items_by_coin_name";
export type get_mempool_items_by_coin_name_command = typeof get_mempool_items_by_coin_name_command;
export type TGetMempoolItemsByCoinNameRequest = {
coin_name: str;
};
export type TGetMempoolItemsByCoinNameResponse = {
mempool_items: MempoolItemInJsonDict[];
};
export type WsGetMempoolItemsByCoinNameMessage = GetMessageType<chia_full_node_service, get_mempool_items_by_coin_name_command, TGetMempoolItemsByCoinNameResponse>;
export declare function get_mempool_items_by_coin_name<T extends TRPCAgent | TDaemon>(agent: T, data: TGetMempoolItemsByCoinNameRequest): Promise<ResType<T, TGetMempoolItemsByCoinNameResponse, WsGetMempoolItemsByCoinNameMessage>>;
export declare const get_fee_estimate_command = "get_fee_estimate";
export type get_fee_estimate_command = typeof get_fee_estimate_command;
export type TGetFeeEstimateRequest = {
spend_bundle?: SpendBundle;
cost?: uint64;
spend_type?: "send_xch_transaction" | "cat_spend" | "take_offer" | "cancel_offer" | "nft_set_nft_did" | "nft_transfer_nft" | "create_new_pool_wallet" | "pw_absorb_rewards" | "create_new_did_wallet";
spend_count?: uint64;
target_times: int[];
};
export type TGetFeeEstimateResponse = {
estimates: uint64[];
target_times: int[];
current_fee_rate: uint64;
mempool_size: CLVMCost;
mempool_fees: int;
num_spends: int;
mempool_max_size: CLVMCost;
full_node_synced: bool;
peak_height: uint32;
last_peak_timestamp: uint64;
node_time_utc: int;
last_block_cost: int;
fees_last_block: uint64;
fee_rate_last_block: float;
last_tx_block_height: int;
};
export type WsGetFeeEstimateMessage = GetMessageType<chia_full_node_service, get_fee_estimate_command, TGetFeeEstimateResponse>;
export declare function get_fee_estimate<T extends TRPCAgent | TDaemon>(agent: T, data: TGetFeeEstimateRequest): Promise<ResType<T, TGetFeeEstimateResponse, WsGetFeeEstimateMessage>>;
export declare const get_all_blocks_command = "get_all_blocks";
export type get_all_blocks_command = typeof get_all_blocks_command;
export type TGetAllBlocksResponse = {
blocks: FullBlock[];
success: bool;
};
export type WsGetAllBlocksMessage = GetMessageType<chia_full_node_service, get_all_blocks_command, TGetAllBlocksResponse>;
export declare function get_all_blocks<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllBlocksResponse, WsGetAllBlocksMessage>>;
export declare const farm_block_command = "farm_block";
export type farm_block_command = typeof farm_block_command;
export type TFarmBlockRequest = {
address: str;
guarantee_tx_block?: bool;
blocks?: int;
};
export type TFarmBlockResponse = {
new_peak_height: int;
success: bool;
};
export type WsFarmBlockMessage = GetMessageType<chia_full_node_service, farm_block_command, TFarmBlockResponse>;
export declare function farm_block<T extends TRPCAgent | TDaemon>(agent: T, data: TFarmBlockRequest): Promise<ResType<T, TFarmBlockResponse, WsFarmBlockMessage>>;
export declare const set_auto_farming_command = "set_auto_farming";
export type set_auto_farming_command = typeof set_auto_farming_command;
export type TSetAutoFarmingRequest = {
auto_farm: bool;
};
export type TSetAutoFarmingResponse = {
auto_farm_enabled: bool;
success: bool;
};
export type WsSetAutoFarmingMessage = GetMessageType<chia_full_node_service, set_auto_farming_command, TSetAutoFarmingResponse>;
export declare function set_auto_farming<T extends TRPCAgent | TDaemon>(agent: T, data: TSetAutoFarmingRequest): Promise<ResType<T, TSetAutoFarmingResponse, WsSetAutoFarmingMessage>>;
export declare const get_auto_farming_command = "get_auto_farming";
export type get_auto_farming_command = typeof get_auto_farming_command;
export type TGetAutoFarmingResponse = {
new_peak_height: uint64;
success: bool;
};
export type WsGetAutoFarmingMessage = GetMessageType<chia_full_node_service, get_auto_farming_command, TGetAutoFarmingResponse>;
export declare function get_auto_farming<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAutoFarmingResponse, WsGetAutoFarmingMessage>>;
export declare const get_farming_ph_command = "get_farming_ph";
export type get_farming_ph_command = typeof get_farming_ph_command;
export type TGetFarmingPhResponse = {
puzzle_hash: str;
success: bool;
};
export type WsGetFarmingPhMessage = GetMessageType<chia_full_node_service, get_farming_ph_command, TGetFarmingPhResponse>;
export declare function get_farming_ph<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetFarmingPhResponse, WsGetFarmingPhMessage>>;
export declare const get_all_coins_command = "get_all_coins";
export type get_all_coins_command = typeof get_all_coins_command;
export type TGetAllCoinsRequest = {
include_spent_coins?: bool;
};
export type TGetAllCoinsResponse = {
coin_records: CoinRecord[];
success: bool;
};
export type WsGetAllCoinsMessage = GetMessageType<chia_full_node_service, get_all_coins_command, TGetAllCoinsResponse>;
export declare function get_all_coins<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAllCoinsRequest): Promise<ResType<T, TGetAllCoinsResponse, WsGetAllCoinsMessage>>;
export declare const get_all_puzzle_hashes_command = "get_all_puzzle_hashes";
export type get_all_puzzle_hashes_command = typeof get_all_puzzle_hashes_command;
export type TGetAllPuzzleHashesResponse = {
puzzle_hashes: Record<bytes32, [uint128, int]>;
success: bool;
};
export type WsGetAllPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_all_puzzle_hashes_command, TGetAllPuzzleHashesResponse>;
export declare function get_all_puzzle_hashes<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllPuzzleHashesResponse, WsGetAllPuzzleHashesMessage>>;
export declare const revert_blocks_command = "revert_blocks";
export type revert_blocks_command = typeof revert_blocks_command;
export type TRevertBlocksRequest = {
num_of_blocks?: int;
delete_all_blocks?: bool;
};
export type TRevertBlocksResponse = {
new_peak_height: int;
success: bool;
};
export type WsRevertBlocksMessage = GetMessageType<chia_full_node_service, revert_blocks_command, TRevertBlocksResponse>;
export declare function revert_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TRevertBlocksRequest): Promise<ResType<T, TRevertBlocksResponse, WsRevertBlocksMessage>>;
export declare const reorg_blocks_command = "reorg_blocks";
export type reorg_blocks_command = typeof reorg_blocks_command;
export type TReorgBlocksRequest = {
num_of_blocks_to_rev?: int;
num_of_new_blocks?: int;
revert_all_blocks?: bool;
random_seed?: str;
};
export type TReorgBlocksResponse = {
new_peak_height: int;
success: bool;
};
export type WsReorgBlocksMessage = GetMessageType<chia_full_node_service, reorg_blocks_command, TReorgBlocksResponse>;
export declare function reorg_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TReorgBlocksRequest): Promise<ResType<T, TReorgBlocksResponse, WsReorgBlocksMessage>>;
export type RpcFullNodeMessage = TGetAdditionsAndRemovalsResponse | TGetAggsigAdditionalDataResponse | TGetAllMempoolItemsResponse | TGetAllMempoolTxIdsResponse | TGetBlockResponse | TGetBlockRecordByHeightResponse | TGetBlockRecordResponse | TGetBlockRecordsResponse | TGetBlockSpendsResponse | TGetBlockSpendsWithConditionsResponse | TGetBlockchainStateResponse | TGetBlocksResponse | TGetBlockCountMetricsResponse | TGetRecentSignagePointOrEOSCommandResponse | TGetCoinRecordByNameResponse | TGetCoinRecordsByNamesResponse | TGetCoinRecordsByPuzzleHashResponse | TGetCoinRecordsByPuzzleHashesResponse | TGetCoinRecordsByParentIdsResponse | TGetCoinRecordsByHintResponse | TGetInitialFreezePeriodResponseOfFullNode | TGetMempoolItemByTxIdResponse | TGetMempoolItemsByCoinNameResponse | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse | TGetPuzzleAndSolutionResponse | TGetFeeEstimateResponse | TGetAllBlocksResponse | TFarmBlockResponse | TSetAutoFarmingResponse | TGetAutoFarmingResponse | TGetFarmingPhResponse | TGetAllCoinsResponse | TGetAllPuzzleHashesResponse | TRevertBlocksResponse | TReorgBlocksResponse;
export type RpcFullNodeMessageOnWs = WsGetAdditionsAndRemovalsMessage | WsGetAggsigAdditionalDataMessage | WsGetAllMempoolItemsMessage | WsGetAllMempoolTxIdsMessage | WsGetBlockMessage | WsGetBlockRecordByHeightMessage | WsGetBlockRecordMessage | WsGetBlockRecordsMessage | WsGetBlockSpendsMessage | WsGetBlockSpendsWithConditionsMessage | WsGetBlockchainStateMessage | WsGetBlocksMessage | WsGetBlockCountMetricsMessage | WsGetRecentSignagePointOrEOSCommandMessage | WsGetCoinRecordByNameMessage | WsGetCoinRecordsByNamesMessage | WsGetCoinRecordsByPuzzleHashMessage | WsGetCoinRecordsByPuzzleHashesMessage | WsGetCoinRecordsByParentIdsMessage | WsGetCoinRecordsByHintMessage | WsGetInitialFreezePeriodMessageOfFullNode | WsGetMempoolItemByTxIdMessage | WsGetMempoolItemsByCoinNameMessage | WsGetNetworkSpaceMessage | WsGetUnfinishedBlockHeadersMessage | WsPushTxMessage | WsGetPuzzleAndSolutionMessage | WsGetFeeEstimateMessage | WsGetAllBlocksMessage | WsFarmBlockMessage | WsSetAutoFarmingMessage | WsGetAutoFarmingMessage | WsGetFarmingPhMessage | WsGetAllCoinsMessage | WsGetAllPuzzleHashesMessage | WsRevertBlocksMessage | WsReorgBlocksMessage;