chia-agent 14.0.0 → 14.2.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.
Files changed (154) hide show
  1. package/CHANGELOG.md +252 -3
  2. package/LICENSE +1 -1
  3. package/README.md +7 -5
  4. package/agent/index.d.ts +1 -1
  5. package/api/chia/consensus/block_record.d.ts +1 -32
  6. package/api/chia/consensus/blockchain.d.ts +2 -1
  7. package/api/chia/consensus/cost_calculator.d.ts +1 -1
  8. package/api/chia/data_layer/data_layer_util.d.ts +16 -16
  9. package/api/chia/data_layer/data_layer_wallet.d.ts +4 -3
  10. package/api/chia/farmer/farmer.d.ts +1 -1
  11. package/api/chia/full_node/signage_point.d.ts +1 -1
  12. package/api/chia/harvester/harvester.d.ts +1 -1
  13. package/api/chia/plot-sync/receiver.d.ts +2 -2
  14. package/api/chia/plotters/bladebit.d.ts +1 -1
  15. package/api/chia/plotters/chiapos.d.ts +1 -1
  16. package/api/chia/plotters/maxmax.d.ts +1 -1
  17. package/api/chia/plotting/util.d.ts +3 -3
  18. package/api/chia/pools/pool_config.d.ts +1 -1
  19. package/api/chia/pools/pool_wallet_info.d.ts +2 -4
  20. package/api/chia/protocols/farmer_protocol.d.ts +8 -8
  21. package/api/chia/protocols/harvester_protocol.d.ts +1 -1
  22. package/api/chia/protocols/pool_protocol.d.ts +13 -13
  23. package/api/chia/rpc/util.d.ts +14 -0
  24. package/api/chia/rpc/wallet_request_types.d.ts +46 -3
  25. package/api/chia/server/outbound_message.d.ts +1 -1
  26. package/api/chia/timelord/types.d.ts +1 -1
  27. package/api/chia/types/_python_types_.d.ts +22 -22
  28. package/api/chia/types/blockchain_format/classgroup.d.ts +1 -4
  29. package/api/chia/types/blockchain_format/coin.d.ts +1 -11
  30. package/api/chia/types/blockchain_format/foliage.d.ts +1 -35
  31. package/api/chia/types/blockchain_format/pool_target.d.ts +1 -6
  32. package/api/chia/types/blockchain_format/program.d.ts +1 -1
  33. package/api/chia/types/blockchain_format/proof_of_space.d.ts +1 -10
  34. package/api/chia/types/blockchain_format/reward_chain_block.d.ts +1 -30
  35. package/api/chia/types/blockchain_format/sized_bytes.d.ts +7 -7
  36. package/api/chia/types/blockchain_format/slots.d.ts +1 -24
  37. package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +1 -9
  38. package/api/chia/types/blockchain_format/vdf.d.ts +1 -13
  39. package/api/chia/types/clvm_cost.d.ts +1 -1
  40. package/api/chia/types/coin_record.d.ts +2 -2
  41. package/api/chia/types/coin_spend.d.ts +3 -8
  42. package/api/chia/types/condition_opcode.d.ts +1 -1
  43. package/api/chia/types/condition_with_args.d.ts +1 -1
  44. package/api/chia/types/end_of_slot_bundle.d.ts +1 -8
  45. package/api/chia/types/full_block.d.ts +1 -20
  46. package/api/chia/types/mempool_item.d.ts +3 -3
  47. package/api/chia/types/mojos.d.ts +1 -1
  48. package/api/chia/types/signing_mode.d.ts +6 -6
  49. package/api/chia/types/spend_bundle.d.ts +1 -1
  50. package/api/chia/types/spend_bundle_condition.d.ts +1 -26
  51. package/api/chia/types/unfinished_block.d.ts +1 -0
  52. package/api/chia/types/unfinished_header_block.d.ts +1 -1
  53. package/api/chia/util/keychain.d.ts +2 -2
  54. package/api/chia/util/misc.d.ts +1 -1
  55. package/api/chia/wallet/cat_wallet/cat_constants.d.ts +1 -1
  56. package/api/chia/wallet/conditions.d.ts +2 -2
  57. package/api/chia/wallet/dao_wallet/dao_info.d.ts +5 -5
  58. package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +3 -3
  59. package/api/chia/wallet/lineage_proof.d.ts +1 -1
  60. package/api/chia/wallet/nft_wallet/nft_info.d.ts +1 -1
  61. package/api/chia/wallet/notification_store.d.ts +1 -1
  62. package/api/chia/wallet/puzzle_drivers.d.ts +2 -2
  63. package/api/chia/wallet/puzzles/clawback/metadata.d.ts +2 -2
  64. package/api/chia/wallet/signer_protocol.d.ts +54 -0
  65. package/api/chia/wallet/signer_protocol.js +2 -0
  66. package/api/chia/wallet/trade_record.d.ts +3 -3
  67. package/api/chia/wallet/transaction_record.d.ts +4 -4
  68. package/api/chia/wallet/util/quality_filter.d.ts +5 -5
  69. package/api/chia/wallet/util/tx_config.d.ts +4 -11
  70. package/api/chia/wallet/util/wallet_types.d.ts +1 -1
  71. package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +2 -2
  72. package/api/chia/wallet/vc_wallet/vc_store.d.ts +1 -1
  73. package/api/chia/wallet/wallet_coin_record.d.ts +2 -2
  74. package/api/chia/wallet/wallet_coin_store.d.ts +1 -1
  75. package/api/chia/wallet/wallet_info.d.ts +2 -2
  76. package/api/chia/wallet/wallet_node.d.ts +1 -1
  77. package/api/chia_rs/chia-bls/public_key.d.ts +2 -0
  78. package/api/chia_rs/chia-bls/public_key.js +2 -0
  79. package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +36 -0
  80. package/api/chia_rs/chia-consensus/gen/owned_conditions.js +2 -0
  81. package/api/chia_rs/chia-protocol/block_record.d.ts +32 -0
  82. package/api/chia_rs/chia-protocol/block_record.js +2 -0
  83. package/api/chia_rs/chia-protocol/classgroup.d.ts +4 -0
  84. package/api/chia_rs/chia-protocol/classgroup.js +2 -0
  85. package/api/chia_rs/chia-protocol/coin.d.ts +7 -0
  86. package/api/chia_rs/chia-protocol/coin.js +2 -0
  87. package/api/chia_rs/chia-protocol/coin_spend.d.ts +7 -0
  88. package/api/chia_rs/chia-protocol/coin_spend.js +2 -0
  89. package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.d.ts +8 -0
  90. package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.js +2 -0
  91. package/api/chia_rs/chia-protocol/foliage.d.ts +35 -0
  92. package/api/chia_rs/chia-protocol/foliage.js +2 -0
  93. package/api/chia_rs/chia-protocol/fullblock.d.ts +20 -0
  94. package/api/chia_rs/chia-protocol/fullblock.js +2 -0
  95. package/api/chia_rs/chia-protocol/pool_target.d.ts +6 -0
  96. package/api/chia_rs/chia-protocol/pool_target.js +2 -0
  97. package/api/chia_rs/chia-protocol/program.d.ts +2 -0
  98. package/api/chia_rs/chia-protocol/program.js +2 -0
  99. package/api/chia_rs/chia-protocol/proof_of_space.d.ts +10 -0
  100. package/api/chia_rs/chia-protocol/proof_of_space.js +2 -0
  101. package/api/chia_rs/chia-protocol/reward_chain_block.d.ts +30 -0
  102. package/api/chia_rs/chia-protocol/reward_chain_block.js +2 -0
  103. package/api/chia_rs/chia-protocol/slots.d.ts +24 -0
  104. package/api/chia_rs/chia-protocol/slots.js +2 -0
  105. package/api/chia_rs/chia-protocol/sub_epoch_summary.d.ts +9 -0
  106. package/api/chia_rs/chia-protocol/sub_epoch_summary.js +2 -0
  107. package/api/chia_rs/chia-protocol/unfinished_block.d.ts +17 -0
  108. package/api/chia_rs/chia-protocol/unfinished_block.js +2 -0
  109. package/api/chia_rs/chia-protocol/vdf.d.ts +13 -0
  110. package/api/chia_rs/chia-protocol/vdf.js +2 -0
  111. package/api/{chia/pool/store.d.ts → pool-reference/pool/record.d.ts} +5 -5
  112. package/api/pool-reference/pool/record.js +2 -0
  113. package/api/rpc/common/index.d.ts +34 -24
  114. package/api/rpc/common/index.js +8 -1
  115. package/api/rpc/crawler/index.d.ts +10 -10
  116. package/api/rpc/data_layer/index.d.ts +208 -134
  117. package/api/rpc/data_layer/index.js +23 -2
  118. package/api/rpc/farmer/index.d.ts +52 -55
  119. package/api/rpc/full_node/index.d.ts +140 -154
  120. package/api/rpc/full_node/index.js +2 -9
  121. package/api/rpc/harvester/index.d.ts +31 -34
  122. package/api/rpc/index.d.ts +7 -7
  123. package/api/rpc/index.js +13 -9
  124. package/api/rpc/pool/index.d.ts +13 -13
  125. package/api/rpc/wallet/index.d.ts +747 -641
  126. package/api/rpc/wallet/index.js +27 -20
  127. package/api/types.d.ts +4 -3
  128. package/api/types.js +2 -1
  129. package/api/ws/chia_plots_create/index.d.ts +7 -7
  130. package/api/ws/crawler/index.d.ts +9 -9
  131. package/api/ws/daemon/index.d.ts +198 -166
  132. package/api/ws/daemon/index.js +17 -3
  133. package/api/ws/farmer/index.d.ts +34 -34
  134. package/api/ws/full_node/index.d.ts +28 -17
  135. package/api/ws/full_node/index.js +14 -1
  136. package/api/ws/harvester/index.d.ts +19 -19
  137. package/api/ws/index.d.ts +3 -3
  138. package/api/ws/index.js +5 -2
  139. package/api/ws/timelord/index.d.ts +14 -14
  140. package/api/ws/wallet/index.d.ts +22 -22
  141. package/bin/cli.js +3 -3
  142. package/config/index.d.ts +1 -1
  143. package/config/index.js +3 -3
  144. package/daemon/connection.js +9 -10
  145. package/daemon/index.d.ts +6 -6
  146. package/daemon/index.js +21 -21
  147. package/index.js +5 -1
  148. package/logger.d.ts +3 -3
  149. package/package.json +3 -3
  150. package/rpc/index.d.ts +6 -4
  151. package/rpc/index.js +29 -29
  152. package/api/chia/types/blockchain_format/serialized_program.d.ts +0 -2
  153. /package/api/chia/{pool/store.js → rpc/util.js} +0 -0
  154. /package/api/chia/types/{blockchain_format/serialized_program.js → unfinished_block.js} +0 -0
@@ -14,11 +14,10 @@ import { CLVMCost } from "../../chia/types/clvm_cost";
14
14
  import { GetMessageType, ResType } from "../../types";
15
15
  import { TDaemon } from "../../../daemon/index";
16
16
  export declare const chia_full_node_service = "chia_full_node";
17
- export declare type chia_full_node_service = typeof chia_full_node_service;
17
+ export type chia_full_node_service = typeof chia_full_node_service;
18
18
  export declare const get_blockchain_state_command = "get_blockchain_state";
19
- export declare type get_blockchain_state_command = typeof get_blockchain_state_command;
20
- export declare type TGetBlockchainStateRequest = {};
21
- export declare type TGetBlockchainStateResponse = {
19
+ export type get_blockchain_state_command = typeof get_blockchain_state_command;
20
+ export type TGetBlockchainStateResponse = {
22
21
  blockchain_state: {
23
22
  peak: Optional<BlockRecord>;
24
23
  genesis_challenge_initialized: bool;
@@ -43,157 +42,146 @@ export declare type TGetBlockchainStateResponse = {
43
42
  node_id: str;
44
43
  };
45
44
  };
46
- export declare type WsGetBlockchainStateMessage = GetMessageType<chia_full_node_service, get_blockchain_state_command, TGetBlockchainStateResponse>;
45
+ export type WsGetBlockchainStateMessage = GetMessageType<chia_full_node_service, get_blockchain_state_command, TGetBlockchainStateResponse>;
47
46
  export declare function get_blockchain_state<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetBlockchainStateResponse, WsGetBlockchainStateMessage>>;
48
47
  export declare const get_block_command = "get_block";
49
- export declare type get_block_command = typeof get_block_command;
50
- export declare type TGetBlockRequest = {
48
+ export type get_block_command = typeof get_block_command;
49
+ export type TGetBlockRequest = {
51
50
  header_hash: str;
52
51
  };
53
- export declare type TGetBlockResponse = {
52
+ export type TGetBlockResponse = {
54
53
  block: FullBlock;
55
54
  };
56
- export declare type WsGetBlockMessage = GetMessageType<chia_full_node_service, get_block_command, TGetBlockResponse>;
55
+ export type WsGetBlockMessage = GetMessageType<chia_full_node_service, get_block_command, TGetBlockResponse>;
57
56
  export declare function get_block<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRequest): Promise<ResType<T, TGetBlockResponse, WsGetBlockMessage>>;
58
57
  export declare const get_blocks_command = "get_blocks";
59
- export declare type get_blocks_command = typeof get_blocks_command;
60
- export declare type TGetBlocksRequest = {
58
+ export type get_blocks_command = typeof get_blocks_command;
59
+ export type TGetBlocksRequest = {
61
60
  start: int;
62
61
  end: int;
63
62
  exclude_header_hash?: bool;
64
63
  exclude_reorged?: bool;
65
64
  };
66
- export declare type TGetBlocksResponse = {
65
+ export type TGetBlocksResponse = {
67
66
  blocks: FullBlock[] | Array<FullBlock & {
68
67
  header_hash: str;
69
68
  }>;
70
69
  };
71
- export declare type WsGetBlocksMessage = GetMessageType<chia_full_node_service, get_blocks_command, TGetBlocksResponse>;
70
+ export type WsGetBlocksMessage = GetMessageType<chia_full_node_service, get_blocks_command, TGetBlocksResponse>;
72
71
  export declare function get_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlocksRequest): Promise<ResType<T, TGetBlocksResponse, WsGetBlocksMessage>>;
73
72
  export declare const get_block_count_metrics_command = "get_block_count_metrics";
74
- export declare type get_block_count_metrics_command = typeof get_block_count_metrics_command;
75
- export declare type TGetBlockCountMetricsResponse = {
73
+ export type get_block_count_metrics_command = typeof get_block_count_metrics_command;
74
+ export type TGetBlockCountMetricsResponse = {
76
75
  metrics: {
77
76
  "compact_blocks": int;
78
77
  "uncompact_blocks": int;
79
78
  "hint_count": int;
80
79
  };
81
80
  };
82
- export declare type WsGetBlockCountMetricsMessage = GetMessageType<chia_full_node_service, get_block_count_metrics_command, TGetBlockCountMetricsResponse>;
81
+ export type WsGetBlockCountMetricsMessage = GetMessageType<chia_full_node_service, get_block_count_metrics_command, TGetBlockCountMetricsResponse>;
83
82
  export declare function get_block_count_metrics<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetBlockCountMetricsResponse, WsGetBlockCountMetricsMessage>>;
84
83
  export declare const get_block_record_by_height_command = "get_block_record_by_height";
85
- export declare type get_block_record_by_height_command = typeof get_block_record_by_height_command;
86
- export declare type TGetBlockRecordByHeightRequest = {
84
+ export type get_block_record_by_height_command = typeof get_block_record_by_height_command;
85
+ export type TGetBlockRecordByHeightRequest = {
87
86
  height: int;
88
87
  };
89
- export declare type TGetBlockRecordByHeightResponse = {
88
+ export type TGetBlockRecordByHeightResponse = {
90
89
  block_record: Optional<BlockRecord>;
91
90
  };
92
- export declare type WsGetBlockRecordByHeightMessage = GetMessageType<chia_full_node_service, get_block_record_by_height_command, TGetBlockRecordByHeightResponse>;
91
+ export type WsGetBlockRecordByHeightMessage = GetMessageType<chia_full_node_service, get_block_record_by_height_command, TGetBlockRecordByHeightResponse>;
93
92
  export declare function get_block_record_by_height<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordByHeightRequest): Promise<ResType<T, TGetBlockRecordByHeightResponse, WsGetBlockRecordByHeightMessage>>;
94
93
  export declare const get_block_record_command = "get_block_record";
95
- export declare type get_block_record_command = typeof get_block_record_command;
96
- export declare type TGetBlockRecordRequest = {
94
+ export type get_block_record_command = typeof get_block_record_command;
95
+ export type TGetBlockRecordRequest = {
97
96
  header_hash: str;
98
97
  };
99
- export declare type TGetBlockRecordResponse = {
98
+ export type TGetBlockRecordResponse = {
100
99
  block_record: BlockRecord;
101
100
  };
102
- export declare type WsGetBlockRecordMessage = GetMessageType<chia_full_node_service, get_block_record_command, TGetBlockRecordResponse>;
101
+ export type WsGetBlockRecordMessage = GetMessageType<chia_full_node_service, get_block_record_command, TGetBlockRecordResponse>;
103
102
  export declare function get_block_record<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordRequest): Promise<ResType<T, TGetBlockRecordResponse, WsGetBlockRecordMessage>>;
104
103
  export declare const get_block_records_command = "get_block_records";
105
- export declare type get_block_records_command = typeof get_block_records_command;
106
- export declare type TGetBlockRecordsRequest = {
104
+ export type get_block_records_command = typeof get_block_records_command;
105
+ export type TGetBlockRecordsRequest = {
107
106
  start: int;
108
107
  end: int;
109
108
  };
110
- export declare type TGetBlockRecordsResponse = {
109
+ export type TGetBlockRecordsResponse = {
111
110
  block_records: BlockRecord[];
112
111
  };
113
- export declare type WsGetBlockRecordsMessage = GetMessageType<chia_full_node_service, get_block_records_command, TGetBlockRecordsResponse>;
112
+ export type WsGetBlockRecordsMessage = GetMessageType<chia_full_node_service, get_block_records_command, TGetBlockRecordsResponse>;
114
113
  export declare function get_block_records<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockRecordsRequest): Promise<ResType<T, TGetBlockRecordsResponse, WsGetBlockRecordsMessage>>;
115
114
  export declare const get_block_spends_command = "get_block_spends";
116
- export declare type get_block_spends_command = typeof get_block_spends_command;
117
- export declare type TGetBlockSpendsRequest = {
115
+ export type get_block_spends_command = typeof get_block_spends_command;
116
+ export type TGetBlockSpendsRequest = {
118
117
  header_hash: str;
119
118
  };
120
- export declare type TGetBlockSpendsResponse = {
119
+ export type TGetBlockSpendsResponse = {
121
120
  block_spends: CoinSpend[];
122
121
  };
123
- export declare type WsGetBlockSpendsMessage = GetMessageType<chia_full_node_service, get_block_spends_command, TGetBlockSpendsResponse>;
122
+ export type WsGetBlockSpendsMessage = GetMessageType<chia_full_node_service, get_block_spends_command, TGetBlockSpendsResponse>;
124
123
  export declare function get_block_spends<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockSpendsRequest): Promise<ResType<T, TGetBlockSpendsResponse, WsGetBlockSpendsMessage>>;
125
124
  export declare const get_block_spends_with_conditions_command = "get_block_spends_with_conditions";
126
- export declare type get_block_spends_with_conditions_command = typeof get_block_spends_with_conditions_command;
127
- export declare type TGetBlockSpendsWithConditionsRequest = {
125
+ export type get_block_spends_with_conditions_command = typeof get_block_spends_with_conditions_command;
126
+ export type TGetBlockSpendsWithConditionsRequest = {
128
127
  header_hash: str;
129
128
  };
130
- export declare type TGetBlockSpendsWithConditionsResponse = {
129
+ export type TGetBlockSpendsWithConditionsResponse = {
131
130
  block_spends_with_conditions: CoinSpendWithConditions[];
132
131
  };
133
- export declare type WsGetBlockSpendsWithConditionsMessage = GetMessageType<chia_full_node_service, get_block_spends_with_conditions_command, TGetBlockSpendsWithConditionsResponse>;
132
+ export type WsGetBlockSpendsWithConditionsMessage = GetMessageType<chia_full_node_service, get_block_spends_with_conditions_command, TGetBlockSpendsWithConditionsResponse>;
134
133
  export declare function get_block_spends_with_conditions<T extends TRPCAgent | TDaemon>(agent: T, data: TGetBlockSpendsWithConditionsRequest): Promise<ResType<T, TGetBlockSpendsWithConditionsResponse, WsGetBlockSpendsWithConditionsMessage>>;
135
134
  export declare const get_unfinished_block_headers_command = "get_unfinished_block_headers";
136
- export declare type get_unfinished_block_headers_command = typeof get_unfinished_block_headers_command;
137
- export declare type TGetUnfinishedBlockHeadersRequest = {};
138
- export declare type TGetUnfinishedBlockHeadersResponse = {
135
+ export type get_unfinished_block_headers_command = typeof get_unfinished_block_headers_command;
136
+ export type TGetUnfinishedBlockHeadersResponse = {
139
137
  headers: UnfinishedHeaderBlock[];
140
138
  };
141
- export declare type WsGetUnfinishedBlockHeadersMessage = GetMessageType<chia_full_node_service, get_unfinished_block_headers_command, TGetUnfinishedBlockHeadersResponse>;
139
+ export type WsGetUnfinishedBlockHeadersMessage = GetMessageType<chia_full_node_service, get_unfinished_block_headers_command, TGetUnfinishedBlockHeadersResponse>;
142
140
  export declare function get_unfinished_block_headers<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetUnfinishedBlockHeadersResponse, WsGetUnfinishedBlockHeadersMessage>>;
143
141
  export declare const get_network_space_command = "get_network_space";
144
- export declare type get_network_space_command = typeof get_network_space_command;
145
- export declare type TGetNetworkSpaceRequest = {
142
+ export type get_network_space_command = typeof get_network_space_command;
143
+ export type TGetNetworkSpaceRequest = {
146
144
  newer_block_header_hash: str;
147
145
  older_block_header_hash: str;
148
146
  };
149
- export declare type TGetNetworkSpaceResponse = {
147
+ export type TGetNetworkSpaceResponse = {
150
148
  space: uint128;
151
149
  };
152
- export declare type WsGetNetworkSpaceMessage = GetMessageType<chia_full_node_service, get_network_space_command, TGetNetworkSpaceResponse>;
150
+ export type WsGetNetworkSpaceMessage = GetMessageType<chia_full_node_service, get_network_space_command, TGetNetworkSpaceResponse>;
153
151
  export declare function get_network_space<T extends TRPCAgent | TDaemon>(agent: T, data: TGetNetworkSpaceRequest): Promise<ResType<T, TGetNetworkSpaceResponse, WsGetNetworkSpaceMessage>>;
154
152
  export declare const get_additions_and_removals_command = "get_additions_and_removals";
155
- export declare type get_additions_and_removals_command = typeof get_additions_and_removals_command;
156
- export declare type TGetAdditionsAndRemovalsRequest = {
153
+ export type get_additions_and_removals_command = typeof get_additions_and_removals_command;
154
+ export type TGetAdditionsAndRemovalsRequest = {
157
155
  header_hash: str;
158
156
  };
159
- export declare type TGetAdditionsAndRemovalsResponse = {
157
+ export type TGetAdditionsAndRemovalsResponse = {
160
158
  additions: CoinRecordBackwardCompatible[];
161
159
  removals: CoinRecordBackwardCompatible[];
162
160
  };
163
- export declare type WsGetAdditionsAndRemovalsMessage = GetMessageType<chia_full_node_service, get_additions_and_removals_command, TGetAdditionsAndRemovalsResponse>;
161
+ export type WsGetAdditionsAndRemovalsMessage = GetMessageType<chia_full_node_service, get_additions_and_removals_command, TGetAdditionsAndRemovalsResponse>;
164
162
  export declare function get_additions_and_removals<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAdditionsAndRemovalsRequest): Promise<ResType<T, TGetAdditionsAndRemovalsResponse, WsGetAdditionsAndRemovalsMessage>>;
165
163
  export declare const get_aggsig_additional_data_command = "get_aggsig_additional_data";
166
- export declare type get_aggsig_additional_data_command = typeof get_aggsig_additional_data_command;
167
- export declare type TGetAggsigAdditionalDataResponse = {
164
+ export type get_aggsig_additional_data_command = typeof get_aggsig_additional_data_command;
165
+ export type TGetAggsigAdditionalDataResponse = {
168
166
  additional_data: str;
169
167
  };
170
- export declare type WsGetAggsigAdditionalDataMessage = GetMessageType<chia_full_node_service, get_aggsig_additional_data_command, TGetAggsigAdditionalDataResponse>;
168
+ export type WsGetAggsigAdditionalDataMessage = GetMessageType<chia_full_node_service, get_aggsig_additional_data_command, TGetAggsigAdditionalDataResponse>;
171
169
  export declare function get_aggsig_additional_data<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAggsigAdditionalDataResponse, WsGetAggsigAdditionalDataMessage>>;
172
170
  export declare const get_initial_freeze_period_command_of_full_node = "get_initial_freeze_period";
173
- export declare type get_initial_freeze_period_command_of_full_node = typeof get_initial_freeze_period_command_of_full_node;
174
- export declare type TGetInitialFreezePeriodRequestOfFullNode = {};
175
- export declare type TGetInitialFreezePeriodResponseOfFullNode = {
171
+ export type get_initial_freeze_period_command_of_full_node = typeof get_initial_freeze_period_command_of_full_node;
172
+ export type TGetInitialFreezePeriodResponseOfFullNode = {
176
173
  INITIAL_FREEZE_END_TIMESTAMP: uint64;
177
174
  };
178
- export declare type WsGetInitialFreezePeriodMessageOfFullNode = GetMessageType<chia_full_node_service, get_initial_freeze_period_command_of_full_node, TGetInitialFreezePeriodResponseOfFullNode>;
175
+ export type WsGetInitialFreezePeriodMessageOfFullNode = GetMessageType<chia_full_node_service, get_initial_freeze_period_command_of_full_node, TGetInitialFreezePeriodResponseOfFullNode>;
179
176
  export declare function get_initial_freeze_period_of_full_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetInitialFreezePeriodResponseOfFullNode, WsGetInitialFreezePeriodMessageOfFullNode>>;
180
- export declare const get_network_info_command_of_full_node = "get_network_info";
181
- export declare type get_network_info_command_of_full_node = typeof get_network_info_command_of_full_node;
182
- export declare type TGetNetworkInfoRequestOfFullNode = {};
183
- export declare type TGetNetworkInfoResponseOfFullNode = {
184
- network_name: str;
185
- network_prefix: str;
186
- };
187
- export declare type WsGetNetworkInfoMessageOfFullNode = GetMessageType<chia_full_node_service, get_network_info_command_of_full_node, TGetNetworkInfoResponseOfFullNode>;
188
- export declare function get_network_info_of_full_node<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetNetworkInfoResponseOfFullNode, WsGetNetworkInfoMessageOfFullNode>>;
189
177
  export declare const get_recent_signage_point_or_eos_command = "get_recent_signage_point_or_eos";
190
- export declare type get_recent_signage_point_or_eos_command = typeof get_recent_signage_point_or_eos_command;
191
- export declare type TGetRecentSignagePointOrEOSCommandRequest = {
178
+ export type get_recent_signage_point_or_eos_command = typeof get_recent_signage_point_or_eos_command;
179
+ export type TGetRecentSignagePointOrEOSCommandRequest = {
192
180
  challenge_hash: str;
193
181
  } | {
194
182
  sp_hash: str;
195
183
  };
196
- export declare type TGetRecentSignagePointOrEOSCommandResponse = {
184
+ export type TGetRecentSignagePointOrEOSCommandResponse = {
197
185
  eos: EndOfSubSlotBundle;
198
186
  time_received: float;
199
187
  reverted: bool;
@@ -202,151 +190,149 @@ export declare type TGetRecentSignagePointOrEOSCommandResponse = {
202
190
  time_received: float;
203
191
  reverted: bool;
204
192
  };
205
- export declare type WsGetRecentSignagePointOrEOSCommandMessage = GetMessageType<chia_full_node_service, get_recent_signage_point_or_eos_command, TGetRecentSignagePointOrEOSCommandResponse>;
193
+ export type WsGetRecentSignagePointOrEOSCommandMessage = GetMessageType<chia_full_node_service, get_recent_signage_point_or_eos_command, TGetRecentSignagePointOrEOSCommandResponse>;
206
194
  export declare function get_recent_signage_point_or_eos<T extends TRPCAgent | TDaemon>(agent: T, data: TGetRecentSignagePointOrEOSCommandRequest): Promise<ResType<T, TGetRecentSignagePointOrEOSCommandResponse, WsGetRecentSignagePointOrEOSCommandMessage>>;
207
195
  export declare const get_coin_records_by_puzzle_hash_command = "get_coin_records_by_puzzle_hash";
208
- export declare type get_coin_records_by_puzzle_hash_command = typeof get_coin_records_by_puzzle_hash_command;
209
- export declare type TGetCoinRecordsByPuzzleHashRequest = {
196
+ export type get_coin_records_by_puzzle_hash_command = typeof get_coin_records_by_puzzle_hash_command;
197
+ export type TGetCoinRecordsByPuzzleHashRequest = {
210
198
  puzzle_hash: str;
211
199
  start_height: uint32;
212
200
  end_height: uint32;
213
201
  include_spent_coins: bool;
214
202
  };
215
- export declare type TGetCoinRecordsByPuzzleHashResponse = {
203
+ export type TGetCoinRecordsByPuzzleHashResponse = {
216
204
  coin_records: CoinRecordBackwardCompatible[];
217
205
  };
218
- export declare type WsGetCoinRecordsByPuzzleHashMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hash_command, TGetCoinRecordsByPuzzleHashResponse>;
206
+ export type WsGetCoinRecordsByPuzzleHashMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hash_command, TGetCoinRecordsByPuzzleHashResponse>;
219
207
  export declare function get_coin_records_by_puzzle_hash<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashRequest): Promise<ResType<T, TGetCoinRecordsByPuzzleHashResponse, WsGetCoinRecordsByPuzzleHashMessage>>;
220
208
  export declare const get_coin_records_by_puzzle_hashes_command = "get_coin_records_by_puzzle_hashes";
221
- export declare type get_coin_records_by_puzzle_hashes_command = typeof get_coin_records_by_puzzle_hashes_command;
222
- export declare type TGetCoinRecordsByPuzzleHashesRequest = {
209
+ export type get_coin_records_by_puzzle_hashes_command = typeof get_coin_records_by_puzzle_hashes_command;
210
+ export type TGetCoinRecordsByPuzzleHashesRequest = {
223
211
  puzzle_hashes: str[];
224
212
  start_height: uint32;
225
213
  end_height: uint32;
226
214
  include_spent_coins: bool;
227
215
  };
228
- export declare type TGetCoinRecordsByPuzzleHashesResponse = {
216
+ export type TGetCoinRecordsByPuzzleHashesResponse = {
229
217
  coin_records: CoinRecordBackwardCompatible[];
230
218
  };
231
- export declare type WsGetCoinRecordsByPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hashes_command, TGetCoinRecordsByPuzzleHashesResponse>;
219
+ export type WsGetCoinRecordsByPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_puzzle_hashes_command, TGetCoinRecordsByPuzzleHashesResponse>;
232
220
  export declare function get_coin_records_by_puzzle_hashes<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByPuzzleHashesRequest): Promise<ResType<T, TGetCoinRecordsByPuzzleHashesResponse, WsGetCoinRecordsByPuzzleHashesMessage>>;
233
221
  export declare const get_coin_record_by_name_command = "get_coin_record_by_name";
234
- export declare type get_coin_record_by_name_command = typeof get_coin_record_by_name_command;
235
- export declare type TGetCoinRecordByNameRequest = {
222
+ export type get_coin_record_by_name_command = typeof get_coin_record_by_name_command;
223
+ export type TGetCoinRecordByNameRequest = {
236
224
  name: str;
237
225
  };
238
- export declare type TGetCoinRecordByNameResponse = {
226
+ export type TGetCoinRecordByNameResponse = {
239
227
  coin_record: CoinRecordBackwardCompatible;
240
228
  };
241
- export declare type WsGetCoinRecordByNameMessage = GetMessageType<chia_full_node_service, get_coin_record_by_name_command, TGetCoinRecordByNameResponse>;
229
+ export type WsGetCoinRecordByNameMessage = GetMessageType<chia_full_node_service, get_coin_record_by_name_command, TGetCoinRecordByNameResponse>;
242
230
  export declare function get_coin_record_by_name<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordByNameRequest): Promise<ResType<T, TGetCoinRecordByNameResponse, WsGetCoinRecordByNameMessage>>;
243
231
  export declare const get_coin_records_by_names_command = "get_coin_records_by_names";
244
- export declare type get_coin_records_by_names_command = typeof get_coin_records_by_names_command;
245
- export declare type TGetCoinRecordsByNamesRequest = {
232
+ export type get_coin_records_by_names_command = typeof get_coin_records_by_names_command;
233
+ export type TGetCoinRecordsByNamesRequest = {
246
234
  names: str[];
247
235
  start_height?: uint32;
248
236
  end_height?: uint32;
249
237
  include_spent_coins?: bool;
250
238
  };
251
- export declare type TGetCoinRecordsByNamesResponse = {
239
+ export type TGetCoinRecordsByNamesResponse = {
252
240
  coin_records: CoinRecordBackwardCompatible[];
253
241
  };
254
- export declare type WsGetCoinRecordsByNamesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_names_command, TGetCoinRecordsByNamesResponse>;
242
+ export type WsGetCoinRecordsByNamesMessage = GetMessageType<chia_full_node_service, get_coin_records_by_names_command, TGetCoinRecordsByNamesResponse>;
255
243
  export declare function get_coin_records_by_names<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByNamesRequest): Promise<ResType<T, TGetCoinRecordsByNamesResponse, WsGetCoinRecordsByNamesMessage>>;
256
244
  export declare const get_coin_records_by_parent_ids_command = "get_coin_records_by_parent_ids";
257
- export declare type get_coin_records_by_parent_ids_command = typeof get_coin_records_by_parent_ids_command;
258
- export declare type TGetCoinRecordsByParentIdsRequest = {
245
+ export type get_coin_records_by_parent_ids_command = typeof get_coin_records_by_parent_ids_command;
246
+ export type TGetCoinRecordsByParentIdsRequest = {
259
247
  parent_ids: str[];
260
248
  start_height?: uint32;
261
249
  end_height?: uint32;
262
250
  include_spent_coins?: bool;
263
251
  };
264
- export declare type TGetCoinRecordsByParentIdsResponse = {
252
+ export type TGetCoinRecordsByParentIdsResponse = {
265
253
  coin_records: CoinRecordBackwardCompatible[];
266
254
  };
267
- export declare type WsGetCoinRecordsByParentIdsMessage = GetMessageType<chia_full_node_service, get_coin_records_by_parent_ids_command, TGetCoinRecordsByParentIdsResponse>;
255
+ export type WsGetCoinRecordsByParentIdsMessage = GetMessageType<chia_full_node_service, get_coin_records_by_parent_ids_command, TGetCoinRecordsByParentIdsResponse>;
268
256
  export declare function get_coin_records_by_parent_ids<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByParentIdsRequest): Promise<ResType<T, TGetCoinRecordsByParentIdsResponse, WsGetCoinRecordsByParentIdsMessage>>;
269
257
  export declare const get_coin_records_by_hint_command = "get_coin_records_by_hint";
270
- export declare type get_coin_records_by_hint_command = typeof get_coin_records_by_hint_command;
271
- export declare type TGetCoinRecordsByHintRequest = {
258
+ export type get_coin_records_by_hint_command = typeof get_coin_records_by_hint_command;
259
+ export type TGetCoinRecordsByHintRequest = {
272
260
  hint: str;
273
261
  start_height?: uint32;
274
262
  end_height?: uint32;
275
263
  include_spent_coins?: bool;
276
264
  };
277
- export declare type TGetCoinRecordsByHintResponse = {
265
+ export type TGetCoinRecordsByHintResponse = {
278
266
  coin_records: CoinRecordBackwardCompatible[];
279
267
  };
280
- export declare type WsGetCoinRecordsByHintMessage = GetMessageType<chia_full_node_service, get_coin_records_by_hint_command, TGetCoinRecordsByHintResponse>;
268
+ export type WsGetCoinRecordsByHintMessage = GetMessageType<chia_full_node_service, get_coin_records_by_hint_command, TGetCoinRecordsByHintResponse>;
281
269
  export declare function get_coin_records_by_hint<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByHintRequest): Promise<ResType<T, TGetCoinRecordsByHintResponse, WsGetCoinRecordsByHintMessage>>;
282
270
  export declare const push_tx_command = "push_tx";
283
- export declare type push_tx_command = typeof push_tx_command;
284
- export declare type TPushTxRequest = {
271
+ export type push_tx_command = typeof push_tx_command;
272
+ export type TPushTxRequest = {
285
273
  spend_bundle: SpendBundle;
286
274
  };
287
- export declare type TPushTxResponse = {
275
+ export type TPushTxResponse = {
288
276
  status: str;
289
277
  };
290
- export declare type WsPushTxMessage = GetMessageType<chia_full_node_service, push_tx_command, TPushTxResponse>;
278
+ export type WsPushTxMessage = GetMessageType<chia_full_node_service, push_tx_command, TPushTxResponse>;
291
279
  export declare function push_tx<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTxRequest): Promise<ResType<T, TPushTxResponse, WsPushTxMessage>>;
292
280
  export declare const get_puzzle_and_solution_command = "get_puzzle_and_solution";
293
- export declare type get_puzzle_and_solution_command = typeof get_puzzle_and_solution_command;
294
- export declare type TGetPuzzleAndSolutionRequest = {
281
+ export type get_puzzle_and_solution_command = typeof get_puzzle_and_solution_command;
282
+ export type TGetPuzzleAndSolutionRequest = {
295
283
  coin_id: str;
296
284
  height: uint32;
297
285
  };
298
- export declare type TGetPuzzleAndSolutionResponse = {
286
+ export type TGetPuzzleAndSolutionResponse = {
299
287
  coin_solution: CoinSpend;
300
288
  };
301
- export declare type WsGetPuzzleAndSolutionMessage = GetMessageType<chia_full_node_service, get_puzzle_and_solution_command, TGetPuzzleAndSolutionResponse>;
289
+ export type WsGetPuzzleAndSolutionMessage = GetMessageType<chia_full_node_service, get_puzzle_and_solution_command, TGetPuzzleAndSolutionResponse>;
302
290
  export declare function get_puzzle_and_solution<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPuzzleAndSolutionRequest): Promise<ResType<T, TGetPuzzleAndSolutionResponse, WsGetPuzzleAndSolutionMessage>>;
303
291
  export declare const get_all_mempool_tx_ids_command = "get_all_mempool_tx_ids";
304
- export declare type get_all_mempool_tx_ids_command = typeof get_all_mempool_tx_ids_command;
305
- export declare type TGetAllMempoolTxIdsRequest = {};
306
- export declare type TGetAllMempoolTxIdsResponse = {
292
+ export type get_all_mempool_tx_ids_command = typeof get_all_mempool_tx_ids_command;
293
+ export type TGetAllMempoolTxIdsResponse = {
307
294
  tx_ids: bytes32[];
308
295
  };
309
- export declare type WsGetAllMempoolTxIdsMessage = GetMessageType<chia_full_node_service, get_all_mempool_tx_ids_command, TGetAllMempoolTxIdsResponse>;
296
+ export type WsGetAllMempoolTxIdsMessage = GetMessageType<chia_full_node_service, get_all_mempool_tx_ids_command, TGetAllMempoolTxIdsResponse>;
310
297
  export declare function get_all_mempool_tx_ids<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllMempoolTxIdsResponse, WsGetAllMempoolTxIdsMessage>>;
311
298
  export declare const get_all_mempool_items_command = "get_all_mempool_items";
312
- export declare type get_all_mempool_items_command = typeof get_all_mempool_items_command;
313
- export declare type TGetAllMempoolItemsRequest = {};
314
- export declare type TGetAllMempoolItemsResponse = {
299
+ export type get_all_mempool_items_command = typeof get_all_mempool_items_command;
300
+ export type TGetAllMempoolItemsResponse = {
315
301
  mempool_items: Record<string, MempoolItemInJsonDict>;
316
302
  };
317
- export declare type WsGetAllMempoolItemsMessage = GetMessageType<chia_full_node_service, get_all_mempool_items_command, TGetAllMempoolItemsResponse>;
303
+ export type WsGetAllMempoolItemsMessage = GetMessageType<chia_full_node_service, get_all_mempool_items_command, TGetAllMempoolItemsResponse>;
318
304
  export declare function get_all_mempool_items<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllMempoolItemsResponse, WsGetAllMempoolItemsMessage>>;
319
305
  export declare const get_mempool_item_by_tx_id_command = "get_mempool_item_by_tx_id";
320
- export declare type get_mempool_item_by_tx_id_command = typeof get_mempool_item_by_tx_id_command;
321
- export declare type TGetMempoolItemByTxIdRequest = {
306
+ export type get_mempool_item_by_tx_id_command = typeof get_mempool_item_by_tx_id_command;
307
+ export type TGetMempoolItemByTxIdRequest = {
322
308
  tx_id: str;
323
309
  include_pending?: bool;
324
310
  };
325
- export declare type TGetMempoolItemByTxIdResponse = {
311
+ export type TGetMempoolItemByTxIdResponse = {
326
312
  mempool_item: MempoolItemInJsonDict;
327
313
  };
328
- export declare type WsGetMempoolItemByTxIdMessage = GetMessageType<chia_full_node_service, get_mempool_item_by_tx_id_command, TGetMempoolItemByTxIdResponse>;
314
+ export type WsGetMempoolItemByTxIdMessage = GetMessageType<chia_full_node_service, get_mempool_item_by_tx_id_command, TGetMempoolItemByTxIdResponse>;
329
315
  export declare function get_mempool_item_by_tx_id<T extends TRPCAgent | TDaemon>(agent: T, data: TGetMempoolItemByTxIdRequest): Promise<ResType<T, TGetMempoolItemByTxIdResponse, WsGetMempoolItemByTxIdMessage>>;
330
316
  export declare const get_mempool_items_by_coin_name_command = "get_mempool_items_by_coin_name";
331
- export declare type get_mempool_items_by_coin_name_command = typeof get_mempool_items_by_coin_name_command;
332
- export declare type TGetMempoolItemsByCoinNameRequest = {
317
+ export type get_mempool_items_by_coin_name_command = typeof get_mempool_items_by_coin_name_command;
318
+ export type TGetMempoolItemsByCoinNameRequest = {
333
319
  coin_name: str;
334
320
  };
335
- export declare type TGetMempoolItemsByCoinNameResponse = {
321
+ export type TGetMempoolItemsByCoinNameResponse = {
336
322
  mempool_items: MempoolItemInJsonDict[];
337
323
  };
338
- export declare type WsGetMempoolItemsByCoinNameMessage = GetMessageType<chia_full_node_service, get_mempool_items_by_coin_name_command, TGetMempoolItemsByCoinNameResponse>;
324
+ export type WsGetMempoolItemsByCoinNameMessage = GetMessageType<chia_full_node_service, get_mempool_items_by_coin_name_command, TGetMempoolItemsByCoinNameResponse>;
339
325
  export declare function get_mempool_items_by_coin_name<T extends TRPCAgent | TDaemon>(agent: T, data: TGetMempoolItemsByCoinNameRequest): Promise<ResType<T, TGetMempoolItemsByCoinNameResponse, WsGetMempoolItemsByCoinNameMessage>>;
340
326
  export declare const get_fee_estimate_command = "get_fee_estimate";
341
- export declare type get_fee_estimate_command = typeof get_fee_estimate_command;
342
- export declare type TGetFeeEstimateRequest = {
327
+ export type get_fee_estimate_command = typeof get_fee_estimate_command;
328
+ export type TGetFeeEstimateRequest = {
343
329
  spend_bundle?: SpendBundle;
344
330
  cost?: uint64;
345
331
  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";
346
332
  spend_count?: uint64;
347
333
  target_times: int[];
348
334
  };
349
- export declare type TGetFeeEstimateResponse = {
335
+ export type TGetFeeEstimateResponse = {
350
336
  estimates: uint64[];
351
337
  target_times: int[];
352
338
  current_fee_rate: uint64;
@@ -363,100 +349,100 @@ export declare type TGetFeeEstimateResponse = {
363
349
  fee_rate_last_block: float;
364
350
  last_tx_block_height: int;
365
351
  };
366
- export declare type WsGetFeeEstimateMessage = GetMessageType<chia_full_node_service, get_fee_estimate_command, TGetFeeEstimateResponse>;
352
+ export type WsGetFeeEstimateMessage = GetMessageType<chia_full_node_service, get_fee_estimate_command, TGetFeeEstimateResponse>;
367
353
  export declare function get_fee_estimate<T extends TRPCAgent | TDaemon>(agent: T, data: TGetFeeEstimateRequest): Promise<ResType<T, TGetFeeEstimateResponse, WsGetFeeEstimateMessage>>;
368
354
  export declare const get_all_blocks_command = "get_all_blocks";
369
- export declare type get_all_blocks_command = typeof get_all_blocks_command;
370
- export declare type TGetAllBlocksResponse = {
355
+ export type get_all_blocks_command = typeof get_all_blocks_command;
356
+ export type TGetAllBlocksResponse = {
371
357
  blocks: FullBlock[];
372
358
  success: bool;
373
359
  };
374
- export declare type WsGetAllBlocksMessage = GetMessageType<chia_full_node_service, get_all_blocks_command, TGetAllBlocksResponse>;
360
+ export type WsGetAllBlocksMessage = GetMessageType<chia_full_node_service, get_all_blocks_command, TGetAllBlocksResponse>;
375
361
  export declare function get_all_blocks<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllBlocksResponse, WsGetAllBlocksMessage>>;
376
362
  export declare const farm_block_command = "farm_block";
377
- export declare type farm_block_command = typeof farm_block_command;
378
- export declare type TFarmBlockRequest = {
363
+ export type farm_block_command = typeof farm_block_command;
364
+ export type TFarmBlockRequest = {
379
365
  address: str;
380
366
  guarantee_tx_block?: bool;
381
367
  blocks?: int;
382
368
  };
383
- export declare type TFarmBlockResponse = {
369
+ export type TFarmBlockResponse = {
384
370
  new_peak_height: int;
385
371
  success: bool;
386
372
  };
387
- export declare type WsFarmBlockMessage = GetMessageType<chia_full_node_service, farm_block_command, TFarmBlockResponse>;
373
+ export type WsFarmBlockMessage = GetMessageType<chia_full_node_service, farm_block_command, TFarmBlockResponse>;
388
374
  export declare function farm_block<T extends TRPCAgent | TDaemon>(agent: T, data: TFarmBlockRequest): Promise<ResType<T, TFarmBlockResponse, WsFarmBlockMessage>>;
389
375
  export declare const set_auto_farming_command = "set_auto_farming";
390
- export declare type set_auto_farming_command = typeof set_auto_farming_command;
391
- export declare type TSetAutoFarmingRequest = {
376
+ export type set_auto_farming_command = typeof set_auto_farming_command;
377
+ export type TSetAutoFarmingRequest = {
392
378
  auto_farm: bool;
393
379
  };
394
- export declare type TSetAutoFarmingResponse = {
380
+ export type TSetAutoFarmingResponse = {
395
381
  auto_farm_enabled: bool;
396
382
  success: bool;
397
383
  };
398
- export declare type WsSetAutoFarmingMessage = GetMessageType<chia_full_node_service, set_auto_farming_command, TSetAutoFarmingResponse>;
384
+ export type WsSetAutoFarmingMessage = GetMessageType<chia_full_node_service, set_auto_farming_command, TSetAutoFarmingResponse>;
399
385
  export declare function set_auto_farming<T extends TRPCAgent | TDaemon>(agent: T, data: TSetAutoFarmingRequest): Promise<ResType<T, TSetAutoFarmingResponse, WsSetAutoFarmingMessage>>;
400
386
  export declare const get_auto_farming_command = "get_auto_farming";
401
- export declare type get_auto_farming_command = typeof get_auto_farming_command;
402
- export declare type TGetAutoFarmingResponse = {
387
+ export type get_auto_farming_command = typeof get_auto_farming_command;
388
+ export type TGetAutoFarmingResponse = {
403
389
  new_peak_height: uint64;
404
390
  success: bool;
405
391
  };
406
- export declare type WsGetAutoFarmingMessage = GetMessageType<chia_full_node_service, get_auto_farming_command, TGetAutoFarmingResponse>;
392
+ export type WsGetAutoFarmingMessage = GetMessageType<chia_full_node_service, get_auto_farming_command, TGetAutoFarmingResponse>;
407
393
  export declare function get_auto_farming<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAutoFarmingResponse, WsGetAutoFarmingMessage>>;
408
394
  export declare const get_farming_ph_command = "get_farming_ph";
409
- export declare type get_farming_ph_command = typeof get_farming_ph_command;
410
- export declare type TGetFarmingPhResponse = {
395
+ export type get_farming_ph_command = typeof get_farming_ph_command;
396
+ export type TGetFarmingPhResponse = {
411
397
  puzzle_hash: str;
412
398
  success: bool;
413
399
  };
414
- export declare type WsGetFarmingPhMessage = GetMessageType<chia_full_node_service, get_farming_ph_command, TGetFarmingPhResponse>;
400
+ export type WsGetFarmingPhMessage = GetMessageType<chia_full_node_service, get_farming_ph_command, TGetFarmingPhResponse>;
415
401
  export declare function get_farming_ph<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetFarmingPhResponse, WsGetFarmingPhMessage>>;
416
402
  export declare const get_all_coins_command = "get_all_coins";
417
- export declare type get_all_coins_command = typeof get_all_coins_command;
418
- export declare type TGetAllCoinsRequest = {
403
+ export type get_all_coins_command = typeof get_all_coins_command;
404
+ export type TGetAllCoinsRequest = {
419
405
  include_spent_coins?: bool;
420
406
  };
421
- export declare type TGetAllCoinsResponse = {
407
+ export type TGetAllCoinsResponse = {
422
408
  coin_records: CoinRecord[];
423
409
  success: bool;
424
410
  };
425
- export declare type WsGetAllCoinsMessage = GetMessageType<chia_full_node_service, get_all_coins_command, TGetAllCoinsResponse>;
411
+ export type WsGetAllCoinsMessage = GetMessageType<chia_full_node_service, get_all_coins_command, TGetAllCoinsResponse>;
426
412
  export declare function get_all_coins<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAllCoinsRequest): Promise<ResType<T, TGetAllCoinsResponse, WsGetAllCoinsMessage>>;
427
413
  export declare const get_all_puzzle_hashes_command = "get_all_puzzle_hashes";
428
- export declare type get_all_puzzle_hashes_command = typeof get_all_puzzle_hashes_command;
429
- export declare type TGetAllPuzzleHashesResponse = {
414
+ export type get_all_puzzle_hashes_command = typeof get_all_puzzle_hashes_command;
415
+ export type TGetAllPuzzleHashesResponse = {
430
416
  puzzle_hashes: Record<bytes32, [uint128, int]>;
431
417
  success: bool;
432
418
  };
433
- export declare type WsGetAllPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_all_puzzle_hashes_command, TGetAllPuzzleHashesResponse>;
419
+ export type WsGetAllPuzzleHashesMessage = GetMessageType<chia_full_node_service, get_all_puzzle_hashes_command, TGetAllPuzzleHashesResponse>;
434
420
  export declare function get_all_puzzle_hashes<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetAllPuzzleHashesResponse, WsGetAllPuzzleHashesMessage>>;
435
421
  export declare const revert_blocks_command = "revert_blocks";
436
- export declare type revert_blocks_command = typeof revert_blocks_command;
437
- export declare type TRevertBlocksRequest = {
422
+ export type revert_blocks_command = typeof revert_blocks_command;
423
+ export type TRevertBlocksRequest = {
438
424
  num_of_blocks?: int;
439
425
  delete_all_blocks?: bool;
440
426
  };
441
- export declare type TRevertBlocksResponse = {
427
+ export type TRevertBlocksResponse = {
442
428
  new_peak_height: int;
443
429
  success: bool;
444
430
  };
445
- export declare type WsRevertBlocksMessage = GetMessageType<chia_full_node_service, revert_blocks_command, TRevertBlocksResponse>;
431
+ export type WsRevertBlocksMessage = GetMessageType<chia_full_node_service, revert_blocks_command, TRevertBlocksResponse>;
446
432
  export declare function revert_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TRevertBlocksRequest): Promise<ResType<T, TRevertBlocksResponse, WsRevertBlocksMessage>>;
447
433
  export declare const reorg_blocks_command = "reorg_blocks";
448
- export declare type reorg_blocks_command = typeof reorg_blocks_command;
449
- export declare type TReorgBlocksRequest = {
434
+ export type reorg_blocks_command = typeof reorg_blocks_command;
435
+ export type TReorgBlocksRequest = {
450
436
  num_of_blocks_to_rev?: int;
451
437
  num_of_new_blocks?: int;
452
438
  revert_all_blocks?: bool;
453
439
  random_seed?: str;
454
440
  };
455
- export declare type TReorgBlocksResponse = {
441
+ export type TReorgBlocksResponse = {
456
442
  new_peak_height: int;
457
443
  success: bool;
458
444
  };
459
- export declare type WsReorgBlocksMessage = GetMessageType<chia_full_node_service, reorg_blocks_command, TReorgBlocksResponse>;
445
+ export type WsReorgBlocksMessage = GetMessageType<chia_full_node_service, reorg_blocks_command, TReorgBlocksResponse>;
460
446
  export declare function reorg_blocks<T extends TRPCAgent | TDaemon>(agent: T, data: TReorgBlocksRequest): Promise<ResType<T, TReorgBlocksResponse, WsReorgBlocksMessage>>;
461
- export declare 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 | TGetNetworkInfoResponseOfFullNode | TGetNetworkSpaceResponse | TGetUnfinishedBlockHeadersResponse | TPushTxResponse | TGetPuzzleAndSolutionResponse | TGetFeeEstimateResponse | TGetAllBlocksResponse | TFarmBlockResponse | TSetAutoFarmingResponse | TGetAutoFarmingResponse | TGetFarmingPhResponse | TGetAllCoinsResponse | TGetAllPuzzleHashesResponse | TRevertBlocksResponse | TReorgBlocksResponse;
462
- export declare 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 | WsGetNetworkInfoMessageOfFullNode | WsGetNetworkSpaceMessage | WsGetUnfinishedBlockHeadersMessage | WsPushTxMessage | WsGetPuzzleAndSolutionMessage | WsGetFeeEstimateMessage | WsGetAllBlocksMessage | WsFarmBlockMessage | WsSetAutoFarmingMessage | WsGetAutoFarmingMessage | WsGetFarmingPhMessage | WsGetAllCoinsMessage | WsGetAllPuzzleHashesMessage | WsRevertBlocksMessage | WsReorgBlocksMessage;
447
+ 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;
448
+ 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;
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- 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_aggsig_additional_data = exports.get_aggsig_additional_data_command = 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_with_conditions = exports.get_block_spends_with_conditions_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.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_items_by_coin_name = exports.get_mempool_items_by_coin_name_command = exports.get_mempool_item_by_tx_id = 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 = void 0;
12
+ 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_initial_freeze_period_of_full_node = exports.get_initial_freeze_period_command_of_full_node = exports.get_aggsig_additional_data = exports.get_aggsig_additional_data_command = 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_with_conditions = exports.get_block_spends_with_conditions_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.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_items_by_coin_name = exports.get_mempool_items_by_coin_name_command = exports.get_mempool_item_by_tx_id = exports.get_mempool_item_by_tx_id_command = exports.get_all_mempool_items = 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) {
@@ -110,13 +110,6 @@ function get_initial_freeze_period_of_full_node(agent) {
110
110
  });
111
111
  }
112
112
  exports.get_initial_freeze_period_of_full_node = get_initial_freeze_period_of_full_node;
113
- exports.get_network_info_command_of_full_node = "get_network_info";
114
- function get_network_info_of_full_node(agent) {
115
- return __awaiter(this, void 0, void 0, function* () {
116
- return agent.sendMessage(exports.chia_full_node_service, exports.get_network_info_command_of_full_node);
117
- });
118
- }
119
- exports.get_network_info_of_full_node = get_network_info_of_full_node;
120
113
  exports.get_recent_signage_point_or_eos_command = "get_recent_signage_point_or_eos";
121
114
  function get_recent_signage_point_or_eos(agent, data) {
122
115
  return __awaiter(this, void 0, void 0, function* () {