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