chia-agent 9.2.0 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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";
@@ -11,6 +11,11 @@ import { CAT } from "../../chia/wallet/cat_wallet/cat_constants";
11
11
  import { TDriverDict } from "../../chia/wallet/puzzle_drivers";
12
12
  import { NFTInfo } from "../../chia/wallet/nft_wallet/nft_info";
13
13
  import { Mirror, SingletonRecord } from "../../chia/data_layer/data_layer_wallet";
14
+ import { TPushTxResponseOfWallet } from "../index";
15
+ import { GetMessageType, ResType } from "../../types";
16
+ import { TDaemon } from "../../../daemon/index";
17
+ import { CoinRecord } from "../../chia/types/coin_record";
18
+ import { SigningMode } from "../../chia/types/signing_mode";
14
19
  export declare const chia_wallet_service = "chia_wallet";
15
20
  export declare type chia_wallet_service = typeof chia_wallet_service;
16
21
  export declare const log_in_command = "log_in";
@@ -24,13 +29,15 @@ export declare type TLoginResponse = {
24
29
  success: False;
25
30
  error: "Unknown Error";
26
31
  };
27
- export declare function log_in(agent: TRPCAgent, data: TLoginRequest): Promise<TLoginResponse | import("../../../rpc").ErrorResponse>;
32
+ export declare type WsLoginMessage = GetMessageType<chia_wallet_service, log_in_command, TLoginResponse>;
33
+ export declare function log_in<T extends TRPCAgent | TDaemon>(agent: T, data: TLoginRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TLoginResponse, WsLoginMessage>>;
28
34
  export declare const get_logged_in_fingerprint_command = "get_logged_in_fingerprint";
29
35
  export declare type get_logged_in_fingerprint_command = typeof get_logged_in_fingerprint_command;
30
36
  export declare type TGetLoggedInFingerprintResponse = {
31
37
  fingerprint: Optional<int>;
32
38
  };
33
- export declare function get_logged_in_fingerprint(agent: TRPCAgent): Promise<TGetLoggedInFingerprintResponse | import("../../../rpc").ErrorResponse>;
39
+ export declare type WsGetLoggedInFingerprintMessage = GetMessageType<chia_wallet_service, get_logged_in_fingerprint_command, TGetLoggedInFingerprintResponse>;
40
+ export declare function get_logged_in_fingerprint<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetLoggedInFingerprintResponse, WsGetLoggedInFingerprintMessage>>;
34
41
  export declare const get_public_keys_command = "get_public_keys";
35
42
  export declare type get_public_keys_command = typeof get_public_keys_command;
36
43
  export declare type TGetPublicKeysRequest = {};
@@ -39,7 +46,8 @@ export declare type TGetPublicKeysResponse = {
39
46
  } | {
40
47
  keyring_is_locked: True;
41
48
  };
42
- export declare function get_public_keys(agent: TRPCAgent): Promise<TGetPublicKeysResponse | import("../../../rpc").ErrorResponse>;
49
+ export declare type WsGetPublicKeysMessage = GetMessageType<chia_wallet_service, get_public_keys_command, TGetPublicKeysResponse>;
50
+ export declare function get_public_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetPublicKeysResponse, WsGetPublicKeysMessage>>;
43
51
  export declare const get_private_key_command = "get_private_key";
44
52
  export declare type get_private_key_command = typeof get_private_key_command;
45
53
  export declare type TGetPrivateKeyRequest = {
@@ -60,14 +68,16 @@ export declare type TGetPrivateKeyResponse = {
60
68
  fingerprint: int;
61
69
  };
62
70
  };
63
- export declare function get_private_key(agent: TRPCAgent, data: TGetPrivateKeyRequest): Promise<TGetPrivateKeyResponse | import("../../../rpc").ErrorResponse>;
71
+ export declare type WsGetPrivateKeyMessage = GetMessageType<chia_wallet_service, get_private_key_command, TGetPrivateKeyResponse>;
72
+ export declare function get_private_key<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPrivateKeyRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetPrivateKeyResponse, WsGetPrivateKeyMessage>>;
64
73
  export declare const generate_mnemonic_command = "generate_mnemonic";
65
74
  export declare type generate_mnemonic_command = typeof generate_mnemonic_command;
66
75
  export declare type TGenerateMnemonicRequest = {};
67
76
  export declare type TGenerateMnemonicResponse = {
68
77
  mnemonic: str[];
69
78
  };
70
- export declare function generate_mnemonic(agent: TRPCAgent): Promise<TGenerateMnemonicResponse | import("../../../rpc").ErrorResponse>;
79
+ export declare type WsGenerateMnemonicMessage = GetMessageType<chia_wallet_service, generate_mnemonic_command, TGenerateMnemonicResponse>;
80
+ export declare function generate_mnemonic<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGenerateMnemonicResponse, WsGenerateMnemonicMessage>>;
71
81
  export declare const add_key_command = "add_key";
72
82
  export declare type add_key_command = typeof add_key_command;
73
83
  export declare type TAddKeyRequest = {
@@ -80,14 +90,16 @@ export declare type TAddKeyResponse = {
80
90
  } | {
81
91
  fingerprint: int;
82
92
  };
83
- export declare function add_key(agent: TRPCAgent, data: TAddKeyRequest): Promise<TAddKeyResponse | import("../../../rpc").ErrorResponse>;
93
+ export declare type WsAddKeyMessage = GetMessageType<chia_wallet_service, add_key_command, TAddKeyResponse>;
94
+ export declare function add_key<T extends TRPCAgent | TDaemon>(agent: T, data: TAddKeyRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TAddKeyResponse, WsAddKeyMessage>>;
84
95
  export declare const delete_key_command = "delete_key";
85
96
  export declare type delete_key_command = typeof delete_key_command;
86
97
  export declare type TDeleteKeyRequest = {
87
98
  fingerprint: int;
88
99
  };
89
100
  export declare type TDeleteKeyResponse = {};
90
- export declare function delete_key(agent: TRPCAgent, data: TDeleteKeyRequest): Promise<TDeleteKeyResponse | import("../../../rpc").ErrorResponse>;
101
+ export declare type WsDeleteKeyMessage = GetMessageType<chia_wallet_service, delete_key_command, TDeleteKeyResponse>;
102
+ export declare function delete_key<T extends TRPCAgent | TDaemon>(agent: T, data: TDeleteKeyRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDeleteKeyResponse, WsDeleteKeyMessage>>;
91
103
  export declare const check_delete_key_command = "check_delete_key";
92
104
  export declare type check_delete_key_command = typeof check_delete_key_command;
93
105
  export declare type TCheckDeleteKeyRequest = {
@@ -100,7 +112,8 @@ export declare type TCheckDeleteKeyResponse = {
100
112
  used_for_pool_rewards: bool;
101
113
  wallet_balance: bool;
102
114
  };
103
- export declare function check_delete_key(agent: TRPCAgent, data: TCheckDeleteKeyRequest): Promise<import("../../../rpc").ErrorResponse | TCheckDeleteKeyResponse>;
115
+ export declare type WsCheckDeleteKeyMessage = GetMessageType<chia_wallet_service, check_delete_key_command, TCheckDeleteKeyResponse>;
116
+ export declare function check_delete_key<T extends TRPCAgent | TDaemon>(agent: T, data: TCheckDeleteKeyRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCheckDeleteKeyResponse, WsCheckDeleteKeyMessage>>;
104
117
  export declare const delete_all_keys_command = "delete_all_keys";
105
118
  export declare type delete_all_keys_command = typeof delete_all_keys_command;
106
119
  export declare type TDeleteAllKeysRequest = {};
@@ -108,7 +121,8 @@ export declare type TDeleteAllKeysResponse = {} | {
108
121
  success: False;
109
122
  error: str;
110
123
  };
111
- export declare function delete_all_keys(agent: TRPCAgent): Promise<TDeleteAllKeysResponse | import("../../../rpc").ErrorResponse>;
124
+ export declare type WsDeleteAllKeysMessage = GetMessageType<chia_wallet_service, delete_all_keys_command, TDeleteAllKeysResponse>;
125
+ export declare function delete_all_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDeleteAllKeysResponse, WsDeleteAllKeysMessage>>;
112
126
  export declare const get_sync_status_command = "get_sync_status";
113
127
  export declare type get_sync_status_command = typeof get_sync_status_command;
114
128
  export declare type TGetSyncStatusRequest = {};
@@ -117,42 +131,55 @@ export declare type TGetSyncStatusResponse = {
117
131
  syncing: bool;
118
132
  genesis_initialized: bool;
119
133
  };
120
- export declare function get_sync_status(agent: TRPCAgent): Promise<TGetSyncStatusResponse | import("../../../rpc").ErrorResponse>;
134
+ export declare type WsGetSyncStatusMessage = GetMessageType<chia_wallet_service, get_sync_status_command, TGetSyncStatusResponse>;
135
+ export declare function get_sync_status<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetSyncStatusResponse, WsGetSyncStatusMessage>>;
121
136
  export declare const get_height_info_command = "get_height_info";
122
137
  export declare type get_height_info_command = typeof get_height_info_command;
123
138
  export declare type TGetHeightInfoRequest = {};
124
139
  export declare type TGetHeightInfoResponse = {
125
140
  height: uint32;
126
141
  };
127
- export declare function get_height_info(agent: TRPCAgent): Promise<TGetHeightInfoResponse | import("../../../rpc").ErrorResponse>;
142
+ export declare type WsGetHeightInfoMessage = GetMessageType<chia_wallet_service, get_height_info_command, TGetHeightInfoResponse>;
143
+ export declare function get_height_info<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetHeightInfoResponse, WsGetHeightInfoMessage>>;
128
144
  export declare const push_tx_command = "push_tx";
129
145
  export declare type push_tx_command = typeof push_tx_command;
130
146
  export declare type TPushTxRequest = {
131
147
  spend_bundle: str;
132
148
  };
133
149
  export declare type TPushTxResponse = {};
134
- export declare function push_tx(agent: TRPCAgent, data: TPushTxRequest): Promise<TPushTxResponse | import("../../../rpc").ErrorResponse>;
150
+ export declare type WsPushTxMessageOfWallet = GetMessageType<chia_wallet_service, push_tx_command, TPushTxResponse>;
151
+ export declare function push_tx<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTxRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TPushTxResponseOfWallet, WsPushTxMessageOfWallet>>;
135
152
  export declare const push_transactions_command = "push_transactions";
136
153
  export declare type push_transactions_command = typeof push_transactions_command;
137
154
  export declare type TPushTransactionsRequest = {
138
155
  transactions: str;
139
156
  };
140
157
  export declare type TPushTransactionsResponse = {};
141
- export declare function push_transactions(agent: TRPCAgent, data: TPushTransactionsRequest): Promise<TPushTransactionsResponse | import("../../../rpc").ErrorResponse>;
158
+ export declare type WsPushTransactionsMessage = GetMessageType<chia_wallet_service, push_transactions_command, TPushTransactionsResponse>;
159
+ export declare function push_transactions<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTransactionsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TPushTransactionsResponse, WsPushTransactionsMessage>>;
142
160
  export declare const farm_block_command = "farm_block";
143
161
  export declare type farm_block_command = typeof farm_block_command;
144
162
  export declare type TFarmBlockRequest = {
145
163
  address: str;
146
164
  };
147
165
  export declare type TFarmBlockResponse = {};
148
- export declare function farm_block(agent: TRPCAgent, data: TFarmBlockRequest): Promise<TFarmBlockResponse | import("../../../rpc").ErrorResponse>;
166
+ export declare type WsFarmBlockMessage = GetMessageType<chia_wallet_service, farm_block_command, TFarmBlockResponse>;
167
+ export declare function farm_block<T extends TRPCAgent | TDaemon>(agent: T, data: TFarmBlockRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TFarmBlockResponse, WsFarmBlockMessage>>;
168
+ export declare const get_timestamp_for_height_command = "get_timestamp_for_height";
169
+ export declare type get_timestamp_for_height_command = typeof get_timestamp_for_height_command;
170
+ export declare type TGetTimestampForHeightResponse = {
171
+ timestamp: uint64;
172
+ };
173
+ export declare type WsGetTimestampForHeightMessage = GetMessageType<chia_wallet_service, get_timestamp_for_height_command, TGetTimestampForHeightResponse>;
174
+ export declare function get_timestamp_for_height<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTimestampForHeightResponse, WsGetTimestampForHeightMessage>>;
149
175
  export declare const get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
150
176
  export declare type get_initial_freeze_period_command_of_wallet = typeof get_initial_freeze_period_command_of_wallet;
151
177
  export declare type TGetInitialFreezePeriodRequestOfWallet = {};
152
178
  export declare type TGetInitialFreezePeriodResponseOfWallet = {
153
179
  INITIAL_FREEZE_END_TIMESTAMP: 1620061200;
154
180
  };
155
- export declare function get_initial_freeze_period_of_wallet(agent: TRPCAgent): Promise<TGetInitialFreezePeriodResponseOfWallet | import("../../../rpc").ErrorResponse>;
181
+ export declare type WsGetInitialFreezePeriodMessageOfWallet = GetMessageType<chia_wallet_service, get_initial_freeze_period_command_of_wallet, TGetInitialFreezePeriodResponseOfWallet>;
182
+ export declare function get_initial_freeze_period_of_wallet<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetInitialFreezePeriodResponseOfWallet, WsGetInitialFreezePeriodMessageOfWallet>>;
156
183
  export declare const get_network_info_command_of_wallet = "get_network_info";
157
184
  export declare type get_network_info_command_of_wallet = typeof get_network_info_command_of_wallet;
158
185
  export declare type TGetNetworkInfoRequestOfWallet = {};
@@ -160,7 +187,8 @@ export declare type TGetNetworkInfoResponseOfWallet = {
160
187
  network_name: str;
161
188
  network_prefix: str;
162
189
  };
163
- export declare function get_network_info_of_wallet(agent: TRPCAgent): Promise<TGetNetworkInfoResponseOfWallet | import("../../../rpc").ErrorResponse>;
190
+ export declare type WsGetNetworkInfoMessageOfWallet = GetMessageType<chia_wallet_service, get_network_info_command_of_wallet, TGetNetworkInfoResponseOfWallet>;
191
+ export declare function get_network_info_of_wallet<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetNetworkInfoResponseOfWallet, WsGetNetworkInfoMessageOfWallet>>;
164
192
  export declare const get_wallets_command = "get_wallets";
165
193
  export declare type get_wallets_command = typeof get_wallets_command;
166
194
  export declare type TGetWalletsRequest = {
@@ -171,7 +199,8 @@ export declare type TGetWalletsResponse = {
171
199
  wallets: WalletInfo[];
172
200
  fingerprint?: int;
173
201
  };
174
- export declare function get_wallets(agent: TRPCAgent, data: TGetWalletsRequest): Promise<TGetWalletsResponse | import("../../../rpc").ErrorResponse>;
202
+ export declare type WsGetWalletsMessage = GetMessageType<chia_wallet_service, get_wallets_command, TGetWalletsResponse>;
203
+ export declare function get_wallets<T extends TRPCAgent | TDaemon>(agent: T, data: TGetWalletsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetWalletsResponse, WsGetWalletsMessage>>;
175
204
  export declare type TCreate_New_CAT_WalletRequest = {
176
205
  fee?: uint64;
177
206
  wallet_type: "cat_wallet";
@@ -288,7 +317,8 @@ export declare const create_new_wallet_command = "create_new_wallet";
288
317
  export declare type create_new_wallet_command = typeof create_new_wallet_command;
289
318
  export declare type TCreateNewWalletRequest = TCreate_New_CAT_WalletRequest | TCreate_New_RL_WalletRequest | TCreate_New_DID_WalletRequest | TCreate_New_NFT_WalletRequest | TCreate_New_Pool_WalletRequest;
290
319
  export declare type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_RL_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_NFT_WalletResponse | TCreate_New_Pool_WalletResponse | TCreateWalletErrorResponse;
291
- export declare function create_new_wallet(agent: TRPCAgent, data: TCreateNewWalletRequest): Promise<TCreateNewWalletResponse | import("../../../rpc").ErrorResponse>;
320
+ export declare type WsCreateNewWalletMessage = GetMessageType<chia_wallet_service, create_new_wallet_command, TCreateNewWalletResponse>;
321
+ export declare function create_new_wallet<T extends TRPCAgent | TDaemon>(agent: T, data: TCreateNewWalletRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCreateNewWalletResponse, WsCreateNewWalletMessage>>;
292
322
  export declare const get_wallet_balance_command = "get_wallet_balance";
293
323
  export declare type get_wallet_balance_command = typeof get_wallet_balance_command;
294
324
  export declare type TGetWalletBalanceRequest = {
@@ -309,7 +339,8 @@ export declare type TGetWalletBalanceResponse = {
309
339
  asset_id?: str;
310
340
  };
311
341
  };
312
- export declare function get_wallet_balance(agent: TRPCAgent, data: TGetWalletBalanceRequest): Promise<TGetWalletBalanceResponse | import("../../../rpc").ErrorResponse>;
342
+ export declare type WsGetWalletBalanceMessage = GetMessageType<chia_wallet_service, get_wallet_balance_command, TGetWalletBalanceResponse>;
343
+ export declare function get_wallet_balance<T extends TRPCAgent | TDaemon>(agent: T, data: TGetWalletBalanceRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetWalletBalanceResponse, WsGetWalletBalanceMessage>>;
313
344
  export declare const get_transaction_command = "get_transaction";
314
345
  export declare type get_transaction_command = typeof get_transaction_command;
315
346
  export declare type TGetTransactionRequest = {
@@ -319,7 +350,8 @@ export declare type TGetTransactionResponse = {
319
350
  transaction: TransactionRecordConvenience;
320
351
  transaction_id: TransactionRecord["name"];
321
352
  };
322
- export declare function get_transaction(agent: TRPCAgent, data: TGetTransactionRequest): Promise<TGetTransactionResponse | import("../../../rpc").ErrorResponse>;
353
+ export declare type WsGetTransactionMessage = GetMessageType<chia_wallet_service, get_transaction_command, TGetTransactionResponse>;
354
+ export declare function get_transaction<T extends TRPCAgent | TDaemon>(agent: T, data: TGetTransactionRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTransactionResponse, WsGetTransactionMessage>>;
323
355
  export declare const get_transactions_command = "get_transactions";
324
356
  export declare type get_transactions_command = typeof get_transactions_command;
325
357
  export declare type TGetTransactionsRequest = {
@@ -334,7 +366,8 @@ export declare type TGetTransactionsResponse = {
334
366
  transactions: TransactionRecordConvenience[];
335
367
  wallet_id: int;
336
368
  };
337
- export declare function get_transactions(agent: TRPCAgent, data: TGetTransactionsRequest): Promise<TGetTransactionsResponse | import("../../../rpc").ErrorResponse>;
369
+ export declare type WsGetTransactionsMessage = GetMessageType<chia_wallet_service, get_transactions_command, TGetTransactionsResponse>;
370
+ export declare function get_transactions<T extends TRPCAgent | TDaemon>(agent: T, data: TGetTransactionsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTransactionsResponse, WsGetTransactionsMessage>>;
338
371
  export declare const get_next_address_command = "get_next_address";
339
372
  export declare type get_next_address_command = typeof get_next_address_command;
340
373
  export declare type TGetNextAddressRequest = {
@@ -345,7 +378,8 @@ export declare type TGetNextAddressResponse = {
345
378
  wallet_id: uint32;
346
379
  address: str;
347
380
  };
348
- export declare function get_next_address(agent: TRPCAgent, data: TGetNextAddressRequest): Promise<TGetNextAddressResponse | import("../../../rpc").ErrorResponse>;
381
+ export declare type WsGetNextAddressMessage = GetMessageType<chia_wallet_service, get_next_address_command, TGetNextAddressResponse>;
382
+ export declare function get_next_address<T extends TRPCAgent | TDaemon>(agent: T, data: TGetNextAddressRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetNextAddressResponse, WsGetNextAddressMessage>>;
349
383
  export declare const send_transaction_command = "send_transaction";
350
384
  export declare type send_transaction_command = typeof send_transaction_command;
351
385
  export declare type TSendTransactionRequest = {
@@ -355,27 +389,47 @@ export declare type TSendTransactionRequest = {
355
389
  address: str;
356
390
  memos?: str[];
357
391
  min_coin_amount?: uint64;
392
+ max_coin_amount?: uint64;
393
+ exclude_coin_amounts?: uint64[];
394
+ exclude_coin_ids?: str[];
358
395
  };
359
396
  export declare type TSendTransactionResponse = {
360
397
  transaction: TransactionRecordConvenience;
361
398
  transaction_id: TransactionRecord["name"];
362
399
  };
363
- export declare function send_transaction(agent: TRPCAgent, data: TSendTransactionRequest): Promise<TSendTransactionResponse | import("../../../rpc").ErrorResponse>;
400
+ export declare type WsSendTransactionMessage = GetMessageType<chia_wallet_service, send_transaction_command, TSendTransactionResponse>;
401
+ export declare function send_transaction<T extends TRPCAgent | TDaemon>(agent: T, data: TSendTransactionRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSendTransactionResponse, WsSendTransactionMessage>>;
364
402
  export declare const send_transaction_multi_command = "send_transaction_multi";
365
403
  export declare type send_transaction_multi_command = typeof send_transaction_multi_command;
366
404
  export declare type TSendTransactionMultiRequest = {
367
405
  wallet_id: uint32;
368
406
  additions: TAdditions[];
369
407
  fee?: uint64;
408
+ min_coin_amount?: uint64;
409
+ max_coin_amount?: uint64;
410
+ exclude_coin_amounts?: uint64[];
411
+ exclude_coins?: Coin[];
370
412
  coins?: Coin[];
371
413
  coin_announcements?: TCoinAnnouncement[];
372
414
  puzzle_announcements?: TPuzzleAnnouncement[];
415
+ } | {
416
+ wallet_id: uint32;
417
+ additions: TAdditions[];
418
+ fee: uint64;
419
+ amount: uint64;
420
+ inner_address: str;
421
+ memos: str;
422
+ min_coin_amount?: uint64;
423
+ max_coin_amount?: uint64;
424
+ exclude_coin_amounts?: uint64[];
425
+ exclude_coin_ids?: str[];
373
426
  };
374
427
  export declare type TSendTransactionMultiResponse = {
375
428
  transaction: TransactionRecordConvenience;
376
429
  transaction_id: TransactionRecordConvenience["name"];
377
430
  };
378
- export declare function send_transaction_multi(agent: TRPCAgent, data: TSendTransactionMultiRequest): Promise<TSendTransactionMultiResponse | import("../../../rpc").ErrorResponse>;
431
+ export declare type WsSendTransactionMultiMessage = GetMessageType<chia_wallet_service, send_transaction_multi_command, TSendTransactionMultiResponse>;
432
+ export declare function send_transaction_multi<T extends TRPCAgent | TDaemon>(agent: T, data: TSendTransactionMultiRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSendTransactionMultiResponse, WsSendTransactionMultiMessage>>;
379
433
  export declare const get_transaction_count_command = "get_transaction_count";
380
434
  export declare type get_transaction_count_command = typeof get_transaction_count_command;
381
435
  export declare type TGetTransactionCountRequest = {
@@ -385,7 +439,8 @@ export declare type TGetTransactionCountResponse = {
385
439
  count: int;
386
440
  wallet_id: int;
387
441
  };
388
- export declare function get_transaction_count(agent: TRPCAgent, data: TGetTransactionCountRequest): Promise<TGetTransactionCountResponse | import("../../../rpc").ErrorResponse>;
442
+ export declare type WsGetTransactionCountMessage = GetMessageType<chia_wallet_service, get_transaction_count_command, TGetTransactionCountResponse>;
443
+ export declare function get_transaction_count<T extends TRPCAgent | TDaemon>(agent: T, data: TGetTransactionCountRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTransactionCountResponse, WsGetTransactionCountMessage>>;
389
444
  export declare const get_farmed_amount_command = "get_farmed_amount";
390
445
  export declare type get_farmed_amount_command = typeof get_farmed_amount_command;
391
446
  export declare type TGetFarmedAmountRequest = {};
@@ -396,7 +451,8 @@ export declare type TGetFarmedAmountResponse = {
396
451
  fee_amount: int;
397
452
  last_height_farmed: int;
398
453
  };
399
- export declare function get_farmed_amount(agent: TRPCAgent): Promise<TGetFarmedAmountResponse | import("../../../rpc").ErrorResponse>;
454
+ export declare type WsGetFarmedAmountMessage = GetMessageType<chia_wallet_service, get_farmed_amount_command, TGetFarmedAmountResponse>;
455
+ export declare function get_farmed_amount<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetFarmedAmountResponse, WsGetFarmedAmountMessage>>;
400
456
  export declare type TAdditions = {
401
457
  amount: uint64;
402
458
  puzzle_hash: str;
@@ -419,6 +475,8 @@ export declare type TCreateSignedTransactionRequest = {
419
475
  additions: TAdditions[];
420
476
  fee?: uint64;
421
477
  min_coin_amount?: uint64;
478
+ max_coin_amount?: uint64;
479
+ exclude_coin_amounts?: uint64[];
422
480
  coins?: Coin[];
423
481
  exclude_coins?: Coin[];
424
482
  coin_announcements?: TCoinAnnouncement[];
@@ -428,33 +486,69 @@ export declare type TCreateSignedTransactionResponse = {
428
486
  signed_txs: TransactionRecordConvenience[];
429
487
  signed_tx: TransactionRecordConvenience;
430
488
  };
431
- export declare function create_signed_transaction(agent: TRPCAgent, data: TCreateSignedTransactionRequest): Promise<TCreateSignedTransactionResponse | import("../../../rpc").ErrorResponse>;
489
+ export declare type WsCreateSignedTransactionMessage = GetMessageType<chia_wallet_service, create_signed_transaction_command, TCreateSignedTransactionResponse>;
490
+ export declare function create_signed_transaction<T extends TRPCAgent | TDaemon>(agent: T, data: TCreateSignedTransactionRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCreateSignedTransactionResponse, WsCreateSignedTransactionMessage>>;
432
491
  export declare const delete_unconfirmed_transactions_command = "delete_unconfirmed_transactions";
433
492
  export declare type delete_unconfirmed_transactions_command = typeof delete_unconfirmed_transactions_command;
434
493
  export declare type TDeleteUnconfirmedTransactionsRequest = {
435
494
  wallet_id: uint32;
436
495
  };
437
496
  export declare type TDeleteUnconfirmedTransactionsResponse = {};
438
- export declare function delete_unconfirmed_transactions(agent: TRPCAgent, data: TDeleteUnconfirmedTransactionsRequest): Promise<TDeleteUnconfirmedTransactionsResponse | import("../../../rpc").ErrorResponse>;
497
+ export declare type WsDeleteUnconfirmedTransactionsMessage = GetMessageType<chia_wallet_service, delete_unconfirmed_transactions_command, TDeleteUnconfirmedTransactionsResponse>;
498
+ export declare function delete_unconfirmed_transactions<T extends TRPCAgent | TDaemon>(agent: T, data: TDeleteUnconfirmedTransactionsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDeleteUnconfirmedTransactionsResponse, WsDeleteUnconfirmedTransactionsMessage>>;
439
499
  export declare const select_coins_command = "select_coins";
440
500
  export declare type select_coins_command = typeof select_coins_command;
441
501
  export declare type TSelectCoinsRequest = {
442
502
  amount: uint64;
443
503
  wallet_id: uint32;
444
504
  min_coin_amount?: uint64;
505
+ max_coin_amount?: uint64;
506
+ excluded_coin_amounts?: uint64[];
445
507
  excluded_coins?: Coin[];
446
508
  };
447
509
  export declare type TSelectCoinsResponse = {
448
510
  coins: Coin[];
449
511
  };
450
- export declare function select_coins(agent: TRPCAgent, data: TSelectCoinsRequest): Promise<TSelectCoinsResponse | import("../../../rpc").ErrorResponse>;
512
+ export declare type WsSelectCoinsMessage = GetMessageType<chia_wallet_service, select_coins_command, TSelectCoinsResponse>;
513
+ export declare function select_coins<T extends TRPCAgent | TDaemon>(agent: T, data: TSelectCoinsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSelectCoinsResponse, WsSelectCoinsMessage>>;
514
+ export declare const get_spendable_coins_command = "get_spendable_coins";
515
+ export declare type get_spendable_coins_command = typeof get_spendable_coins_command;
516
+ export declare type TGetSpendableCoinsRequest = {
517
+ wallet_id: uint32;
518
+ min_coin_amount?: uint64;
519
+ max_coin_amount?: uint64;
520
+ excluded_coin_amounts?: Optional<uint64[]>;
521
+ excluded_coins?: Coin[];
522
+ excluded_coin_ids?: str[];
523
+ };
524
+ export declare type TGetSpendableCoinsResponse = {
525
+ confirmed_records: CoinRecord[];
526
+ unconfirmed_removals: CoinRecord[];
527
+ unconfirmed_additions: Coin[];
528
+ };
529
+ export declare type WsGetSpendableCoinsMessage = GetMessageType<chia_wallet_service, get_spendable_coins_command, TGetSpendableCoinsResponse>;
530
+ export declare function get_spendable_coins<T extends TRPCAgent | TDaemon>(agent: T, data: TGetSpendableCoinsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetSpendableCoinsResponse, WsGetSpendableCoinsMessage>>;
531
+ export declare const get_coin_records_by_names_command = "get_coin_records_by_names";
532
+ export declare type get_coin_records_by_names_command = typeof get_coin_records_by_names_command;
533
+ export declare type TGetCoinRecordsByNamesRequest = {
534
+ names: str[];
535
+ start_height?: uint32;
536
+ end_height?: uint32;
537
+ include_spent_coins?: bool;
538
+ };
539
+ export declare type TGetCoinRecordsByNamesResponse = {
540
+ coin_records: CoinRecord[];
541
+ };
542
+ export declare type WsGetCoinRecordsByNamesMessage = GetMessageType<chia_wallet_service, get_coin_records_by_names_command, TGetCoinRecordsByNamesResponse>;
543
+ export declare function get_coin_records_by_names<T extends TRPCAgent | TDaemon>(agent: T, data: TGetCoinRecordsByNamesRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCoinRecordsByNamesResponse, WsGetCoinRecordsByNamesMessage>>;
451
544
  export declare const get_current_derivation_index_command = "get_current_derivation_index";
452
545
  export declare type get_current_derivation_index_command = typeof get_current_derivation_index_command;
453
546
  export declare type TGetCurrentDerivationIndexResponse = {
454
547
  success: True;
455
548
  index: Optional<uint32>;
456
549
  };
457
- export declare function get_current_derivation_index(agent: TRPCAgent): Promise<TGetCurrentDerivationIndexResponse | import("../../../rpc").ErrorResponse>;
550
+ export declare type WsGetCurrentDerivationIndexMessage = GetMessageType<chia_wallet_service, get_current_derivation_index_command, TGetCurrentDerivationIndexResponse>;
551
+ export declare function get_current_derivation_index<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCurrentDerivationIndexResponse, WsGetCurrentDerivationIndexMessage>>;
458
552
  export declare const extend_derivation_index_command = "extend_derivation_index";
459
553
  export declare type extend_derivation_index_command = typeof extend_derivation_index_command;
460
554
  export declare type TExtendDerivationIndexRequest = {
@@ -464,7 +558,8 @@ export declare type TExtendDerivationIndexResponse = {
464
558
  success: True;
465
559
  index: Optional<uint32>;
466
560
  };
467
- export declare function extend_derivation_index(agent: TRPCAgent, data: TExtendDerivationIndexRequest): Promise<TExtendDerivationIndexResponse | import("../../../rpc").ErrorResponse>;
561
+ export declare type WsExtendDerivationIndexMessage = GetMessageType<chia_wallet_service, extend_derivation_index_command, TExtendDerivationIndexResponse>;
562
+ export declare function extend_derivation_index<T extends TRPCAgent | TDaemon>(agent: T, data: TExtendDerivationIndexRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TExtendDerivationIndexResponse, WsExtendDerivationIndexMessage>>;
468
563
  export declare const get_notifications_command = "get_notifications";
469
564
  export declare type get_notifications_command = typeof get_notifications_command;
470
565
  export declare type TGetNotificationsRequest = {
@@ -477,16 +572,19 @@ export declare type TGetNotificationsResponse = {
477
572
  id: str;
478
573
  message: str;
479
574
  amount: uint64;
575
+ height: uint32;
480
576
  }>;
481
577
  };
482
- export declare function get_notifications(agent: TRPCAgent, data: TGetNotificationsRequest): Promise<TGetNotificationsResponse | import("../../../rpc").ErrorResponse>;
578
+ export declare type WsGetNotificationsMessage = GetMessageType<chia_wallet_service, get_notifications_command, TGetNotificationsResponse>;
579
+ export declare function get_notifications<T extends TRPCAgent | TDaemon>(agent: T, data: TGetNotificationsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetNotificationsResponse, WsGetNotificationsMessage>>;
483
580
  export declare const delete_notifications_command = "delete_notifications";
484
581
  export declare type delete_notifications_command = typeof delete_notifications_command;
485
582
  export declare type TDeleteNotificationsRequest = {
486
583
  ids?: str[];
487
584
  };
488
585
  export declare type TDeleteNotificationsResponse = {};
489
- export declare function delete_notifications(agent: TRPCAgent, data: TDeleteNotificationsRequest): Promise<TDeleteNotificationsResponse | import("../../../rpc").ErrorResponse>;
586
+ export declare type WsDeleteNotificationsMessage = GetMessageType<chia_wallet_service, delete_notifications_command, TDeleteNotificationsResponse>;
587
+ export declare function delete_notifications<T extends TRPCAgent | TDaemon>(agent: T, data: TDeleteNotificationsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDeleteNotificationsResponse, WsDeleteNotificationsMessage>>;
490
588
  export declare const send_notification_command = "send_notification";
491
589
  export declare type send_notification_command = typeof send_notification_command;
492
590
  export declare type TSendNotificationRequest = {
@@ -498,7 +596,25 @@ export declare type TSendNotificationRequest = {
498
596
  export declare type TSendNotificationResponse = {
499
597
  tx: TransactionRecordConvenience;
500
598
  };
501
- export declare function send_notification(agent: TRPCAgent, data: TSendNotificationRequest): Promise<TSendNotificationResponse | import("../../../rpc").ErrorResponse>;
599
+ export declare type WsSendNotificationMessage = GetMessageType<chia_wallet_service, send_notification_command, TSendNotificationResponse>;
600
+ export declare function send_notification<T extends TRPCAgent | TDaemon>(agent: T, data: TSendNotificationRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSendNotificationResponse, WsSendNotificationMessage>>;
601
+ export declare const verify_signature_command = "verify_signature";
602
+ export declare type verify_signature_command = typeof verify_signature_command;
603
+ export declare type TVerifySignatureRequest = {
604
+ message: str;
605
+ signing_mode?: SigningMode;
606
+ pubkey: str;
607
+ signature: str;
608
+ address?: str;
609
+ };
610
+ export declare type TVerifySignatureResponse = {
611
+ isValid: True;
612
+ } | {
613
+ isValid: False;
614
+ error: str;
615
+ };
616
+ export declare type WsVerifySignatureMessage = GetMessageType<chia_wallet_service, verify_signature_command, TVerifySignatureResponse>;
617
+ export declare function verify_signature<T extends TRPCAgent | TDaemon>(agent: T, data: TVerifySignatureRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TVerifySignatureResponse, WsVerifySignatureMessage>>;
502
618
  export declare const sign_message_by_address_command = "sign_message_by_address";
503
619
  export declare type sign_message_by_address_command = typeof sign_message_by_address_command;
504
620
  export declare type TSignMessageByAddressRequest = {
@@ -509,8 +625,10 @@ export declare type TSignMessageByAddressResponse = {
509
625
  success: True;
510
626
  pubkey: str;
511
627
  signature: str;
628
+ signing_mode: SigningMode;
512
629
  };
513
- export declare function sign_message_by_address(agent: TRPCAgent, data: TSignMessageByAddressRequest): Promise<TSignMessageByAddressResponse | import("../../../rpc").ErrorResponse>;
630
+ export declare type WsSignMessageByAddressMessage = GetMessageType<chia_wallet_service, sign_message_by_address_command, TSignMessageByAddressResponse>;
631
+ export declare function sign_message_by_address<T extends TRPCAgent | TDaemon>(agent: T, data: TSignMessageByAddressRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSignMessageByAddressResponse, WsSignMessageByAddressMessage>>;
514
632
  export declare const sign_message_by_id_command = "sign_message_by_id";
515
633
  export declare type sign_message_by_id_command = typeof sign_message_by_id_command;
516
634
  export declare type TSignMessageByIdRequest = {
@@ -524,14 +642,18 @@ export declare type TSignMessageByIdResponse = {
524
642
  success: True;
525
643
  pubkey: str;
526
644
  signature: str;
645
+ latest_coin_id: str | None;
646
+ signing_mode: SigningMode;
527
647
  };
528
- export declare function sign_message_by_id(agent: TRPCAgent, data: TSignMessageByIdRequest): Promise<TSignMessageByIdResponse | import("../../../rpc").ErrorResponse>;
648
+ export declare type WsSignMessageByIdMessage = GetMessageType<chia_wallet_service, sign_message_by_id_command, TSignMessageByIdResponse>;
649
+ export declare function sign_message_by_id<T extends TRPCAgent | TDaemon>(agent: T, data: TSignMessageByIdRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSignMessageByIdResponse, WsSignMessageByIdMessage>>;
529
650
  export declare const get_cat_list_command = "get_cat_list";
530
651
  export declare type get_cat_list_command = typeof get_cat_list_command;
531
652
  export declare type TGetCatListResponse = {
532
653
  cat_list: CAT[];
533
654
  };
534
- export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse | import("../../../rpc").ErrorResponse>;
655
+ export declare type WsGetCatListMessage = GetMessageType<chia_wallet_service, get_cat_list_command, TGetCatListResponse>;
656
+ export declare function get_cat_list<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetCatListResponse, WsGetCatListMessage>>;
535
657
  export declare const cat_set_name_command = "cat_set_name";
536
658
  export declare type cat_set_name_command = typeof cat_set_name_command;
537
659
  export declare type TCatSetNameRequest = {
@@ -541,7 +663,8 @@ export declare type TCatSetNameRequest = {
541
663
  export declare type TCatSetNameResponse = {
542
664
  wallet_id: uint32;
543
665
  };
544
- export declare function cat_set_name(agent: TRPCAgent, data: TCatSetNameRequest): Promise<TCatSetNameResponse | import("../../../rpc").ErrorResponse>;
666
+ export declare type WsCatSetNameMessage = GetMessageType<chia_wallet_service, cat_set_name_command, TCatSetNameResponse>;
667
+ export declare function cat_set_name<T extends TRPCAgent | TDaemon>(agent: T, data: TCatSetNameRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCatSetNameResponse, WsCatSetNameMessage>>;
545
668
  export declare const cat_asset_id_to_name_command = "cat_asset_id_to_name";
546
669
  export declare type cat_asset_id_to_name_command = typeof cat_asset_id_to_name_command;
547
670
  export declare type TCatAssetIdToNameRequest = {
@@ -551,7 +674,8 @@ export declare type TCatAssetIdToNameResponse = {
551
674
  wallet_id: Optional<uint32>;
552
675
  name: str;
553
676
  };
554
- export declare function cat_asset_id_to_name(agent: TRPCAgent, data: TCatAssetIdToNameRequest): Promise<TCatAssetIdToNameResponse | import("../../../rpc").ErrorResponse>;
677
+ export declare type WsCatAssetIdToNameMessage = GetMessageType<chia_wallet_service, cat_asset_id_to_name_command, TCatAssetIdToNameResponse>;
678
+ export declare function cat_asset_id_to_name<T extends TRPCAgent | TDaemon>(agent: T, data: TCatAssetIdToNameRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCatAssetIdToNameResponse, WsCatAssetIdToNameMessage>>;
555
679
  export declare const cat_get_name_command = "cat_get_name";
556
680
  export declare type cat_get_name_command = typeof cat_get_name_command;
557
681
  export declare type TCatGetNameRequest = {
@@ -561,7 +685,8 @@ export declare type TCatGetNameResponse = {
561
685
  wallet_id: uint32;
562
686
  name: str;
563
687
  };
564
- export declare function cat_get_name(agent: TRPCAgent, data: TCatGetNameRequest): Promise<TCatGetNameResponse | import("../../../rpc").ErrorResponse>;
688
+ export declare type WsCatGetNameMessage = GetMessageType<chia_wallet_service, cat_get_name_command, TCatGetNameResponse>;
689
+ export declare function cat_get_name<T extends TRPCAgent | TDaemon>(agent: T, data: TCatGetNameRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCatGetNameResponse, WsCatGetNameMessage>>;
565
690
  export declare const get_stray_cats_command = "get_stray_cats";
566
691
  export declare type get_stray_cats_command = typeof get_stray_cats_command;
567
692
  export declare type TGetStrayCatsResponse = {
@@ -572,22 +697,29 @@ export declare type TGetStrayCatsResponse = {
572
697
  sender_puzzle_hash: str;
573
698
  }>;
574
699
  };
575
- export declare function get_stray_cats(agent: TRPCAgent): Promise<TGetStrayCatsResponse | import("../../../rpc").ErrorResponse>;
700
+ export declare type WsGetStrayCatsMessage = GetMessageType<chia_wallet_service, get_stray_cats_command, TGetStrayCatsResponse>;
701
+ export declare function get_stray_cats<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetStrayCatsResponse, WsGetStrayCatsMessage>>;
576
702
  export declare const cat_spend_command = "cat_spend";
577
703
  export declare type cat_spend_command = typeof cat_spend_command;
578
704
  export declare type TCatSpendRequest = {
579
705
  wallet_id: uint32;
706
+ additions?: TAdditions[];
707
+ fee: uint64;
708
+ amount: uint64;
580
709
  inner_address: str;
581
710
  memos?: str[];
582
- amount: uint64;
583
- fee: uint64;
711
+ coins?: Coin[];
584
712
  min_coin_amount?: uint64;
713
+ max_coin_amount?: uint64;
714
+ exclude_coin_amounts?: uint64[];
715
+ exclude_coin_ids?: str[];
585
716
  };
586
717
  export declare type TCatSpendResponse = {
587
718
  transaction: TransactionRecordConvenience;
588
719
  transaction_id: TransactionRecord["name"];
589
720
  };
590
- export declare function cat_spend(agent: TRPCAgent, data: TCatSpendRequest): Promise<TCatSpendResponse | import("../../../rpc").ErrorResponse>;
721
+ export declare type WsCatSpendMessage = GetMessageType<chia_wallet_service, cat_spend_command, TCatSpendResponse>;
722
+ export declare function cat_spend<T extends TRPCAgent | TDaemon>(agent: T, data: TCatSpendRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCatSpendResponse, WsCatSpendMessage>>;
591
723
  export declare const cat_get_asset_id_command = "cat_get_asset_id";
592
724
  export declare type cat_get_asset_id_command = typeof cat_get_asset_id_command;
593
725
  export declare type TCatGetAssetIdRequest = {
@@ -597,7 +729,8 @@ export declare type TCatGetAssetIdResponse = {
597
729
  asset_id: str;
598
730
  wallet_id: uint32;
599
731
  };
600
- export declare function cat_get_asset_id(agent: TRPCAgent, data: TCatGetAssetIdRequest): Promise<TCatGetAssetIdResponse | import("../../../rpc").ErrorResponse>;
732
+ export declare type WsCatGetAssetIdMessage = GetMessageType<chia_wallet_service, cat_get_asset_id_command, TCatGetAssetIdResponse>;
733
+ export declare function cat_get_asset_id<T extends TRPCAgent | TDaemon>(agent: T, data: TCatGetAssetIdRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCatGetAssetIdResponse, WsCatGetAssetIdMessage>>;
601
734
  export declare const create_offer_for_ids_command = "create_offer_for_ids";
602
735
  export declare type create_offer_for_ids_command = typeof create_offer_for_ids_command;
603
736
  export declare type TCreateOfferForIdsRequest = {
@@ -606,12 +739,15 @@ export declare type TCreateOfferForIdsRequest = {
606
739
  validate_only?: bool;
607
740
  driver_dict?: TDriverDict;
608
741
  min_coin_amount?: uint64;
742
+ max_coin_amount?: uint64;
743
+ solver?: Record<str, any>;
609
744
  };
610
745
  export declare type TCreateOfferForIdsResponse = {
611
746
  offer: str;
612
747
  trade_record: TradeRecordConvenience;
613
748
  };
614
- export declare function create_offer_for_ids(agent: TRPCAgent, data: TCreateOfferForIdsRequest): Promise<TCreateOfferForIdsResponse | import("../../../rpc").ErrorResponse>;
749
+ export declare type WsCreateOfferForIdsMessage = GetMessageType<chia_wallet_service, create_offer_for_ids_command, TCreateOfferForIdsResponse>;
750
+ export declare function create_offer_for_ids<T extends TRPCAgent | TDaemon>(agent: T, data: TCreateOfferForIdsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCreateOfferForIdsResponse, WsCreateOfferForIdsMessage>>;
615
751
  export declare const get_offer_summary_command = "get_offer_summary";
616
752
  export declare type get_offer_summary_command = typeof get_offer_summary_command;
617
753
  export declare type TGetOfferSummaryRequest = {
@@ -625,8 +761,10 @@ export declare type TGetOfferSummaryResponse = {
625
761
  fees: int;
626
762
  infos: TDriverDict;
627
763
  };
764
+ id: bytes32;
628
765
  };
629
- export declare function get_offer_summary(agent: TRPCAgent, data: TGetOfferSummaryRequest): Promise<TGetOfferSummaryResponse | import("../../../rpc").ErrorResponse>;
766
+ export declare type WsGetOfferSummaryMessage = GetMessageType<chia_wallet_service, get_offer_summary_command, TGetOfferSummaryResponse>;
767
+ export declare function get_offer_summary<T extends TRPCAgent | TDaemon>(agent: T, data: TGetOfferSummaryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetOfferSummaryResponse, WsGetOfferSummaryMessage>>;
630
768
  export declare const check_offer_validity_command = "check_offer_validity";
631
769
  export declare type check_offer_validity_command = typeof check_offer_validity_command;
632
770
  export declare type TCheckOfferValidityRequest = {
@@ -634,20 +772,24 @@ export declare type TCheckOfferValidityRequest = {
634
772
  };
635
773
  export declare type TCheckOfferValidityResponse = {
636
774
  valid: bool;
775
+ id: bytes32;
637
776
  };
638
- export declare function check_offer_validity(agent: TRPCAgent, data: TCheckOfferValidityRequest): Promise<TCheckOfferValidityResponse | import("../../../rpc").ErrorResponse>;
777
+ export declare type WsCheckOfferValidityMessage = GetMessageType<chia_wallet_service, check_offer_validity_command, TCheckOfferValidityResponse>;
778
+ export declare function check_offer_validity<T extends TRPCAgent | TDaemon>(agent: T, data: TCheckOfferValidityRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCheckOfferValidityResponse, WsCheckOfferValidityMessage>>;
639
779
  export declare const take_offer_command = "take_offer";
640
780
  export declare type take_offer_command = typeof take_offer_command;
641
781
  export declare type TTakeOfferRequest = {
642
782
  offer: str;
643
783
  fee?: uint64;
644
784
  min_coin_amount?: uint64;
785
+ max_coin_amount?: uint64;
645
786
  solver?: Record<str, any>;
646
787
  };
647
788
  export declare type TTakeOfferResponse = {
648
789
  trade_record: TradeRecordConvenience;
649
790
  };
650
- export declare function take_offer(agent: TRPCAgent, data: TTakeOfferRequest): Promise<TTakeOfferResponse | import("../../../rpc").ErrorResponse>;
791
+ export declare type WsTakeOfferMessage = GetMessageType<chia_wallet_service, take_offer_command, TTakeOfferResponse>;
792
+ export declare function take_offer<T extends TRPCAgent | TDaemon>(agent: T, data: TTakeOfferRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TTakeOfferResponse, WsTakeOfferMessage>>;
651
793
  export declare const get_offer_command = "get_offer";
652
794
  export declare type get_offer_command = typeof get_offer_command;
653
795
  export declare type TGetOfferRequest = {
@@ -658,7 +800,8 @@ export declare type TGetOfferResponse = {
658
800
  trade_record: TradeRecordConvenience;
659
801
  offer: Optional<str>;
660
802
  };
661
- export declare function get_offer(agent: TRPCAgent, data: TGetOfferRequest): Promise<TGetOfferResponse | import("../../../rpc").ErrorResponse>;
803
+ export declare type WsGetOfferMessage = GetMessageType<chia_wallet_service, get_offer_command, TGetOfferResponse>;
804
+ export declare function get_offer<T extends TRPCAgent | TDaemon>(agent: T, data: TGetOfferRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetOfferResponse, WsGetOfferMessage>>;
662
805
  export declare const get_all_offers_command = "get_all_offers";
663
806
  export declare type get_all_offers_command = typeof get_all_offers_command;
664
807
  export declare type TGetAllOffersRequest = {
@@ -675,7 +818,8 @@ export declare type TGetAllOffersResponse = {
675
818
  trade_records: TradeRecordConvenience[];
676
819
  offers: Optional<str[]>;
677
820
  };
678
- export declare function get_all_offers(agent: TRPCAgent, data: TGetAllOffersRequest): Promise<TGetAllOffersResponse | import("../../../rpc").ErrorResponse>;
821
+ export declare type WsGetAllOffersMessage = GetMessageType<chia_wallet_service, get_all_offers_command, TGetAllOffersResponse>;
822
+ export declare function get_all_offers<T extends TRPCAgent | TDaemon>(agent: T, data: TGetAllOffersRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetAllOffersResponse, WsGetAllOffersMessage>>;
679
823
  export declare const get_offers_count_command = "get_offers_count";
680
824
  export declare type get_offers_count_command = typeof get_offers_count_command;
681
825
  export declare type TGetOffersCountResponse = {
@@ -683,7 +827,8 @@ export declare type TGetOffersCountResponse = {
683
827
  my_offers_count: int;
684
828
  taken_offers_count: int;
685
829
  };
686
- export declare function get_offers_count(agent: TRPCAgent): Promise<TGetOffersCountResponse | import("../../../rpc").ErrorResponse>;
830
+ export declare type WsGetOffersCountMessage = GetMessageType<chia_wallet_service, get_offers_count_command, TGetOffersCountResponse>;
831
+ export declare function get_offers_count<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetOffersCountResponse, WsGetOffersCountMessage>>;
687
832
  export declare const cancel_offer_command = "cancel_offer";
688
833
  export declare type cancel_offer_command = typeof cancel_offer_command;
689
834
  export declare type TCancelOfferRequest = {
@@ -692,7 +837,8 @@ export declare type TCancelOfferRequest = {
692
837
  fee?: uint64;
693
838
  };
694
839
  export declare type TCancelOfferResponse = {};
695
- export declare function cancel_offer(agent: TRPCAgent, data: TCancelOfferRequest): Promise<TCancelOfferResponse | import("../../../rpc").ErrorResponse>;
840
+ export declare type WsCancelOfferMessage = GetMessageType<chia_wallet_service, cancel_offer_command, TCancelOfferResponse>;
841
+ export declare function cancel_offer<T extends TRPCAgent | TDaemon>(agent: T, data: TCancelOfferRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCancelOfferResponse, WsCancelOfferMessage>>;
696
842
  export declare const cancel_offers_command = "cancel_offers";
697
843
  export declare type cancel_offers_command = typeof cancel_offers_command;
698
844
  export declare type TCancelOffersRequest = {
@@ -705,7 +851,8 @@ export declare type TCancelOffersRequest = {
705
851
  export declare type TCancelOffersResponse = {
706
852
  success: True;
707
853
  };
708
- export declare function cancel_offers(agent: TRPCAgent, data: TCancelOffersRequest): Promise<TCancelOffersResponse | import("../../../rpc").ErrorResponse>;
854
+ export declare type WsCancelOffersMessage = GetMessageType<chia_wallet_service, cancel_offers_command, TCancelOffersResponse>;
855
+ export declare function cancel_offers<T extends TRPCAgent | TDaemon>(agent: T, data: TCancelOffersRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCancelOffersResponse, WsCancelOffersMessage>>;
709
856
  export declare const did_set_wallet_name_command = "did_set_wallet_name";
710
857
  export declare type did_set_wallet_name_command = typeof did_set_wallet_name_command;
711
858
  export declare type TDidSetWalletNameRequest = {
@@ -719,7 +866,8 @@ export declare type TDidSetWalletNameResponse = {
719
866
  success: False;
720
867
  error: str;
721
868
  };
722
- export declare function did_set_wallet_name(agent: TRPCAgent, data: TDidSetWalletNameRequest): Promise<TDidSetWalletNameResponse | import("../../../rpc").ErrorResponse>;
869
+ export declare type WsDidSetWalletNameMessage = GetMessageType<chia_wallet_service, did_set_wallet_name_command, TDidSetWalletNameResponse>;
870
+ export declare function did_set_wallet_name<T extends TRPCAgent | TDaemon>(agent: T, data: TDidSetWalletNameRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidSetWalletNameResponse, WsDidSetWalletNameMessage>>;
723
871
  export declare const did_get_wallet_name_command = "did_get_wallet_name";
724
872
  export declare type did_get_wallet_name_command = typeof did_get_wallet_name_command;
725
873
  export declare type TDidGetWalletNameRequest = {
@@ -730,7 +878,8 @@ export declare type TDidGetWalletNameResponse = {
730
878
  wallet_id: uint32;
731
879
  name: str;
732
880
  };
733
- export declare function did_get_wallet_name(agent: TRPCAgent, data: TDidGetWalletNameRequest): Promise<TDidGetWalletNameResponse | import("../../../rpc").ErrorResponse>;
881
+ export declare type WsDidGetWalletNameMessage = GetMessageType<chia_wallet_service, did_get_wallet_name_command, TDidGetWalletNameResponse>;
882
+ export declare function did_get_wallet_name<T extends TRPCAgent | TDaemon>(agent: T, data: TDidGetWalletNameRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidGetWalletNameResponse, WsDidGetWalletNameMessage>>;
734
883
  export declare const did_update_recovery_ids_command = "did_update_recovery_ids";
735
884
  export declare type did_update_recovery_ids_command = typeof did_update_recovery_ids_command;
736
885
  export declare type TDidUpdateRecoveryIdsRequest = {
@@ -741,7 +890,8 @@ export declare type TDidUpdateRecoveryIdsRequest = {
741
890
  export declare type TDidUpdateRecoveryIdsResponse = {
742
891
  success: bool;
743
892
  };
744
- export declare function did_update_recovery_ids(agent: TRPCAgent, data: TDidUpdateRecoveryIdsRequest): Promise<TDidUpdateRecoveryIdsResponse | import("../../../rpc").ErrorResponse>;
893
+ export declare type WsDidUpdateRecoveryIdsMessage = GetMessageType<chia_wallet_service, did_update_recovery_ids_command, TDidUpdateRecoveryIdsResponse>;
894
+ export declare function did_update_recovery_ids<T extends TRPCAgent | TDaemon>(agent: T, data: TDidUpdateRecoveryIdsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidUpdateRecoveryIdsResponse, WsDidUpdateRecoveryIdsMessage>>;
745
895
  export declare const did_update_metadata_command = "did_update_metadata";
746
896
  export declare type did_update_metadata_command = typeof did_update_metadata_command;
747
897
  export declare type TDidUpdateMetadataRequest = {
@@ -757,7 +907,8 @@ export declare type TDidUpdateMetadataResponse = {
757
907
  success: False;
758
908
  error: str;
759
909
  };
760
- export declare function did_update_metadata(agent: TRPCAgent, data: TDidUpdateMetadataRequest): Promise<TDidUpdateMetadataResponse | import("../../../rpc").ErrorResponse>;
910
+ export declare type WsDidUpdateMetadataMessage = GetMessageType<chia_wallet_service, did_update_metadata_command, TDidUpdateMetadataResponse>;
911
+ export declare function did_update_metadata<T extends TRPCAgent | TDaemon>(agent: T, data: TDidUpdateMetadataRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidUpdateMetadataResponse, WsDidUpdateMetadataMessage>>;
761
912
  export declare const did_spend_command = "did_spend";
762
913
  export declare type did_spend_command = typeof did_spend_command;
763
914
  export declare type TDidSpendRequest = {
@@ -767,7 +918,8 @@ export declare type TDidSpendRequest = {
767
918
  export declare type TDidSpendResponse = {
768
919
  success: bool;
769
920
  };
770
- export declare function did_spend(agent: TRPCAgent, data: TDidSpendRequest): Promise<TDidSpendResponse | import("../../../rpc").ErrorResponse>;
921
+ export declare type WsDidSpendMessage = GetMessageType<chia_wallet_service, did_spend_command, TDidSpendResponse>;
922
+ export declare function did_spend<T extends TRPCAgent | TDaemon>(agent: T, data: TDidSpendRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidSpendResponse, WsDidSpendMessage>>;
771
923
  export declare const did_get_pubkey_command = "did_get_pubkey";
772
924
  export declare type did_get_pubkey_command = typeof did_get_pubkey_command;
773
925
  export declare type TDidGetPubkeyRequest = {
@@ -777,7 +929,8 @@ export declare type TDidGetPubkeyResponse = {
777
929
  success: bool;
778
930
  pubkey: str;
779
931
  };
780
- export declare function did_get_pubkey(agent: TRPCAgent): Promise<TDidGetPubkeyResponse | import("../../../rpc").ErrorResponse>;
932
+ export declare type WsDidGetPubkeyMessage = GetMessageType<chia_wallet_service, did_get_pubkey_command, TDidGetPubkeyResponse>;
933
+ export declare function did_get_pubkey<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidGetPubkeyResponse, WsDidGetPubkeyMessage>>;
781
934
  export declare const did_get_did_command = "did_get_did";
782
935
  export declare type did_get_did_command = typeof did_get_did_command;
783
936
  export declare type TDidGetDidRequest = {
@@ -789,7 +942,8 @@ export declare type TDidGetDidResponse = {
789
942
  my_did: str;
790
943
  coin_id?: bytes32;
791
944
  };
792
- export declare function did_get_did(agent: TRPCAgent, data: TDidGetDidRequest): Promise<TDidGetDidResponse | import("../../../rpc").ErrorResponse>;
945
+ export declare type WsDidGetDidMessage = GetMessageType<chia_wallet_service, did_get_did_command, TDidGetDidResponse>;
946
+ export declare function did_get_did<T extends TRPCAgent | TDaemon>(agent: T, data: TDidGetDidRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidGetDidResponse, WsDidGetDidMessage>>;
793
947
  export declare const did_recovery_spend_command = "did_recovery_spend";
794
948
  export declare type did_recovery_spend_command = typeof did_recovery_spend_command;
795
949
  export declare type TDidRecoverySpendRequest = {
@@ -804,7 +958,8 @@ export declare type TDidRecoverySpendResponse = {
804
958
  } | {
805
959
  success: False;
806
960
  };
807
- export declare function did_recovery_spend(agent: TRPCAgent, data: TDidRecoverySpendRequest): Promise<TDidRecoverySpendResponse | import("../../../rpc").ErrorResponse>;
961
+ export declare type WsDidRecoverySpendMessage = GetMessageType<chia_wallet_service, did_recovery_spend_command, TDidRecoverySpendResponse>;
962
+ export declare function did_recovery_spend<T extends TRPCAgent | TDaemon>(agent: T, data: TDidRecoverySpendRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidRecoverySpendResponse, WsDidRecoverySpendMessage>>;
808
963
  export declare const did_get_recovery_list_command = "did_get_recovery_list";
809
964
  export declare type did_get_recovery_list_command = typeof did_get_recovery_list_command;
810
965
  export declare type TDidGetRecoveryListRequest = {
@@ -816,7 +971,8 @@ export declare type TDidGetRecoveryListResponse = {
816
971
  recovery_list: str[];
817
972
  num_required: uint64;
818
973
  };
819
- export declare function did_get_recovery_list(agent: TRPCAgent, data: TDidGetRecoveryListRequest): Promise<TDidGetRecoveryListResponse | import("../../../rpc").ErrorResponse>;
974
+ export declare type WsDidGetRecoveryListMessage = GetMessageType<chia_wallet_service, did_get_recovery_list_command, TDidGetRecoveryListResponse>;
975
+ export declare function did_get_recovery_list<T extends TRPCAgent | TDaemon>(agent: T, data: TDidGetRecoveryListRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidGetRecoveryListResponse, WsDidGetRecoveryListMessage>>;
820
976
  export declare const did_get_metadata_command = "did_get_metadata";
821
977
  export declare type did_get_metadata_command = typeof did_get_metadata_command;
822
978
  export declare type TDidGetMetadataRequest = {
@@ -827,7 +983,8 @@ export declare type TDidGetMetadataResponse = {
827
983
  wallet_id: uint32;
828
984
  metadata: Record<str, str>;
829
985
  };
830
- export declare function did_get_metadata(agent: TRPCAgent, data: TDidGetMetadataRequest): Promise<TDidGetMetadataResponse | import("../../../rpc").ErrorResponse>;
986
+ export declare type WsDidGetMetadataMessage = GetMessageType<chia_wallet_service, did_get_metadata_command, TDidGetMetadataResponse>;
987
+ export declare function did_get_metadata<T extends TRPCAgent | TDaemon>(agent: T, data: TDidGetMetadataRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidGetMetadataResponse, WsDidGetMetadataMessage>>;
831
988
  export declare const did_create_attest_command = "did_create_attest";
832
989
  export declare type did_create_attest_command = typeof did_create_attest_command;
833
990
  export declare type TDidCreateAttestRequest = {
@@ -843,7 +1000,8 @@ export declare type TDidCreateAttestResponse = {
843
1000
  } | {
844
1001
  success: False;
845
1002
  };
846
- export declare function did_create_attest(agent: TRPCAgent, data: TDidCreateAttestRequest): Promise<TDidCreateAttestResponse | import("../../../rpc").ErrorResponse>;
1003
+ export declare type WsDidCreateAttestMessage = GetMessageType<chia_wallet_service, did_create_attest_command, TDidCreateAttestResponse>;
1004
+ export declare function did_create_attest<T extends TRPCAgent | TDaemon>(agent: T, data: TDidCreateAttestRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidCreateAttestResponse, WsDidCreateAttestMessage>>;
847
1005
  export declare const did_get_information_needed_for_recovery_command = "did_get_information_needed_for_recovery";
848
1006
  export declare type did_get_information_needed_for_recovery_command = typeof did_get_information_needed_for_recovery_command;
849
1007
  export declare type TDidGetInformationNeededForRecoveryRequest = {
@@ -858,7 +1016,8 @@ export declare type TDidGetInformationNeededForRecoveryResponse = {
858
1016
  pubkey: Optional<bytes>;
859
1017
  backup_dids: bytes[];
860
1018
  };
861
- export declare function did_get_information_needed_for_recovery(agent: TRPCAgent, data: TDidGetInformationNeededForRecoveryRequest): Promise<TDidGetInformationNeededForRecoveryResponse | import("../../../rpc").ErrorResponse>;
1019
+ export declare type WsDidGetInformationNeededForRecoveryMessage = GetMessageType<chia_wallet_service, did_get_information_needed_for_recovery_command, TDidGetInformationNeededForRecoveryResponse>;
1020
+ export declare function did_get_information_needed_for_recovery<T extends TRPCAgent | TDaemon>(agent: T, data: TDidGetInformationNeededForRecoveryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidGetInformationNeededForRecoveryResponse, WsDidGetInformationNeededForRecoveryMessage>>;
862
1021
  export declare const did_get_current_coin_info_command = "did_get_current_coin_info";
863
1022
  export declare type did_get_current_coin_info_command = typeof did_get_current_coin_info_command;
864
1023
  export declare type TDidGetCurrentCoinInfoRequest = {
@@ -872,7 +1031,8 @@ export declare type TDidGetCurrentCoinInfoResponse = {
872
1031
  did_innerpuz: bytes32;
873
1032
  did_amount: uint64;
874
1033
  };
875
- export declare function did_get_current_coin_info(agent: TRPCAgent, data: TDidGetCurrentCoinInfoRequest): Promise<TDidGetCurrentCoinInfoResponse | import("../../../rpc").ErrorResponse>;
1034
+ export declare type WsDidGetCurrentCoinInfoMessage = GetMessageType<chia_wallet_service, did_get_current_coin_info_command, TDidGetCurrentCoinInfoResponse>;
1035
+ export declare function did_get_current_coin_info<T extends TRPCAgent | TDaemon>(agent: T, data: TDidGetCurrentCoinInfoRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidGetCurrentCoinInfoResponse, WsDidGetCurrentCoinInfoMessage>>;
876
1036
  export declare const did_create_backup_file_command = "did_create_backup_file";
877
1037
  export declare type did_create_backup_file_command = typeof did_create_backup_file_command;
878
1038
  export declare type TDidCreateBackupFileRequest = {
@@ -883,7 +1043,58 @@ export declare type TDidCreateBackupFileResponse = {
883
1043
  success: True;
884
1044
  backup_data: str;
885
1045
  };
886
- export declare function did_create_backup_file(agent: TRPCAgent, data: TDidCreateBackupFileRequest): Promise<TDidCreateBackupFileResponse | import("../../../rpc").ErrorResponse>;
1046
+ export declare type WsDidCreateBackupFileMessage = GetMessageType<chia_wallet_service, did_create_backup_file_command, TDidCreateBackupFileResponse>;
1047
+ export declare function did_create_backup_file<T extends TRPCAgent | TDaemon>(agent: T, data: TDidCreateBackupFileRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidCreateBackupFileResponse, WsDidCreateBackupFileMessage>>;
1048
+ export declare const did_message_spend_command = "did_message_spend";
1049
+ export declare type did_message_spend_command = typeof did_message_spend_command;
1050
+ export declare type TDidMessageSpendRequest = {
1051
+ wallet_id: uint32;
1052
+ coin_announcements: str[];
1053
+ puzzle_announcements: str[];
1054
+ };
1055
+ export declare type TDidMessageSpendResponse = {
1056
+ success: True;
1057
+ spend_bundle: SpendBundle;
1058
+ };
1059
+ export declare type WsDidMessageSpendMessage = GetMessageType<chia_wallet_service, did_message_spend_command, TDidMessageSpendResponse>;
1060
+ export declare function did_message_spend<T extends TRPCAgent | TDaemon>(agent: T, data: TDidMessageSpendRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidMessageSpendResponse, WsDidMessageSpendMessage>>;
1061
+ export declare const did_get_info_command = "did_get_info";
1062
+ export declare type did_get_info_command = typeof did_get_info_command;
1063
+ export declare type TDidGetInfoRequest = {
1064
+ coin_id: str;
1065
+ latest?: bool;
1066
+ };
1067
+ export declare type TDidGetInfoResponse = {
1068
+ success: False;
1069
+ error: str;
1070
+ } | {
1071
+ success: True;
1072
+ latest_coin: str;
1073
+ p2_address: str;
1074
+ public_key: str;
1075
+ recovery_list_hash: str;
1076
+ num_verification: int;
1077
+ metadata: Record<str, str>;
1078
+ launcher_id: str;
1079
+ full_puzzle: str;
1080
+ hints: str[];
1081
+ };
1082
+ export declare type WsDidGetInfoMessage = GetMessageType<chia_wallet_service, did_get_info_command, TDidGetInfoResponse>;
1083
+ export declare function did_get_info<T extends TRPCAgent | TDaemon>(agent: T, data: TDidGetInfoRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidGetInfoResponse, WsDidGetInfoMessage>>;
1084
+ export declare const did_find_lost_did_command = "did_find_lost_did";
1085
+ export declare type did_find_lost_did_command = typeof did_find_lost_did_command;
1086
+ export declare type TDidFindLostDidRequest = {
1087
+ coin_id: str;
1088
+ };
1089
+ export declare type TDidFindLostDidResponse = {
1090
+ success: False;
1091
+ error: str;
1092
+ } | {
1093
+ success: True;
1094
+ latest_coin_id: str;
1095
+ };
1096
+ export declare type WsDidFindLostDidMessage = GetMessageType<chia_wallet_service, did_find_lost_did_command, TDidFindLostDidResponse>;
1097
+ export declare function did_find_lost_did<T extends TRPCAgent | TDaemon>(agent: T, data: TDidFindLostDidRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidFindLostDidResponse, WsDidFindLostDidMessage>>;
887
1098
  export declare const did_transfer_did_command = "did_transfer_did";
888
1099
  export declare type did_transfer_did_command = typeof did_transfer_did_command;
889
1100
  export declare type TDidTransferDidRequest = {
@@ -897,7 +1108,8 @@ export declare type TDidTransferDidResponse = {
897
1108
  transaction: TransactionRecordConvenience;
898
1109
  transaction_id: bytes32;
899
1110
  };
900
- export declare function did_transfer_did(agent: TRPCAgent, data: TDidTransferDidRequest): Promise<TDidTransferDidResponse | import("../../../rpc").ErrorResponse>;
1111
+ export declare type WsDidTransferDidMessage = GetMessageType<chia_wallet_service, did_transfer_did_command, TDidTransferDidResponse>;
1112
+ export declare function did_transfer_did<T extends TRPCAgent | TDaemon>(agent: T, data: TDidTransferDidRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDidTransferDidResponse, WsDidTransferDidMessage>>;
901
1113
  export declare const nft_mint_nft_command = "nft_mint_nft";
902
1114
  export declare type nft_mint_nft_command = typeof nft_mint_nft_command;
903
1115
  export declare type TNftMintNftRequest = {
@@ -920,8 +1132,10 @@ export declare type TNftMintNftResponse = {
920
1132
  wallet_id: uint32;
921
1133
  success: True;
922
1134
  spend_bundle: SpendBundle;
1135
+ nft_id: Optional<str>;
923
1136
  };
924
- export declare function nft_mint_nft(agent: TRPCAgent, data: TNftMintNftRequest): Promise<TNftMintNftResponse | import("../../../rpc").ErrorResponse>;
1137
+ export declare type WsNftMintNftMessage = GetMessageType<chia_wallet_service, nft_mint_nft_command, TNftMintNftResponse>;
1138
+ export declare function nft_mint_nft<T extends TRPCAgent | TDaemon>(agent: T, data: TNftMintNftRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftMintNftResponse, WsNftMintNftMessage>>;
925
1139
  export declare const nft_get_nfts_command = "nft_get_nfts";
926
1140
  export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
927
1141
  export declare type TNftGetNftsRequest = {
@@ -935,7 +1149,8 @@ export declare type TNftGetNftsResponse = {
935
1149
  success: True;
936
1150
  nft_list: NFTInfo[];
937
1151
  };
938
- export declare function nft_get_nfts(agent: TRPCAgent, data: TNftGetNftsRequest): Promise<TNftGetNftsResponse | import("../../../rpc").ErrorResponse>;
1152
+ export declare type WsNftGetNftsMessage = GetMessageType<chia_wallet_service, nft_get_nfts_command, TNftGetNftsResponse>;
1153
+ export declare function nft_get_nfts<T extends TRPCAgent | TDaemon>(agent: T, data: TNftGetNftsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftGetNftsResponse, WsNftGetNftsMessage>>;
939
1154
  export declare const nft_set_nft_did_command = "nft_set_nft_did";
940
1155
  export declare type nft_set_nft_did_command = typeof nft_set_nft_did_command;
941
1156
  export declare type TNftSetNftDidRequest = {
@@ -952,7 +1167,50 @@ export declare type TNftSetNftDidResponse = {
952
1167
  success: False;
953
1168
  error: str;
954
1169
  };
955
- export declare function nft_set_nft_did(agent: TRPCAgent, data: TNftSetNftDidRequest): Promise<TNftSetNftDidResponse | import("../../../rpc").ErrorResponse>;
1170
+ export declare type WsNftSetNftDidMessage = GetMessageType<chia_wallet_service, nft_set_nft_did_command, TNftSetNftDidResponse>;
1171
+ export declare function nft_set_nft_did<T extends TRPCAgent | TDaemon>(agent: T, data: TNftSetNftDidRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftSetNftDidResponse, WsNftSetNftDidMessage>>;
1172
+ export declare const nft_set_did_bulk_command = "nft_set_did_bulk";
1173
+ export declare type nft_set_did_bulk_command = typeof nft_set_did_bulk_command;
1174
+ export declare type TNftSetDidBulkRequest = {
1175
+ nft_coin_list: Array<{
1176
+ nft_coin_id: str;
1177
+ wallet_id: uint32;
1178
+ }>;
1179
+ did_id?: str;
1180
+ fee?: uint64;
1181
+ };
1182
+ export declare type TNftSetDidBulkResponse = {
1183
+ success: False;
1184
+ error: str;
1185
+ } | {
1186
+ success: True;
1187
+ wallet_id: uint32[];
1188
+ spend_bundle: SpendBundle;
1189
+ tx_num: int;
1190
+ };
1191
+ export declare type WsNftSetDidBulkMessage = GetMessageType<chia_wallet_service, nft_set_did_bulk_command, TNftSetDidBulkResponse>;
1192
+ export declare function nft_set_did_bulk<T extends TRPCAgent | TDaemon>(agent: T, data: TNftSetDidBulkRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftSetDidBulkResponse, WsNftSetDidBulkMessage>>;
1193
+ export declare const nft_transfer_bulk_command = "nft_transfer_bulk";
1194
+ export declare type nft_transfer_bulk_command = typeof nft_transfer_bulk_command;
1195
+ export declare type TNftTransferBulkRequest = {
1196
+ nft_coin_list: Array<{
1197
+ nft_coin_id: str;
1198
+ wallet_id: uint32;
1199
+ }>;
1200
+ target_address: str;
1201
+ fee?: uint64;
1202
+ };
1203
+ export declare type TNftTransferBulkResponse = {
1204
+ success: False;
1205
+ error: str;
1206
+ } | {
1207
+ success: True;
1208
+ wallet_id: uint32[];
1209
+ spend_bundle: SpendBundle;
1210
+ tx_num: int;
1211
+ };
1212
+ export declare type WsNftTransferBulkMessage = GetMessageType<chia_wallet_service, nft_transfer_bulk_command, TNftTransferBulkResponse>;
1213
+ export declare function nft_transfer_bulk<T extends TRPCAgent | TDaemon>(agent: T, data: TNftTransferBulkRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftTransferBulkResponse, WsNftTransferBulkMessage>>;
956
1214
  export declare const nft_get_by_did_command = "nft_get_by_did";
957
1215
  export declare type nft_get_by_did_command = typeof nft_get_by_did_command;
958
1216
  export declare type TNftGetByDidRequest = {
@@ -965,7 +1223,8 @@ export declare type TNftGetByDidResponse = {
965
1223
  success: False;
966
1224
  error: str;
967
1225
  };
968
- export declare function nft_get_by_did(agent: TRPCAgent, data: TNftGetByDidRequest): Promise<TNftGetByDidResponse | import("../../../rpc").ErrorResponse>;
1226
+ export declare type WsNftGetByDidMessage = GetMessageType<chia_wallet_service, nft_get_by_did_command, TNftGetByDidResponse>;
1227
+ export declare function nft_get_by_did<T extends TRPCAgent | TDaemon>(agent: T, data: TNftGetByDidRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftGetByDidResponse, WsNftGetByDidMessage>>;
969
1228
  export declare const nft_get_wallet_did_command = "nft_get_wallet_did";
970
1229
  export declare type nft_get_wallet_did_command = typeof nft_get_wallet_did_command;
971
1230
  export declare type TNftGetWalletDidRequest = {
@@ -974,11 +1233,9 @@ export declare type TNftGetWalletDidRequest = {
974
1233
  export declare type TNftGetWalletDidResponse = {
975
1234
  did_id: Optional<str>;
976
1235
  success: True;
977
- } | {
978
- success: False;
979
- error: str;
980
1236
  };
981
- export declare function nft_get_wallet_did(agent: TRPCAgent, data: TNftGetWalletDidRequest): Promise<TNftGetWalletDidResponse | import("../../../rpc").ErrorResponse>;
1237
+ export declare type WsNftGetWalletDidMessage = GetMessageType<chia_wallet_service, nft_get_wallet_did_command, TNftGetWalletDidResponse>;
1238
+ export declare function nft_get_wallet_did<T extends TRPCAgent | TDaemon>(agent: T, data: TNftGetWalletDidRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftGetWalletDidResponse, WsNftGetWalletDidMessage>>;
982
1239
  export declare const nft_get_wallets_with_dids_command = "nft_get_wallets_with_dids";
983
1240
  export declare type nft_get_wallets_with_dids_command = typeof nft_get_wallets_with_dids_command;
984
1241
  export declare type TNftGetWalletsWithDidsResponse = {
@@ -989,7 +1246,8 @@ export declare type TNftGetWalletsWithDidsResponse = {
989
1246
  did_wallet_id: uint32;
990
1247
  }>;
991
1248
  };
992
- export declare function nft_get_wallets_with_dids(agent: TRPCAgent): Promise<TNftGetWalletsWithDidsResponse | import("../../../rpc").ErrorResponse>;
1249
+ export declare type WsNftGetWalletsWithDidsMessage = GetMessageType<chia_wallet_service, nft_get_wallets_with_dids_command, TNftGetWalletsWithDidsResponse>;
1250
+ export declare function nft_get_wallets_with_dids<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftGetWalletsWithDidsResponse, WsNftGetWalletsWithDidsMessage>>;
993
1251
  export declare const nft_set_nft_status_command = "nft_set_nft_status";
994
1252
  export declare type nft_set_nft_status_command = typeof nft_set_nft_status_command;
995
1253
  export declare type TNftSetNftStatusRequest = {
@@ -999,11 +1257,9 @@ export declare type TNftSetNftStatusRequest = {
999
1257
  };
1000
1258
  export declare type TNftSetNftStatusResponse = {
1001
1259
  success: True;
1002
- } | {
1003
- success: False;
1004
- error: str;
1005
1260
  };
1006
- export declare function nft_set_nft_status(agent: TRPCAgent, data: TNftSetNftStatusRequest): Promise<TNftSetNftStatusResponse | import("../../../rpc").ErrorResponse>;
1261
+ export declare type WsNftSetNftStatusMessage = GetMessageType<chia_wallet_service, nft_set_nft_status_command, TNftSetNftStatusResponse>;
1262
+ export declare function nft_set_nft_status<T extends TRPCAgent | TDaemon>(agent: T, data: TNftSetNftStatusRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftSetNftStatusResponse, WsNftSetNftStatusMessage>>;
1007
1263
  export declare const nft_transfer_nft_command = "nft_transfer_nft";
1008
1264
  export declare type nft_transfer_nft_command = typeof nft_transfer_nft_command;
1009
1265
  export declare type TNftTransferNftRequest = {
@@ -1020,7 +1276,8 @@ export declare type TNftTransferNftResponse = {
1020
1276
  success: False;
1021
1277
  error: str;
1022
1278
  };
1023
- export declare function nft_transfer_nft(agent: TRPCAgent, data: TNftTransferNftRequest): Promise<TNftTransferNftResponse | import("../../../rpc").ErrorResponse>;
1279
+ export declare type WsNftTransferNftMessage = GetMessageType<chia_wallet_service, nft_transfer_nft_command, TNftTransferNftResponse>;
1280
+ export declare function nft_transfer_nft<T extends TRPCAgent | TDaemon>(agent: T, data: TNftTransferNftRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftTransferNftResponse, WsNftTransferNftMessage>>;
1024
1281
  export declare const nft_get_info_command = "nft_get_info";
1025
1282
  export declare type nft_get_info_command = typeof nft_get_info_command;
1026
1283
  export declare type TNftGetInfoRequest = {
@@ -1035,7 +1292,8 @@ export declare type TNftGetInfoResponse = {
1035
1292
  success: False;
1036
1293
  error: str;
1037
1294
  };
1038
- export declare function nft_get_info(agent: TRPCAgent, data: TNftGetInfoRequest): Promise<TNftGetInfoResponse | import("../../../rpc").ErrorResponse>;
1295
+ export declare type WsNftGetInfoMessage = GetMessageType<chia_wallet_service, nft_get_info_command, TNftGetInfoResponse>;
1296
+ export declare function nft_get_info<T extends TRPCAgent | TDaemon>(agent: T, data: TNftGetInfoRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftGetInfoResponse, WsNftGetInfoMessage>>;
1039
1297
  export declare const nft_add_uri_command = "nft_add_uri";
1040
1298
  export declare type nft_add_uri_command = typeof nft_add_uri_command;
1041
1299
  export declare type TNftAddUriRequest = {
@@ -1050,7 +1308,8 @@ export declare type TNftAddUriResponse = {
1050
1308
  wallet_id: uint32;
1051
1309
  spend_bundle: SpendBundle;
1052
1310
  };
1053
- export declare function nft_add_uri(agent: TRPCAgent, data: TNftAddUriRequest): Promise<TNftAddUriResponse | import("../../../rpc").ErrorResponse>;
1311
+ export declare type WsNftAddUriMessage = GetMessageType<chia_wallet_service, nft_add_uri_command, TNftAddUriResponse>;
1312
+ export declare function nft_add_uri<T extends TRPCAgent | TDaemon>(agent: T, data: TNftAddUriRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftAddUriResponse, WsNftAddUriMessage>>;
1054
1313
  export declare const nft_calculate_royalties_command = "nft_calculate_royalties";
1055
1314
  export declare type nft_calculate_royalties_command = typeof nft_calculate_royalties_command;
1056
1315
  export declare type TNftCalculateRoyaltiesRequest = {
@@ -1069,7 +1328,8 @@ export declare type TNftCalculateRoyaltiesResponse = Record<str, Array<{
1069
1328
  address: str;
1070
1329
  amount: uint64;
1071
1330
  }>>;
1072
- export declare function nft_calculate_royalties(agent: TRPCAgent, data: TNftCalculateRoyaltiesRequest): Promise<TNftCalculateRoyaltiesResponse | import("../../../rpc").ErrorResponse>;
1331
+ export declare type WsNftCalculateRoyaltiesMessage = GetMessageType<chia_wallet_service, nft_calculate_royalties_command, TNftCalculateRoyaltiesResponse>;
1332
+ export declare function nft_calculate_royalties<T extends TRPCAgent | TDaemon>(agent: T, data: TNftCalculateRoyaltiesRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftCalculateRoyaltiesResponse, WsNftCalculateRoyaltiesMessage>>;
1073
1333
  export declare const nft_mint_bulk_command = "nft_mint_bulk";
1074
1334
  export declare type nft_mint_bulk_command = typeof nft_mint_bulk_command;
1075
1335
  export declare type TNftMintBulkRequest = {
@@ -1104,8 +1364,10 @@ export declare type TNftMintBulkResponse = {
1104
1364
  } | {
1105
1365
  success: True;
1106
1366
  spend_bundle: SpendBundle;
1367
+ nft_id_list: str[];
1107
1368
  };
1108
- export declare function nft_mint_bulk(agent: TRPCAgent, data: TNftMintBulkRequest): Promise<TNftMintBulkResponse | import("../../../rpc").ErrorResponse>;
1369
+ export declare type WsNftMintBulkMessage = GetMessageType<chia_wallet_service, nft_mint_bulk_command, TNftMintBulkResponse>;
1370
+ export declare function nft_mint_bulk<T extends TRPCAgent | TDaemon>(agent: T, data: TNftMintBulkRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftMintBulkResponse, WsNftMintBulkMessage>>;
1109
1371
  export declare const rl_set_user_info_command = "rl_set_user_info";
1110
1372
  export declare type rl_set_user_info_command = typeof rl_set_user_info_command;
1111
1373
  export declare type TRlSetUserInfoRequest = {
@@ -1120,7 +1382,8 @@ export declare type TRlSetUserInfoRequest = {
1120
1382
  admin_pubkey: str;
1121
1383
  };
1122
1384
  export declare type TRlSetUserInfoResponse = {};
1123
- export declare function rl_set_user_info(agent: TRPCAgent, data: TRlSetUserInfoRequest): Promise<TRlSetUserInfoResponse | import("../../../rpc").ErrorResponse>;
1385
+ export declare type WsRlSetUserInfoMessage = GetMessageType<chia_wallet_service, rl_set_user_info_command, TRlSetUserInfoResponse>;
1386
+ export declare function rl_set_user_info<T extends TRPCAgent | TDaemon>(agent: T, data: TRlSetUserInfoRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TRlSetUserInfoResponse, WsRlSetUserInfoMessage>>;
1124
1387
  export declare const send_clawback_transaction_command = "send_clawback_transaction:";
1125
1388
  export declare type send_clawback_transaction_command = typeof send_clawback_transaction_command;
1126
1389
  export declare type TSendClawbackTransactionRequest = {
@@ -1131,7 +1394,8 @@ export declare type TSendClawbackTransactionResponse = {
1131
1394
  transaction: TransactionRecord;
1132
1395
  transaction_id: TransactionRecord["name"];
1133
1396
  };
1134
- export declare function send_clawback_transaction(agent: TRPCAgent, data: TSendClawbackTransactionRequest): Promise<TSendClawbackTransactionResponse | import("../../../rpc").ErrorResponse>;
1397
+ export declare type WsSendClawbackTransactionMessage = GetMessageType<chia_wallet_service, send_clawback_transaction_command, TSendClawbackTransactionResponse>;
1398
+ export declare function send_clawback_transaction<T extends TRPCAgent | TDaemon>(agent: T, data: TSendClawbackTransactionRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSendClawbackTransactionResponse, WsSendClawbackTransactionMessage>>;
1135
1399
  export declare const add_rate_limited_funds_command = "add_rate_limited_funds:";
1136
1400
  export declare type add_rate_limited_funds_command = typeof add_rate_limited_funds_command;
1137
1401
  export declare type TAddRateLimitedFundsRequest = {
@@ -1142,7 +1406,8 @@ export declare type TAddRateLimitedFundsRequest = {
1142
1406
  export declare type TAddRateLimitedFundsResponse = {
1143
1407
  status: "SUCCESS";
1144
1408
  };
1145
- export declare function add_rate_limited_funds(agent: TRPCAgent, data: TAddRateLimitedFundsRequest): Promise<TAddRateLimitedFundsResponse | import("../../../rpc").ErrorResponse>;
1409
+ export declare type WsAddRateLimitedFundsMessage = GetMessageType<chia_wallet_service, add_rate_limited_funds_command, TAddRateLimitedFundsResponse>;
1410
+ export declare function add_rate_limited_funds<T extends TRPCAgent | TDaemon>(agent: T, data: TAddRateLimitedFundsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TAddRateLimitedFundsResponse, WsAddRateLimitedFundsMessage>>;
1146
1411
  export declare const pw_join_pool_command = "pw_join_pool";
1147
1412
  export declare type pw_join_pool_command = typeof pw_join_pool_command;
1148
1413
  export declare type TPwJoinPoolRequest = {
@@ -1160,7 +1425,8 @@ export declare type TPwJoinPoolResponse = {
1160
1425
  success: False;
1161
1426
  error: "not_initialized";
1162
1427
  };
1163
- export declare function pw_join_pool(agent: TRPCAgent, data: TPwJoinPoolRequest): Promise<TPwJoinPoolResponse | import("../../../rpc").ErrorResponse>;
1428
+ export declare type WsPwJoinPoolMessage = GetMessageType<chia_wallet_service, pw_join_pool_command, TPwJoinPoolResponse>;
1429
+ export declare function pw_join_pool<T extends TRPCAgent | TDaemon>(agent: T, data: TPwJoinPoolRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TPwJoinPoolResponse, WsPwJoinPoolMessage>>;
1164
1430
  export declare const pw_self_pool_command = "pw_self_pool";
1165
1431
  export declare type pw_self_pool_command = typeof pw_self_pool_command;
1166
1432
  export declare type TPwSelfPoolRequest = {
@@ -1172,7 +1438,8 @@ export declare type TPwSelfPoolResponse = {
1172
1438
  transaction: TransactionRecord;
1173
1439
  fee_transaction: Optional<TransactionRecord>;
1174
1440
  };
1175
- export declare function pw_self_pool(agent: TRPCAgent, data: TPwSelfPoolRequest): Promise<TPwSelfPoolResponse | import("../../../rpc").ErrorResponse>;
1441
+ export declare type WsPwSelfPoolMessage = GetMessageType<chia_wallet_service, pw_self_pool_command, TPwSelfPoolResponse>;
1442
+ export declare function pw_self_pool<T extends TRPCAgent | TDaemon>(agent: T, data: TPwSelfPoolRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TPwSelfPoolResponse, WsPwSelfPoolMessage>>;
1176
1443
  export declare const pw_absorb_rewards_command = "pw_absorb_rewards";
1177
1444
  export declare type pw_absorb_rewards_command = typeof pw_absorb_rewards_command;
1178
1445
  export declare type TPwAbsorbRewardsRequest = {
@@ -1185,7 +1452,8 @@ export declare type TPwAbsorbRewardsResponse = {
1185
1452
  transaction: TransactionRecord;
1186
1453
  fee_transaction: Optional<TransactionRecord>;
1187
1454
  };
1188
- export declare function pw_absorb_rewards(agent: TRPCAgent, data: TPwAbsorbRewardsRequest): Promise<TPwAbsorbRewardsResponse | import("../../../rpc").ErrorResponse>;
1455
+ export declare type WsPwAbsorbRewardsMessage = GetMessageType<chia_wallet_service, pw_absorb_rewards_command, TPwAbsorbRewardsResponse>;
1456
+ export declare function pw_absorb_rewards<T extends TRPCAgent | TDaemon>(agent: T, data: TPwAbsorbRewardsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TPwAbsorbRewardsResponse, WsPwAbsorbRewardsMessage>>;
1189
1457
  export declare const pw_status_command = "pw_status";
1190
1458
  export declare type pw_status_command = typeof pw_status_command;
1191
1459
  export declare type TPwStatusRequest = {
@@ -1195,7 +1463,8 @@ export declare type TPwStatusResponse = {
1195
1463
  state: PoolWalletInfo;
1196
1464
  unconfirmed_transactions: TransactionRecord[];
1197
1465
  };
1198
- export declare function pw_status(agent: TRPCAgent, data: TPwStatusRequest): Promise<TPwStatusResponse | import("../../../rpc").ErrorResponse>;
1466
+ export declare type WsPwStatusMessage = GetMessageType<chia_wallet_service, pw_status_command, TPwStatusResponse>;
1467
+ export declare function pw_status<T extends TRPCAgent | TDaemon>(agent: T, data: TPwStatusRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TPwStatusResponse, WsPwStatusMessage>>;
1199
1468
  export declare const create_new_dl_command = "create_new_dl";
1200
1469
  export declare type create_new_dl_command = typeof create_new_dl_command;
1201
1470
  export declare type TCreateNewDlRequest = {
@@ -1210,21 +1479,24 @@ export declare type TCreateNewDlResponse = {
1210
1479
  transactions: TransactionRecordConvenience[];
1211
1480
  launcher_id: bytes32;
1212
1481
  };
1213
- export declare function create_new_dl(agent: TRPCAgent, data: TCreateNewDlRequest): Promise<TCreateNewDlResponse | import("../../../rpc").ErrorResponse>;
1482
+ export declare type WsCreateNewDlMessage = GetMessageType<chia_wallet_service, create_new_dl_command, TCreateNewDlResponse>;
1483
+ export declare function create_new_dl<T extends TRPCAgent | TDaemon>(agent: T, data: TCreateNewDlRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCreateNewDlResponse, WsCreateNewDlMessage>>;
1214
1484
  export declare const dl_track_new_command = "dl_track_new";
1215
1485
  export declare type dl_track_new_command = typeof dl_track_new_command;
1216
1486
  export declare type TDlTrackNewRequest = {
1217
1487
  launcher_id: str;
1218
1488
  };
1219
1489
  export declare type TDlTrackNewResponse = {};
1220
- export declare function dl_track_new(agent: TRPCAgent, data: TDlTrackNewRequest): Promise<TDlTrackNewResponse | import("../../../rpc").ErrorResponse>;
1490
+ export declare type WsDlTrackNewMessage = GetMessageType<chia_wallet_service, dl_track_new_command, TDlTrackNewResponse>;
1491
+ export declare function dl_track_new<T extends TRPCAgent | TDaemon>(agent: T, data: TDlTrackNewRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlTrackNewResponse, WsDlTrackNewMessage>>;
1221
1492
  export declare const dl_stop_tracking_command = "dl_stop_tracking";
1222
1493
  export declare type dl_stop_tracking_command = typeof dl_stop_tracking_command;
1223
1494
  export declare type TDlStopTrackingRequest = {
1224
1495
  launcher_id: str;
1225
1496
  };
1226
1497
  export declare type TDlStopTrackingResponse = {};
1227
- export declare function dl_stop_tracking(agent: TRPCAgent, data: TDlStopTrackingRequest): Promise<TDlStopTrackingResponse | import("../../../rpc").ErrorResponse>;
1498
+ export declare type WsDlStopTrackingMessage = GetMessageType<chia_wallet_service, dl_stop_tracking_command, TDlStopTrackingResponse>;
1499
+ export declare function dl_stop_tracking<T extends TRPCAgent | TDaemon>(agent: T, data: TDlStopTrackingRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlStopTrackingResponse, WsDlStopTrackingMessage>>;
1228
1500
  export declare const dl_latest_singleton_command = "dl_latest_singleton";
1229
1501
  export declare type dl_latest_singleton_command = typeof dl_latest_singleton_command;
1230
1502
  export declare type TDlLatestSingletonRequest = {
@@ -1234,7 +1506,8 @@ export declare type TDlLatestSingletonRequest = {
1234
1506
  export declare type TDlLatestSingletonResponse = {
1235
1507
  singleton: Optional<SingletonRecord>;
1236
1508
  };
1237
- export declare function dl_latest_singleton(agent: TRPCAgent, data: TDlLatestSingletonRequest): Promise<TDlLatestSingletonResponse | import("../../../rpc").ErrorResponse>;
1509
+ export declare type WsDlLatestSingletonMessage = GetMessageType<chia_wallet_service, dl_latest_singleton_command, TDlLatestSingletonResponse>;
1510
+ export declare function dl_latest_singleton<T extends TRPCAgent | TDaemon>(agent: T, data: TDlLatestSingletonRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlLatestSingletonResponse, WsDlLatestSingletonMessage>>;
1238
1511
  export declare const dl_singletons_by_root_command = "dl_singletons_by_root";
1239
1512
  export declare type dl_singletons_by_root_command = typeof dl_singletons_by_root_command;
1240
1513
  export declare type TDlSingletonsByRootRequest = {
@@ -1244,7 +1517,8 @@ export declare type TDlSingletonsByRootRequest = {
1244
1517
  export declare type TDlSingletonsByRootResponse = {
1245
1518
  singletons: SingletonRecord[];
1246
1519
  };
1247
- export declare function dl_singletons_by_root(agent: TRPCAgent, data: TDlSingletonsByRootRequest): Promise<TDlSingletonsByRootResponse | import("../../../rpc").ErrorResponse>;
1520
+ export declare type WsDlSingletonsByRootMessage = GetMessageType<chia_wallet_service, dl_singletons_by_root_command, TDlSingletonsByRootResponse>;
1521
+ export declare function dl_singletons_by_root<T extends TRPCAgent | TDaemon>(agent: T, data: TDlSingletonsByRootRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlSingletonsByRootResponse, WsDlSingletonsByRootMessage>>;
1248
1522
  export declare const dl_update_root_command = "dl_update_root";
1249
1523
  export declare type dl_update_root_command = typeof dl_update_root_command;
1250
1524
  export declare type TDlUpdateRootRequest = {
@@ -1255,7 +1529,8 @@ export declare type TDlUpdateRootRequest = {
1255
1529
  export declare type TDlUpdateRootResponse = {
1256
1530
  tx_record: TransactionRecordConvenience;
1257
1531
  };
1258
- export declare function dl_update_root(agent: TRPCAgent, data: TDlUpdateRootRequest): Promise<TDlUpdateRootResponse | import("../../../rpc").ErrorResponse>;
1532
+ export declare type WsDlUpdateRootMessage = GetMessageType<chia_wallet_service, dl_update_root_command, TDlUpdateRootResponse>;
1533
+ export declare function dl_update_root<T extends TRPCAgent | TDaemon>(agent: T, data: TDlUpdateRootRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlUpdateRootResponse, WsDlUpdateRootMessage>>;
1259
1534
  export declare const dl_update_multiple_command = "dl_update_multiple";
1260
1535
  export declare type dl_update_multiple_command = typeof dl_update_multiple_command;
1261
1536
  export declare type TDlUpdateMultipleRequest = {
@@ -1264,7 +1539,8 @@ export declare type TDlUpdateMultipleRequest = {
1264
1539
  export declare type TDlUpdateMultipleResponse = {
1265
1540
  tx_records: TransactionRecordConvenience[];
1266
1541
  };
1267
- export declare function dl_update_multiple(agent: TRPCAgent, data: TDlUpdateMultipleRequest): Promise<TDlUpdateMultipleResponse | import("../../../rpc").ErrorResponse>;
1542
+ export declare type WsDlUpdateMultipleMessage = GetMessageType<chia_wallet_service, dl_update_multiple_command, TDlUpdateMultipleResponse>;
1543
+ export declare function dl_update_multiple<T extends TRPCAgent | TDaemon>(agent: T, data: TDlUpdateMultipleRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlUpdateMultipleResponse, WsDlUpdateMultipleMessage>>;
1268
1544
  export declare const dl_history_command = "dl_history";
1269
1545
  export declare type dl_history_command = typeof dl_history_command;
1270
1546
  export declare type TDlHistoryRequest = {
@@ -1276,14 +1552,16 @@ export declare type TDlHistoryResponse = {
1276
1552
  history: SingletonRecord[];
1277
1553
  count: int;
1278
1554
  };
1279
- export declare function dl_history(agent: TRPCAgent, data: TDlHistoryRequest): Promise<TDlHistoryResponse | import("../../../rpc").ErrorResponse>;
1555
+ export declare type WsDlHistoryMessage = GetMessageType<chia_wallet_service, dl_history_command, TDlHistoryResponse>;
1556
+ export declare function dl_history<T extends TRPCAgent | TDaemon>(agent: T, data: TDlHistoryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlHistoryResponse, WsDlHistoryMessage>>;
1280
1557
  export declare const dl_owned_singletons_command = "dl_owned_singletons";
1281
1558
  export declare type dl_owned_singletons_command = typeof dl_owned_singletons_command;
1282
1559
  export declare type TDlOwnedSingletonsResponse = {
1283
1560
  singletons: SingletonRecord[];
1284
1561
  count: int;
1285
1562
  };
1286
- export declare function dl_owned_singletons(agent: TRPCAgent): Promise<TDlOwnedSingletonsResponse | import("../../../rpc").ErrorResponse>;
1563
+ export declare type WsDlOwnedSingletonsMessage = GetMessageType<chia_wallet_service, dl_owned_singletons_command, TDlOwnedSingletonsResponse>;
1564
+ export declare function dl_owned_singletons<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlOwnedSingletonsResponse, WsDlOwnedSingletonsMessage>>;
1287
1565
  export declare const dl_get_mirrors_command = "dl_get_mirrors";
1288
1566
  export declare type dl_get_mirrors_command = typeof dl_get_mirrors_command;
1289
1567
  export declare type TDlGetMirrorsRequest = {
@@ -1292,7 +1570,8 @@ export declare type TDlGetMirrorsRequest = {
1292
1570
  export declare type TDlGetMirrorsResponse = {
1293
1571
  mirrors: Mirror[];
1294
1572
  };
1295
- export declare function dl_get_mirrors(agent: TRPCAgent, data: TDlGetMirrorsRequest): Promise<TDlGetMirrorsResponse | import("../../../rpc").ErrorResponse>;
1573
+ export declare type WsDlGetMirrorsMessage = GetMessageType<chia_wallet_service, dl_get_mirrors_command, TDlGetMirrorsResponse>;
1574
+ export declare function dl_get_mirrors<T extends TRPCAgent | TDaemon>(agent: T, data: TDlGetMirrorsRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlGetMirrorsResponse, WsDlGetMirrorsMessage>>;
1296
1575
  export declare const dl_new_mirror_command = "dl_new_mirror";
1297
1576
  export declare type dl_new_mirror_command = typeof dl_new_mirror_command;
1298
1577
  export declare type TDlNewMirrorRequest = {
@@ -1304,7 +1583,8 @@ export declare type TDlNewMirrorRequest = {
1304
1583
  export declare type TDlNewMirrorResponse = {
1305
1584
  transactions: TransactionRecordConvenience[];
1306
1585
  };
1307
- export declare function dl_new_mirror(agent: TRPCAgent, data: TDlNewMirrorRequest): Promise<TDlNewMirrorResponse | import("../../../rpc").ErrorResponse>;
1586
+ export declare type WsDlNewMirrorMessage = GetMessageType<chia_wallet_service, dl_new_mirror_command, TDlNewMirrorResponse>;
1587
+ export declare function dl_new_mirror<T extends TRPCAgent | TDaemon>(agent: T, data: TDlNewMirrorRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlNewMirrorResponse, WsDlNewMirrorMessage>>;
1308
1588
  export declare const dl_delete_mirror_command = "dl_delete_mirror";
1309
1589
  export declare type dl_delete_mirror_command = typeof dl_delete_mirror_command;
1310
1590
  export declare type TDlDeleteMirrorRequest = {
@@ -1314,4 +1594,7 @@ export declare type TDlDeleteMirrorRequest = {
1314
1594
  export declare type TDlDeleteMirrorResponse = {
1315
1595
  transactions: TransactionRecordConvenience[];
1316
1596
  };
1317
- export declare function dl_delete_mirror(agent: TRPCAgent, data: TDlDeleteMirrorRequest): Promise<TDlDeleteMirrorResponse | import("../../../rpc").ErrorResponse>;
1597
+ export declare type WsDlDeleteMirrorMessage = GetMessageType<chia_wallet_service, dl_delete_mirror_command, TDlDeleteMirrorResponse>;
1598
+ export declare function dl_delete_mirror<T extends TRPCAgent | TDaemon>(agent: T, data: TDlDeleteMirrorRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlDeleteMirrorResponse, WsDlDeleteMirrorMessage>>;
1599
+ 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 | TNftTransferBulkRequest | TNftTransferBulkResponse | 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 | 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;
1600
+ 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 | WsNftTransferBulkMessage | 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 | 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;