chia-agent 9.1.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 +189 -0
- package/README.md +12 -5
- package/api/chia/data_layer/data_layer_util.d.ts +8 -1
- package/api/chia/types/_python_types_.d.ts +1 -0
- package/api/chia/types/clvm_cost.d.ts +2 -0
- package/api/chia/types/clvm_cost.js +2 -0
- package/api/chia/types/mempool_item.d.ts +2 -4
- package/api/chia/util/keychain.d.ts +12 -0
- package/api/chia/util/keychain.js +2 -0
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +3 -0
- package/api/chia/wallet/util/wallet_types.d.ts +0 -1
- package/api/chia/wallet/util/wallet_types.js +1 -1
- package/api/rpc/common/index.d.ts +19 -9
- package/api/rpc/crawler/index.d.ts +8 -2
- package/api/rpc/data_layer/index.d.ts +69 -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 +76 -25
- package/api/rpc/full_node/index.js +8 -1
- package/api/rpc/harvester/index.d.ts +16 -6
- package/api/rpc/index.d.ts +11 -18
- package/api/rpc/index.js +14 -4
- package/api/rpc/wallet/index.d.ts +475 -95
- package/api/rpc/wallet/index.js +110 -4
- 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 +165 -33
- package/api/ws/daemon/index.js +37 -2
- 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 +9 -18
- package/api/ws/index.js +15 -12
- 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,35 +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>>;
|
|
151
|
+
export declare const push_transactions_command = "push_transactions";
|
|
152
|
+
export declare type push_transactions_command = typeof push_transactions_command;
|
|
153
|
+
export declare type TPushTransactionsRequest = {
|
|
154
|
+
transactions: str;
|
|
155
|
+
};
|
|
156
|
+
export declare type TPushTransactionsResponse = {};
|
|
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>>;
|
|
135
159
|
export declare const farm_block_command = "farm_block";
|
|
136
160
|
export declare type farm_block_command = typeof farm_block_command;
|
|
137
161
|
export declare type TFarmBlockRequest = {
|
|
138
162
|
address: str;
|
|
139
163
|
};
|
|
140
164
|
export declare type TFarmBlockResponse = {};
|
|
141
|
-
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>>;
|
|
142
167
|
export declare const get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
143
168
|
export declare type get_initial_freeze_period_command_of_wallet = typeof get_initial_freeze_period_command_of_wallet;
|
|
144
169
|
export declare type TGetInitialFreezePeriodRequestOfWallet = {};
|
|
145
170
|
export declare type TGetInitialFreezePeriodResponseOfWallet = {
|
|
146
171
|
INITIAL_FREEZE_END_TIMESTAMP: 1620061200;
|
|
147
172
|
};
|
|
148
|
-
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>>;
|
|
149
175
|
export declare const get_network_info_command_of_wallet = "get_network_info";
|
|
150
176
|
export declare type get_network_info_command_of_wallet = typeof get_network_info_command_of_wallet;
|
|
151
177
|
export declare type TGetNetworkInfoRequestOfWallet = {};
|
|
@@ -153,7 +179,8 @@ export declare type TGetNetworkInfoResponseOfWallet = {
|
|
|
153
179
|
network_name: str;
|
|
154
180
|
network_prefix: str;
|
|
155
181
|
};
|
|
156
|
-
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>>;
|
|
157
184
|
export declare const get_wallets_command = "get_wallets";
|
|
158
185
|
export declare type get_wallets_command = typeof get_wallets_command;
|
|
159
186
|
export declare type TGetWalletsRequest = {
|
|
@@ -164,7 +191,8 @@ export declare type TGetWalletsResponse = {
|
|
|
164
191
|
wallets: WalletInfo[];
|
|
165
192
|
fingerprint?: int;
|
|
166
193
|
};
|
|
167
|
-
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>>;
|
|
168
196
|
export declare type TCreate_New_CAT_WalletRequest = {
|
|
169
197
|
fee?: uint64;
|
|
170
198
|
wallet_type: "cat_wallet";
|
|
@@ -281,7 +309,8 @@ export declare const create_new_wallet_command = "create_new_wallet";
|
|
|
281
309
|
export declare type create_new_wallet_command = typeof create_new_wallet_command;
|
|
282
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;
|
|
283
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;
|
|
284
|
-
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>>;
|
|
285
314
|
export declare const get_wallet_balance_command = "get_wallet_balance";
|
|
286
315
|
export declare type get_wallet_balance_command = typeof get_wallet_balance_command;
|
|
287
316
|
export declare type TGetWalletBalanceRequest = {
|
|
@@ -302,7 +331,8 @@ export declare type TGetWalletBalanceResponse = {
|
|
|
302
331
|
asset_id?: str;
|
|
303
332
|
};
|
|
304
333
|
};
|
|
305
|
-
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>>;
|
|
306
336
|
export declare const get_transaction_command = "get_transaction";
|
|
307
337
|
export declare type get_transaction_command = typeof get_transaction_command;
|
|
308
338
|
export declare type TGetTransactionRequest = {
|
|
@@ -312,7 +342,8 @@ export declare type TGetTransactionResponse = {
|
|
|
312
342
|
transaction: TransactionRecordConvenience;
|
|
313
343
|
transaction_id: TransactionRecord["name"];
|
|
314
344
|
};
|
|
315
|
-
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>>;
|
|
316
347
|
export declare const get_transactions_command = "get_transactions";
|
|
317
348
|
export declare type get_transactions_command = typeof get_transactions_command;
|
|
318
349
|
export declare type TGetTransactionsRequest = {
|
|
@@ -327,7 +358,8 @@ export declare type TGetTransactionsResponse = {
|
|
|
327
358
|
transactions: TransactionRecordConvenience[];
|
|
328
359
|
wallet_id: int;
|
|
329
360
|
};
|
|
330
|
-
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>>;
|
|
331
363
|
export declare const get_next_address_command = "get_next_address";
|
|
332
364
|
export declare type get_next_address_command = typeof get_next_address_command;
|
|
333
365
|
export declare type TGetNextAddressRequest = {
|
|
@@ -338,7 +370,8 @@ export declare type TGetNextAddressResponse = {
|
|
|
338
370
|
wallet_id: uint32;
|
|
339
371
|
address: str;
|
|
340
372
|
};
|
|
341
|
-
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>>;
|
|
342
375
|
export declare const send_transaction_command = "send_transaction";
|
|
343
376
|
export declare type send_transaction_command = typeof send_transaction_command;
|
|
344
377
|
export declare type TSendTransactionRequest = {
|
|
@@ -348,27 +381,47 @@ export declare type TSendTransactionRequest = {
|
|
|
348
381
|
address: str;
|
|
349
382
|
memos?: str[];
|
|
350
383
|
min_coin_amount?: uint64;
|
|
384
|
+
max_coin_amount?: uint64;
|
|
385
|
+
exclude_coin_amounts?: uint64[];
|
|
386
|
+
exclude_coin_ids?: str[];
|
|
351
387
|
};
|
|
352
388
|
export declare type TSendTransactionResponse = {
|
|
353
389
|
transaction: TransactionRecordConvenience;
|
|
354
390
|
transaction_id: TransactionRecord["name"];
|
|
355
391
|
};
|
|
356
|
-
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>>;
|
|
357
394
|
export declare const send_transaction_multi_command = "send_transaction_multi";
|
|
358
395
|
export declare type send_transaction_multi_command = typeof send_transaction_multi_command;
|
|
359
396
|
export declare type TSendTransactionMultiRequest = {
|
|
360
397
|
wallet_id: uint32;
|
|
361
398
|
additions: TAdditions[];
|
|
362
399
|
fee?: uint64;
|
|
400
|
+
min_coin_amount?: uint64;
|
|
401
|
+
max_coin_amount?: uint64;
|
|
402
|
+
exclude_coin_amounts?: uint64[];
|
|
403
|
+
exclude_coins?: Coin[];
|
|
363
404
|
coins?: Coin[];
|
|
364
405
|
coin_announcements?: TCoinAnnouncement[];
|
|
365
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[];
|
|
366
418
|
};
|
|
367
419
|
export declare type TSendTransactionMultiResponse = {
|
|
368
420
|
transaction: TransactionRecordConvenience;
|
|
369
421
|
transaction_id: TransactionRecordConvenience["name"];
|
|
370
422
|
};
|
|
371
|
-
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>>;
|
|
372
425
|
export declare const get_transaction_count_command = "get_transaction_count";
|
|
373
426
|
export declare type get_transaction_count_command = typeof get_transaction_count_command;
|
|
374
427
|
export declare type TGetTransactionCountRequest = {
|
|
@@ -378,7 +431,8 @@ export declare type TGetTransactionCountResponse = {
|
|
|
378
431
|
count: int;
|
|
379
432
|
wallet_id: int;
|
|
380
433
|
};
|
|
381
|
-
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>>;
|
|
382
436
|
export declare const get_farmed_amount_command = "get_farmed_amount";
|
|
383
437
|
export declare type get_farmed_amount_command = typeof get_farmed_amount_command;
|
|
384
438
|
export declare type TGetFarmedAmountRequest = {};
|
|
@@ -389,7 +443,8 @@ export declare type TGetFarmedAmountResponse = {
|
|
|
389
443
|
fee_amount: int;
|
|
390
444
|
last_height_farmed: int;
|
|
391
445
|
};
|
|
392
|
-
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>>;
|
|
393
448
|
export declare type TAdditions = {
|
|
394
449
|
amount: uint64;
|
|
395
450
|
puzzle_hash: str;
|
|
@@ -408,44 +463,84 @@ export declare type TPuzzleAnnouncement = {
|
|
|
408
463
|
export declare const create_signed_transaction_command = "create_signed_transaction";
|
|
409
464
|
export declare type create_signed_transaction_command = typeof create_signed_transaction_command;
|
|
410
465
|
export declare type TCreateSignedTransactionRequest = {
|
|
466
|
+
wallet_id?: uint32;
|
|
411
467
|
additions: TAdditions[];
|
|
412
468
|
fee?: uint64;
|
|
413
469
|
min_coin_amount?: uint64;
|
|
470
|
+
max_coin_amount?: uint64;
|
|
471
|
+
exclude_coin_amounts?: uint64[];
|
|
414
472
|
coins?: Coin[];
|
|
415
473
|
exclude_coins?: Coin[];
|
|
416
474
|
coin_announcements?: TCoinAnnouncement[];
|
|
417
475
|
puzzle_announcements?: TPuzzleAnnouncement[];
|
|
418
476
|
};
|
|
419
477
|
export declare type TCreateSignedTransactionResponse = {
|
|
478
|
+
signed_txs: TransactionRecordConvenience[];
|
|
420
479
|
signed_tx: TransactionRecordConvenience;
|
|
421
480
|
};
|
|
422
|
-
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>>;
|
|
423
483
|
export declare const delete_unconfirmed_transactions_command = "delete_unconfirmed_transactions";
|
|
424
484
|
export declare type delete_unconfirmed_transactions_command = typeof delete_unconfirmed_transactions_command;
|
|
425
485
|
export declare type TDeleteUnconfirmedTransactionsRequest = {
|
|
426
486
|
wallet_id: uint32;
|
|
427
487
|
};
|
|
428
488
|
export declare type TDeleteUnconfirmedTransactionsResponse = {};
|
|
429
|
-
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>>;
|
|
430
491
|
export declare const select_coins_command = "select_coins";
|
|
431
492
|
export declare type select_coins_command = typeof select_coins_command;
|
|
432
493
|
export declare type TSelectCoinsRequest = {
|
|
433
494
|
amount: uint64;
|
|
434
495
|
wallet_id: uint32;
|
|
435
496
|
min_coin_amount?: uint64;
|
|
497
|
+
max_coin_amount?: uint64;
|
|
498
|
+
excluded_coin_amounts?: uint64[];
|
|
436
499
|
excluded_coins?: Coin[];
|
|
437
500
|
};
|
|
438
501
|
export declare type TSelectCoinsResponse = {
|
|
439
502
|
coins: Coin[];
|
|
440
503
|
};
|
|
441
|
-
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>>;
|
|
442
536
|
export declare const get_current_derivation_index_command = "get_current_derivation_index";
|
|
443
537
|
export declare type get_current_derivation_index_command = typeof get_current_derivation_index_command;
|
|
444
538
|
export declare type TGetCurrentDerivationIndexResponse = {
|
|
445
539
|
success: True;
|
|
446
540
|
index: Optional<uint32>;
|
|
447
541
|
};
|
|
448
|
-
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>>;
|
|
449
544
|
export declare const extend_derivation_index_command = "extend_derivation_index";
|
|
450
545
|
export declare type extend_derivation_index_command = typeof extend_derivation_index_command;
|
|
451
546
|
export declare type TExtendDerivationIndexRequest = {
|
|
@@ -455,13 +550,97 @@ export declare type TExtendDerivationIndexResponse = {
|
|
|
455
550
|
success: True;
|
|
456
551
|
index: Optional<uint32>;
|
|
457
552
|
};
|
|
458
|
-
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>>;
|
|
555
|
+
export declare const get_notifications_command = "get_notifications";
|
|
556
|
+
export declare type get_notifications_command = typeof get_notifications_command;
|
|
557
|
+
export declare type TGetNotificationsRequest = {
|
|
558
|
+
ids?: str[];
|
|
559
|
+
start?: int;
|
|
560
|
+
end?: int;
|
|
561
|
+
};
|
|
562
|
+
export declare type TGetNotificationsResponse = {
|
|
563
|
+
notifications: Array<{
|
|
564
|
+
id: str;
|
|
565
|
+
message: str;
|
|
566
|
+
amount: uint64;
|
|
567
|
+
}>;
|
|
568
|
+
};
|
|
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>>;
|
|
571
|
+
export declare const delete_notifications_command = "delete_notifications";
|
|
572
|
+
export declare type delete_notifications_command = typeof delete_notifications_command;
|
|
573
|
+
export declare type TDeleteNotificationsRequest = {
|
|
574
|
+
ids?: str[];
|
|
575
|
+
};
|
|
576
|
+
export declare type TDeleteNotificationsResponse = {};
|
|
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>>;
|
|
579
|
+
export declare const send_notification_command = "send_notification";
|
|
580
|
+
export declare type send_notification_command = typeof send_notification_command;
|
|
581
|
+
export declare type TSendNotificationRequest = {
|
|
582
|
+
target: str;
|
|
583
|
+
message: str;
|
|
584
|
+
amount: uint64;
|
|
585
|
+
fee?: uint64;
|
|
586
|
+
};
|
|
587
|
+
export declare type TSendNotificationResponse = {
|
|
588
|
+
tx: TransactionRecordConvenience;
|
|
589
|
+
};
|
|
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>>;
|
|
607
|
+
export declare const sign_message_by_address_command = "sign_message_by_address";
|
|
608
|
+
export declare type sign_message_by_address_command = typeof sign_message_by_address_command;
|
|
609
|
+
export declare type TSignMessageByAddressRequest = {
|
|
610
|
+
address: str;
|
|
611
|
+
message: str;
|
|
612
|
+
};
|
|
613
|
+
export declare type TSignMessageByAddressResponse = {
|
|
614
|
+
success: True;
|
|
615
|
+
pubkey: str;
|
|
616
|
+
signature: str;
|
|
617
|
+
};
|
|
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>>;
|
|
620
|
+
export declare const sign_message_by_id_command = "sign_message_by_id";
|
|
621
|
+
export declare type sign_message_by_id_command = typeof sign_message_by_id_command;
|
|
622
|
+
export declare type TSignMessageByIdRequest = {
|
|
623
|
+
id: str;
|
|
624
|
+
message: str;
|
|
625
|
+
};
|
|
626
|
+
export declare type TSignMessageByIdResponse = {
|
|
627
|
+
success: False;
|
|
628
|
+
error: str;
|
|
629
|
+
} | {
|
|
630
|
+
success: True;
|
|
631
|
+
pubkey: str;
|
|
632
|
+
signature: str;
|
|
633
|
+
latest_coin_id: str;
|
|
634
|
+
};
|
|
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>>;
|
|
459
637
|
export declare const get_cat_list_command = "get_cat_list";
|
|
460
638
|
export declare type get_cat_list_command = typeof get_cat_list_command;
|
|
461
639
|
export declare type TGetCatListResponse = {
|
|
462
640
|
cat_list: CAT[];
|
|
463
641
|
};
|
|
464
|
-
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>>;
|
|
465
644
|
export declare const cat_set_name_command = "cat_set_name";
|
|
466
645
|
export declare type cat_set_name_command = typeof cat_set_name_command;
|
|
467
646
|
export declare type TCatSetNameRequest = {
|
|
@@ -471,7 +650,8 @@ export declare type TCatSetNameRequest = {
|
|
|
471
650
|
export declare type TCatSetNameResponse = {
|
|
472
651
|
wallet_id: uint32;
|
|
473
652
|
};
|
|
474
|
-
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>>;
|
|
475
655
|
export declare const cat_asset_id_to_name_command = "cat_asset_id_to_name";
|
|
476
656
|
export declare type cat_asset_id_to_name_command = typeof cat_asset_id_to_name_command;
|
|
477
657
|
export declare type TCatAssetIdToNameRequest = {
|
|
@@ -481,7 +661,8 @@ export declare type TCatAssetIdToNameResponse = {
|
|
|
481
661
|
wallet_id: Optional<uint32>;
|
|
482
662
|
name: str;
|
|
483
663
|
};
|
|
484
|
-
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>>;
|
|
485
666
|
export declare const cat_get_name_command = "cat_get_name";
|
|
486
667
|
export declare type cat_get_name_command = typeof cat_get_name_command;
|
|
487
668
|
export declare type TCatGetNameRequest = {
|
|
@@ -491,7 +672,8 @@ export declare type TCatGetNameResponse = {
|
|
|
491
672
|
wallet_id: uint32;
|
|
492
673
|
name: str;
|
|
493
674
|
};
|
|
494
|
-
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>>;
|
|
495
677
|
export declare const get_stray_cats_command = "get_stray_cats";
|
|
496
678
|
export declare type get_stray_cats_command = typeof get_stray_cats_command;
|
|
497
679
|
export declare type TGetStrayCatsResponse = {
|
|
@@ -502,22 +684,28 @@ export declare type TGetStrayCatsResponse = {
|
|
|
502
684
|
sender_puzzle_hash: str;
|
|
503
685
|
}>;
|
|
504
686
|
};
|
|
505
|
-
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>>;
|
|
506
689
|
export declare const cat_spend_command = "cat_spend";
|
|
507
690
|
export declare type cat_spend_command = typeof cat_spend_command;
|
|
508
691
|
export declare type TCatSpendRequest = {
|
|
509
692
|
wallet_id: uint32;
|
|
693
|
+
additions?: TAdditions[];
|
|
694
|
+
fee: uint64;
|
|
695
|
+
amount: uint64;
|
|
510
696
|
inner_address: str;
|
|
511
697
|
memos?: str[];
|
|
512
|
-
amount: uint64;
|
|
513
|
-
fee: uint64;
|
|
514
698
|
min_coin_amount?: uint64;
|
|
699
|
+
max_coin_amount?: uint64;
|
|
700
|
+
exclude_coin_amounts?: uint64[];
|
|
701
|
+
exclude_coin_ids?: str[];
|
|
515
702
|
};
|
|
516
703
|
export declare type TCatSpendResponse = {
|
|
517
704
|
transaction: TransactionRecordConvenience;
|
|
518
705
|
transaction_id: TransactionRecord["name"];
|
|
519
706
|
};
|
|
520
|
-
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>>;
|
|
521
709
|
export declare const cat_get_asset_id_command = "cat_get_asset_id";
|
|
522
710
|
export declare type cat_get_asset_id_command = typeof cat_get_asset_id_command;
|
|
523
711
|
export declare type TCatGetAssetIdRequest = {
|
|
@@ -527,7 +715,8 @@ export declare type TCatGetAssetIdResponse = {
|
|
|
527
715
|
asset_id: str;
|
|
528
716
|
wallet_id: uint32;
|
|
529
717
|
};
|
|
530
|
-
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>>;
|
|
531
720
|
export declare const create_offer_for_ids_command = "create_offer_for_ids";
|
|
532
721
|
export declare type create_offer_for_ids_command = typeof create_offer_for_ids_command;
|
|
533
722
|
export declare type TCreateOfferForIdsRequest = {
|
|
@@ -536,12 +725,15 @@ export declare type TCreateOfferForIdsRequest = {
|
|
|
536
725
|
validate_only?: bool;
|
|
537
726
|
driver_dict?: TDriverDict;
|
|
538
727
|
min_coin_amount?: uint64;
|
|
728
|
+
max_coin_amount?: uint64;
|
|
729
|
+
solver?: Record<str, any>;
|
|
539
730
|
};
|
|
540
731
|
export declare type TCreateOfferForIdsResponse = {
|
|
541
732
|
offer: str;
|
|
542
733
|
trade_record: TradeRecordConvenience;
|
|
543
734
|
};
|
|
544
|
-
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>>;
|
|
545
737
|
export declare const get_offer_summary_command = "get_offer_summary";
|
|
546
738
|
export declare type get_offer_summary_command = typeof get_offer_summary_command;
|
|
547
739
|
export declare type TGetOfferSummaryRequest = {
|
|
@@ -556,7 +748,8 @@ export declare type TGetOfferSummaryResponse = {
|
|
|
556
748
|
infos: TDriverDict;
|
|
557
749
|
};
|
|
558
750
|
};
|
|
559
|
-
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>>;
|
|
560
753
|
export declare const check_offer_validity_command = "check_offer_validity";
|
|
561
754
|
export declare type check_offer_validity_command = typeof check_offer_validity_command;
|
|
562
755
|
export declare type TCheckOfferValidityRequest = {
|
|
@@ -565,19 +758,22 @@ export declare type TCheckOfferValidityRequest = {
|
|
|
565
758
|
export declare type TCheckOfferValidityResponse = {
|
|
566
759
|
valid: bool;
|
|
567
760
|
};
|
|
568
|
-
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>>;
|
|
569
763
|
export declare const take_offer_command = "take_offer";
|
|
570
764
|
export declare type take_offer_command = typeof take_offer_command;
|
|
571
765
|
export declare type TTakeOfferRequest = {
|
|
572
766
|
offer: str;
|
|
573
767
|
fee?: uint64;
|
|
574
768
|
min_coin_amount?: uint64;
|
|
769
|
+
max_coin_amount?: uint64;
|
|
575
770
|
solver?: Record<str, any>;
|
|
576
771
|
};
|
|
577
772
|
export declare type TTakeOfferResponse = {
|
|
578
773
|
trade_record: TradeRecordConvenience;
|
|
579
774
|
};
|
|
580
|
-
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>>;
|
|
581
777
|
export declare const get_offer_command = "get_offer";
|
|
582
778
|
export declare type get_offer_command = typeof get_offer_command;
|
|
583
779
|
export declare type TGetOfferRequest = {
|
|
@@ -588,7 +784,8 @@ export declare type TGetOfferResponse = {
|
|
|
588
784
|
trade_record: TradeRecordConvenience;
|
|
589
785
|
offer: Optional<str>;
|
|
590
786
|
};
|
|
591
|
-
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>>;
|
|
592
789
|
export declare const get_all_offers_command = "get_all_offers";
|
|
593
790
|
export declare type get_all_offers_command = typeof get_all_offers_command;
|
|
594
791
|
export declare type TGetAllOffersRequest = {
|
|
@@ -605,7 +802,8 @@ export declare type TGetAllOffersResponse = {
|
|
|
605
802
|
trade_records: TradeRecordConvenience[];
|
|
606
803
|
offers: Optional<str[]>;
|
|
607
804
|
};
|
|
608
|
-
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>>;
|
|
609
807
|
export declare const get_offers_count_command = "get_offers_count";
|
|
610
808
|
export declare type get_offers_count_command = typeof get_offers_count_command;
|
|
611
809
|
export declare type TGetOffersCountResponse = {
|
|
@@ -613,7 +811,8 @@ export declare type TGetOffersCountResponse = {
|
|
|
613
811
|
my_offers_count: int;
|
|
614
812
|
taken_offers_count: int;
|
|
615
813
|
};
|
|
616
|
-
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>>;
|
|
617
816
|
export declare const cancel_offer_command = "cancel_offer";
|
|
618
817
|
export declare type cancel_offer_command = typeof cancel_offer_command;
|
|
619
818
|
export declare type TCancelOfferRequest = {
|
|
@@ -622,7 +821,8 @@ export declare type TCancelOfferRequest = {
|
|
|
622
821
|
fee?: uint64;
|
|
623
822
|
};
|
|
624
823
|
export declare type TCancelOfferResponse = {};
|
|
625
|
-
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>>;
|
|
626
826
|
export declare const cancel_offers_command = "cancel_offers";
|
|
627
827
|
export declare type cancel_offers_command = typeof cancel_offers_command;
|
|
628
828
|
export declare type TCancelOffersRequest = {
|
|
@@ -635,7 +835,8 @@ export declare type TCancelOffersRequest = {
|
|
|
635
835
|
export declare type TCancelOffersResponse = {
|
|
636
836
|
success: True;
|
|
637
837
|
};
|
|
638
|
-
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>>;
|
|
639
840
|
export declare const did_set_wallet_name_command = "did_set_wallet_name";
|
|
640
841
|
export declare type did_set_wallet_name_command = typeof did_set_wallet_name_command;
|
|
641
842
|
export declare type TDidSetWalletNameRequest = {
|
|
@@ -649,7 +850,8 @@ export declare type TDidSetWalletNameResponse = {
|
|
|
649
850
|
success: False;
|
|
650
851
|
error: str;
|
|
651
852
|
};
|
|
652
|
-
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>>;
|
|
653
855
|
export declare const did_get_wallet_name_command = "did_get_wallet_name";
|
|
654
856
|
export declare type did_get_wallet_name_command = typeof did_get_wallet_name_command;
|
|
655
857
|
export declare type TDidGetWalletNameRequest = {
|
|
@@ -660,7 +862,8 @@ export declare type TDidGetWalletNameResponse = {
|
|
|
660
862
|
wallet_id: uint32;
|
|
661
863
|
name: str;
|
|
662
864
|
};
|
|
663
|
-
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>>;
|
|
664
867
|
export declare const did_update_recovery_ids_command = "did_update_recovery_ids";
|
|
665
868
|
export declare type did_update_recovery_ids_command = typeof did_update_recovery_ids_command;
|
|
666
869
|
export declare type TDidUpdateRecoveryIdsRequest = {
|
|
@@ -671,7 +874,8 @@ export declare type TDidUpdateRecoveryIdsRequest = {
|
|
|
671
874
|
export declare type TDidUpdateRecoveryIdsResponse = {
|
|
672
875
|
success: bool;
|
|
673
876
|
};
|
|
674
|
-
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>>;
|
|
675
879
|
export declare const did_update_metadata_command = "did_update_metadata";
|
|
676
880
|
export declare type did_update_metadata_command = typeof did_update_metadata_command;
|
|
677
881
|
export declare type TDidUpdateMetadataRequest = {
|
|
@@ -687,7 +891,8 @@ export declare type TDidUpdateMetadataResponse = {
|
|
|
687
891
|
success: False;
|
|
688
892
|
error: str;
|
|
689
893
|
};
|
|
690
|
-
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>>;
|
|
691
896
|
export declare const did_spend_command = "did_spend";
|
|
692
897
|
export declare type did_spend_command = typeof did_spend_command;
|
|
693
898
|
export declare type TDidSpendRequest = {
|
|
@@ -697,7 +902,8 @@ export declare type TDidSpendRequest = {
|
|
|
697
902
|
export declare type TDidSpendResponse = {
|
|
698
903
|
success: bool;
|
|
699
904
|
};
|
|
700
|
-
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>>;
|
|
701
907
|
export declare const did_get_pubkey_command = "did_get_pubkey";
|
|
702
908
|
export declare type did_get_pubkey_command = typeof did_get_pubkey_command;
|
|
703
909
|
export declare type TDidGetPubkeyRequest = {
|
|
@@ -707,7 +913,8 @@ export declare type TDidGetPubkeyResponse = {
|
|
|
707
913
|
success: bool;
|
|
708
914
|
pubkey: str;
|
|
709
915
|
};
|
|
710
|
-
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>>;
|
|
711
918
|
export declare const did_get_did_command = "did_get_did";
|
|
712
919
|
export declare type did_get_did_command = typeof did_get_did_command;
|
|
713
920
|
export declare type TDidGetDidRequest = {
|
|
@@ -719,7 +926,8 @@ export declare type TDidGetDidResponse = {
|
|
|
719
926
|
my_did: str;
|
|
720
927
|
coin_id?: bytes32;
|
|
721
928
|
};
|
|
722
|
-
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>>;
|
|
723
931
|
export declare const did_recovery_spend_command = "did_recovery_spend";
|
|
724
932
|
export declare type did_recovery_spend_command = typeof did_recovery_spend_command;
|
|
725
933
|
export declare type TDidRecoverySpendRequest = {
|
|
@@ -734,7 +942,8 @@ export declare type TDidRecoverySpendResponse = {
|
|
|
734
942
|
} | {
|
|
735
943
|
success: False;
|
|
736
944
|
};
|
|
737
|
-
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>>;
|
|
738
947
|
export declare const did_get_recovery_list_command = "did_get_recovery_list";
|
|
739
948
|
export declare type did_get_recovery_list_command = typeof did_get_recovery_list_command;
|
|
740
949
|
export declare type TDidGetRecoveryListRequest = {
|
|
@@ -746,7 +955,8 @@ export declare type TDidGetRecoveryListResponse = {
|
|
|
746
955
|
recovery_list: str[];
|
|
747
956
|
num_required: uint64;
|
|
748
957
|
};
|
|
749
|
-
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>>;
|
|
750
960
|
export declare const did_get_metadata_command = "did_get_metadata";
|
|
751
961
|
export declare type did_get_metadata_command = typeof did_get_metadata_command;
|
|
752
962
|
export declare type TDidGetMetadataRequest = {
|
|
@@ -757,7 +967,8 @@ export declare type TDidGetMetadataResponse = {
|
|
|
757
967
|
wallet_id: uint32;
|
|
758
968
|
metadata: Record<str, str>;
|
|
759
969
|
};
|
|
760
|
-
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>>;
|
|
761
972
|
export declare const did_create_attest_command = "did_create_attest";
|
|
762
973
|
export declare type did_create_attest_command = typeof did_create_attest_command;
|
|
763
974
|
export declare type TDidCreateAttestRequest = {
|
|
@@ -773,7 +984,8 @@ export declare type TDidCreateAttestResponse = {
|
|
|
773
984
|
} | {
|
|
774
985
|
success: False;
|
|
775
986
|
};
|
|
776
|
-
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>>;
|
|
777
989
|
export declare const did_get_information_needed_for_recovery_command = "did_get_information_needed_for_recovery";
|
|
778
990
|
export declare type did_get_information_needed_for_recovery_command = typeof did_get_information_needed_for_recovery_command;
|
|
779
991
|
export declare type TDidGetInformationNeededForRecoveryRequest = {
|
|
@@ -788,7 +1000,8 @@ export declare type TDidGetInformationNeededForRecoveryResponse = {
|
|
|
788
1000
|
pubkey: Optional<bytes>;
|
|
789
1001
|
backup_dids: bytes[];
|
|
790
1002
|
};
|
|
791
|
-
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>>;
|
|
792
1005
|
export declare const did_get_current_coin_info_command = "did_get_current_coin_info";
|
|
793
1006
|
export declare type did_get_current_coin_info_command = typeof did_get_current_coin_info_command;
|
|
794
1007
|
export declare type TDidGetCurrentCoinInfoRequest = {
|
|
@@ -802,7 +1015,8 @@ export declare type TDidGetCurrentCoinInfoResponse = {
|
|
|
802
1015
|
did_innerpuz: bytes32;
|
|
803
1016
|
did_amount: uint64;
|
|
804
1017
|
};
|
|
805
|
-
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>>;
|
|
806
1020
|
export declare const did_create_backup_file_command = "did_create_backup_file";
|
|
807
1021
|
export declare type did_create_backup_file_command = typeof did_create_backup_file_command;
|
|
808
1022
|
export declare type TDidCreateBackupFileRequest = {
|
|
@@ -813,7 +1027,61 @@ export declare type TDidCreateBackupFileResponse = {
|
|
|
813
1027
|
success: True;
|
|
814
1028
|
backup_data: str;
|
|
815
1029
|
};
|
|
816
|
-
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>>;
|
|
817
1085
|
export declare const did_transfer_did_command = "did_transfer_did";
|
|
818
1086
|
export declare type did_transfer_did_command = typeof did_transfer_did_command;
|
|
819
1087
|
export declare type TDidTransferDidRequest = {
|
|
@@ -827,7 +1095,8 @@ export declare type TDidTransferDidResponse = {
|
|
|
827
1095
|
transaction: TransactionRecordConvenience;
|
|
828
1096
|
transaction_id: bytes32;
|
|
829
1097
|
};
|
|
830
|
-
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>>;
|
|
831
1100
|
export declare const nft_mint_nft_command = "nft_mint_nft";
|
|
832
1101
|
export declare type nft_mint_nft_command = typeof nft_mint_nft_command;
|
|
833
1102
|
export declare type TNftMintNftRequest = {
|
|
@@ -850,24 +1119,30 @@ export declare type TNftMintNftResponse = {
|
|
|
850
1119
|
wallet_id: uint32;
|
|
851
1120
|
success: True;
|
|
852
1121
|
spend_bundle: SpendBundle;
|
|
1122
|
+
nft_id: Optional<str>;
|
|
853
1123
|
};
|
|
854
|
-
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>>;
|
|
855
1126
|
export declare const nft_get_nfts_command = "nft_get_nfts";
|
|
856
1127
|
export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
|
|
857
1128
|
export declare type TNftGetNftsRequest = {
|
|
858
|
-
wallet_id
|
|
1129
|
+
wallet_id?: uint32;
|
|
1130
|
+
start_index?: int;
|
|
1131
|
+
num?: int;
|
|
1132
|
+
ignore_size_limit?: bool;
|
|
859
1133
|
};
|
|
860
1134
|
export declare type TNftGetNftsResponse = {
|
|
861
1135
|
wallet_id: uint32;
|
|
862
1136
|
success: True;
|
|
863
1137
|
nft_list: NFTInfo[];
|
|
864
1138
|
};
|
|
865
|
-
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>>;
|
|
866
1141
|
export declare const nft_set_nft_did_command = "nft_set_nft_did";
|
|
867
1142
|
export declare type nft_set_nft_did_command = typeof nft_set_nft_did_command;
|
|
868
1143
|
export declare type TNftSetNftDidRequest = {
|
|
869
1144
|
wallet_id: uint32;
|
|
870
|
-
did_id
|
|
1145
|
+
did_id?: str;
|
|
871
1146
|
nft_coin_id: str;
|
|
872
1147
|
fee?: uint64;
|
|
873
1148
|
};
|
|
@@ -879,7 +1154,28 @@ export declare type TNftSetNftDidResponse = {
|
|
|
879
1154
|
success: False;
|
|
880
1155
|
error: str;
|
|
881
1156
|
};
|
|
882
|
-
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>>;
|
|
883
1179
|
export declare const nft_get_by_did_command = "nft_get_by_did";
|
|
884
1180
|
export declare type nft_get_by_did_command = typeof nft_get_by_did_command;
|
|
885
1181
|
export declare type TNftGetByDidRequest = {
|
|
@@ -892,7 +1188,8 @@ export declare type TNftGetByDidResponse = {
|
|
|
892
1188
|
success: False;
|
|
893
1189
|
error: str;
|
|
894
1190
|
};
|
|
895
|
-
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>>;
|
|
896
1193
|
export declare const nft_get_wallet_did_command = "nft_get_wallet_did";
|
|
897
1194
|
export declare type nft_get_wallet_did_command = typeof nft_get_wallet_did_command;
|
|
898
1195
|
export declare type TNftGetWalletDidRequest = {
|
|
@@ -905,7 +1202,8 @@ export declare type TNftGetWalletDidResponse = {
|
|
|
905
1202
|
success: False;
|
|
906
1203
|
error: str;
|
|
907
1204
|
};
|
|
908
|
-
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>>;
|
|
909
1207
|
export declare const nft_get_wallets_with_dids_command = "nft_get_wallets_with_dids";
|
|
910
1208
|
export declare type nft_get_wallets_with_dids_command = typeof nft_get_wallets_with_dids_command;
|
|
911
1209
|
export declare type TNftGetWalletsWithDidsResponse = {
|
|
@@ -916,7 +1214,8 @@ export declare type TNftGetWalletsWithDidsResponse = {
|
|
|
916
1214
|
did_wallet_id: uint32;
|
|
917
1215
|
}>;
|
|
918
1216
|
};
|
|
919
|
-
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>>;
|
|
920
1219
|
export declare const nft_set_nft_status_command = "nft_set_nft_status";
|
|
921
1220
|
export declare type nft_set_nft_status_command = typeof nft_set_nft_status_command;
|
|
922
1221
|
export declare type TNftSetNftStatusRequest = {
|
|
@@ -930,7 +1229,8 @@ export declare type TNftSetNftStatusResponse = {
|
|
|
930
1229
|
success: False;
|
|
931
1230
|
error: str;
|
|
932
1231
|
};
|
|
933
|
-
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>>;
|
|
934
1234
|
export declare const nft_transfer_nft_command = "nft_transfer_nft";
|
|
935
1235
|
export declare type nft_transfer_nft_command = typeof nft_transfer_nft_command;
|
|
936
1236
|
export declare type TNftTransferNftRequest = {
|
|
@@ -947,12 +1247,14 @@ export declare type TNftTransferNftResponse = {
|
|
|
947
1247
|
success: False;
|
|
948
1248
|
error: str;
|
|
949
1249
|
};
|
|
950
|
-
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>>;
|
|
951
1252
|
export declare const nft_get_info_command = "nft_get_info";
|
|
952
1253
|
export declare type nft_get_info_command = typeof nft_get_info_command;
|
|
953
1254
|
export declare type TNftGetInfoRequest = {
|
|
954
1255
|
coin_id: str;
|
|
955
1256
|
latest?: bool;
|
|
1257
|
+
ignore_size_limit?: bool;
|
|
956
1258
|
};
|
|
957
1259
|
export declare type TNftGetInfoResponse = {
|
|
958
1260
|
success: True;
|
|
@@ -961,7 +1263,8 @@ export declare type TNftGetInfoResponse = {
|
|
|
961
1263
|
success: False;
|
|
962
1264
|
error: str;
|
|
963
1265
|
};
|
|
964
|
-
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>>;
|
|
965
1268
|
export declare const nft_add_uri_command = "nft_add_uri";
|
|
966
1269
|
export declare type nft_add_uri_command = typeof nft_add_uri_command;
|
|
967
1270
|
export declare type TNftAddUriRequest = {
|
|
@@ -975,11 +1278,67 @@ export declare type TNftAddUriResponse = {
|
|
|
975
1278
|
success: True;
|
|
976
1279
|
wallet_id: uint32;
|
|
977
1280
|
spend_bundle: SpendBundle;
|
|
978
|
-
}
|
|
1281
|
+
};
|
|
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>>;
|
|
1284
|
+
export declare const nft_calculate_royalties_command = "nft_calculate_royalties";
|
|
1285
|
+
export declare type nft_calculate_royalties_command = typeof nft_calculate_royalties_command;
|
|
1286
|
+
export declare type TNftCalculateRoyaltiesRequest = {
|
|
1287
|
+
royalty_assets?: Array<{
|
|
1288
|
+
asset: str;
|
|
1289
|
+
royalty_address: str;
|
|
1290
|
+
royalty_percentage: uint16;
|
|
1291
|
+
}>;
|
|
1292
|
+
fungible_assets?: Array<{
|
|
1293
|
+
asset: str;
|
|
1294
|
+
amount: uint64;
|
|
1295
|
+
}>;
|
|
1296
|
+
};
|
|
1297
|
+
export declare type TNftCalculateRoyaltiesResponse = Record<str, Array<{
|
|
1298
|
+
asset: str;
|
|
1299
|
+
address: str;
|
|
1300
|
+
amount: uint64;
|
|
1301
|
+
}>>;
|
|
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>>;
|
|
1304
|
+
export declare const nft_mint_bulk_command = "nft_mint_bulk";
|
|
1305
|
+
export declare type nft_mint_bulk_command = typeof nft_mint_bulk_command;
|
|
1306
|
+
export declare type TNftMintBulkRequest = {
|
|
1307
|
+
wallet_id: uint32;
|
|
1308
|
+
royalty_address?: str;
|
|
1309
|
+
royalty_percentage?: uint16;
|
|
1310
|
+
metadata_list: Array<{
|
|
1311
|
+
uris: str[];
|
|
1312
|
+
meta_uris: str[];
|
|
1313
|
+
license_uris: str[];
|
|
1314
|
+
hash: str;
|
|
1315
|
+
edition_number?: uint64;
|
|
1316
|
+
edition_total?: uint64;
|
|
1317
|
+
meta_hash?: str;
|
|
1318
|
+
license_hash?: str;
|
|
1319
|
+
}>;
|
|
1320
|
+
target_list?: str[];
|
|
1321
|
+
mint_number_start?: int;
|
|
1322
|
+
mint_total?: int;
|
|
1323
|
+
xch_coins?: Coin[];
|
|
1324
|
+
xch_change_target?: str;
|
|
1325
|
+
new_innerpuzhash?: str;
|
|
1326
|
+
new_p2_puzhash?: str;
|
|
1327
|
+
did_coin?: Coin;
|
|
1328
|
+
did_lineage_parent?: str;
|
|
1329
|
+
mint_from_did?: bool;
|
|
1330
|
+
fee?: uint64;
|
|
1331
|
+
};
|
|
1332
|
+
export declare type TNftMintBulkResponse = {
|
|
979
1333
|
success: False;
|
|
980
1334
|
error: str;
|
|
1335
|
+
} | {
|
|
1336
|
+
success: True;
|
|
1337
|
+
spend_bundle: SpendBundle;
|
|
1338
|
+
nft_id_list: str[];
|
|
981
1339
|
};
|
|
982
|
-
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>>;
|
|
983
1342
|
export declare const rl_set_user_info_command = "rl_set_user_info";
|
|
984
1343
|
export declare type rl_set_user_info_command = typeof rl_set_user_info_command;
|
|
985
1344
|
export declare type TRlSetUserInfoRequest = {
|
|
@@ -994,7 +1353,8 @@ export declare type TRlSetUserInfoRequest = {
|
|
|
994
1353
|
admin_pubkey: str;
|
|
995
1354
|
};
|
|
996
1355
|
export declare type TRlSetUserInfoResponse = {};
|
|
997
|
-
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>>;
|
|
998
1358
|
export declare const send_clawback_transaction_command = "send_clawback_transaction:";
|
|
999
1359
|
export declare type send_clawback_transaction_command = typeof send_clawback_transaction_command;
|
|
1000
1360
|
export declare type TSendClawbackTransactionRequest = {
|
|
@@ -1005,7 +1365,8 @@ export declare type TSendClawbackTransactionResponse = {
|
|
|
1005
1365
|
transaction: TransactionRecord;
|
|
1006
1366
|
transaction_id: TransactionRecord["name"];
|
|
1007
1367
|
};
|
|
1008
|
-
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>>;
|
|
1009
1370
|
export declare const add_rate_limited_funds_command = "add_rate_limited_funds:";
|
|
1010
1371
|
export declare type add_rate_limited_funds_command = typeof add_rate_limited_funds_command;
|
|
1011
1372
|
export declare type TAddRateLimitedFundsRequest = {
|
|
@@ -1016,7 +1377,8 @@ export declare type TAddRateLimitedFundsRequest = {
|
|
|
1016
1377
|
export declare type TAddRateLimitedFundsResponse = {
|
|
1017
1378
|
status: "SUCCESS";
|
|
1018
1379
|
};
|
|
1019
|
-
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>>;
|
|
1020
1382
|
export declare const pw_join_pool_command = "pw_join_pool";
|
|
1021
1383
|
export declare type pw_join_pool_command = typeof pw_join_pool_command;
|
|
1022
1384
|
export declare type TPwJoinPoolRequest = {
|
|
@@ -1034,7 +1396,8 @@ export declare type TPwJoinPoolResponse = {
|
|
|
1034
1396
|
success: False;
|
|
1035
1397
|
error: "not_initialized";
|
|
1036
1398
|
};
|
|
1037
|
-
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>>;
|
|
1038
1401
|
export declare const pw_self_pool_command = "pw_self_pool";
|
|
1039
1402
|
export declare type pw_self_pool_command = typeof pw_self_pool_command;
|
|
1040
1403
|
export declare type TPwSelfPoolRequest = {
|
|
@@ -1046,7 +1409,8 @@ export declare type TPwSelfPoolResponse = {
|
|
|
1046
1409
|
transaction: TransactionRecord;
|
|
1047
1410
|
fee_transaction: Optional<TransactionRecord>;
|
|
1048
1411
|
};
|
|
1049
|
-
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>>;
|
|
1050
1414
|
export declare const pw_absorb_rewards_command = "pw_absorb_rewards";
|
|
1051
1415
|
export declare type pw_absorb_rewards_command = typeof pw_absorb_rewards_command;
|
|
1052
1416
|
export declare type TPwAbsorbRewardsRequest = {
|
|
@@ -1059,7 +1423,8 @@ export declare type TPwAbsorbRewardsResponse = {
|
|
|
1059
1423
|
transaction: TransactionRecord;
|
|
1060
1424
|
fee_transaction: Optional<TransactionRecord>;
|
|
1061
1425
|
};
|
|
1062
|
-
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>>;
|
|
1063
1428
|
export declare const pw_status_command = "pw_status";
|
|
1064
1429
|
export declare type pw_status_command = typeof pw_status_command;
|
|
1065
1430
|
export declare type TPwStatusRequest = {
|
|
@@ -1069,7 +1434,8 @@ export declare type TPwStatusResponse = {
|
|
|
1069
1434
|
state: PoolWalletInfo;
|
|
1070
1435
|
unconfirmed_transactions: TransactionRecord[];
|
|
1071
1436
|
};
|
|
1072
|
-
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>>;
|
|
1073
1439
|
export declare const create_new_dl_command = "create_new_dl";
|
|
1074
1440
|
export declare type create_new_dl_command = typeof create_new_dl_command;
|
|
1075
1441
|
export declare type TCreateNewDlRequest = {
|
|
@@ -1084,21 +1450,24 @@ export declare type TCreateNewDlResponse = {
|
|
|
1084
1450
|
transactions: TransactionRecordConvenience[];
|
|
1085
1451
|
launcher_id: bytes32;
|
|
1086
1452
|
};
|
|
1087
|
-
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>>;
|
|
1088
1455
|
export declare const dl_track_new_command = "dl_track_new";
|
|
1089
1456
|
export declare type dl_track_new_command = typeof dl_track_new_command;
|
|
1090
1457
|
export declare type TDlTrackNewRequest = {
|
|
1091
1458
|
launcher_id: str;
|
|
1092
1459
|
};
|
|
1093
1460
|
export declare type TDlTrackNewResponse = {};
|
|
1094
|
-
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>>;
|
|
1095
1463
|
export declare const dl_stop_tracking_command = "dl_stop_tracking";
|
|
1096
1464
|
export declare type dl_stop_tracking_command = typeof dl_stop_tracking_command;
|
|
1097
1465
|
export declare type TDlStopTrackingRequest = {
|
|
1098
1466
|
launcher_id: str;
|
|
1099
1467
|
};
|
|
1100
1468
|
export declare type TDlStopTrackingResponse = {};
|
|
1101
|
-
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>>;
|
|
1102
1471
|
export declare const dl_latest_singleton_command = "dl_latest_singleton";
|
|
1103
1472
|
export declare type dl_latest_singleton_command = typeof dl_latest_singleton_command;
|
|
1104
1473
|
export declare type TDlLatestSingletonRequest = {
|
|
@@ -1108,7 +1477,8 @@ export declare type TDlLatestSingletonRequest = {
|
|
|
1108
1477
|
export declare type TDlLatestSingletonResponse = {
|
|
1109
1478
|
singleton: Optional<SingletonRecord>;
|
|
1110
1479
|
};
|
|
1111
|
-
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>>;
|
|
1112
1482
|
export declare const dl_singletons_by_root_command = "dl_singletons_by_root";
|
|
1113
1483
|
export declare type dl_singletons_by_root_command = typeof dl_singletons_by_root_command;
|
|
1114
1484
|
export declare type TDlSingletonsByRootRequest = {
|
|
@@ -1118,7 +1488,8 @@ export declare type TDlSingletonsByRootRequest = {
|
|
|
1118
1488
|
export declare type TDlSingletonsByRootResponse = {
|
|
1119
1489
|
singletons: SingletonRecord[];
|
|
1120
1490
|
};
|
|
1121
|
-
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>>;
|
|
1122
1493
|
export declare const dl_update_root_command = "dl_update_root";
|
|
1123
1494
|
export declare type dl_update_root_command = typeof dl_update_root_command;
|
|
1124
1495
|
export declare type TDlUpdateRootRequest = {
|
|
@@ -1129,7 +1500,8 @@ export declare type TDlUpdateRootRequest = {
|
|
|
1129
1500
|
export declare type TDlUpdateRootResponse = {
|
|
1130
1501
|
tx_record: TransactionRecordConvenience;
|
|
1131
1502
|
};
|
|
1132
|
-
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>>;
|
|
1133
1505
|
export declare const dl_update_multiple_command = "dl_update_multiple";
|
|
1134
1506
|
export declare type dl_update_multiple_command = typeof dl_update_multiple_command;
|
|
1135
1507
|
export declare type TDlUpdateMultipleRequest = {
|
|
@@ -1138,7 +1510,8 @@ export declare type TDlUpdateMultipleRequest = {
|
|
|
1138
1510
|
export declare type TDlUpdateMultipleResponse = {
|
|
1139
1511
|
tx_records: TransactionRecordConvenience[];
|
|
1140
1512
|
};
|
|
1141
|
-
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>>;
|
|
1142
1515
|
export declare const dl_history_command = "dl_history";
|
|
1143
1516
|
export declare type dl_history_command = typeof dl_history_command;
|
|
1144
1517
|
export declare type TDlHistoryRequest = {
|
|
@@ -1150,14 +1523,16 @@ export declare type TDlHistoryResponse = {
|
|
|
1150
1523
|
history: SingletonRecord[];
|
|
1151
1524
|
count: int;
|
|
1152
1525
|
};
|
|
1153
|
-
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>>;
|
|
1154
1528
|
export declare const dl_owned_singletons_command = "dl_owned_singletons";
|
|
1155
1529
|
export declare type dl_owned_singletons_command = typeof dl_owned_singletons_command;
|
|
1156
1530
|
export declare type TDlOwnedSingletonsResponse = {
|
|
1157
1531
|
singletons: SingletonRecord[];
|
|
1158
1532
|
count: int;
|
|
1159
1533
|
};
|
|
1160
|
-
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>>;
|
|
1161
1536
|
export declare const dl_get_mirrors_command = "dl_get_mirrors";
|
|
1162
1537
|
export declare type dl_get_mirrors_command = typeof dl_get_mirrors_command;
|
|
1163
1538
|
export declare type TDlGetMirrorsRequest = {
|
|
@@ -1166,7 +1541,8 @@ export declare type TDlGetMirrorsRequest = {
|
|
|
1166
1541
|
export declare type TDlGetMirrorsResponse = {
|
|
1167
1542
|
mirrors: Mirror[];
|
|
1168
1543
|
};
|
|
1169
|
-
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>>;
|
|
1170
1546
|
export declare const dl_new_mirror_command = "dl_new_mirror";
|
|
1171
1547
|
export declare type dl_new_mirror_command = typeof dl_new_mirror_command;
|
|
1172
1548
|
export declare type TDlNewMirrorRequest = {
|
|
@@ -1178,7 +1554,8 @@ export declare type TDlNewMirrorRequest = {
|
|
|
1178
1554
|
export declare type TDlNewMirrorResponse = {
|
|
1179
1555
|
transactions: TransactionRecordConvenience[];
|
|
1180
1556
|
};
|
|
1181
|
-
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>>;
|
|
1182
1559
|
export declare const dl_delete_mirror_command = "dl_delete_mirror";
|
|
1183
1560
|
export declare type dl_delete_mirror_command = typeof dl_delete_mirror_command;
|
|
1184
1561
|
export declare type TDlDeleteMirrorRequest = {
|
|
@@ -1188,4 +1565,7 @@ export declare type TDlDeleteMirrorRequest = {
|
|
|
1188
1565
|
export declare type TDlDeleteMirrorResponse = {
|
|
1189
1566
|
transactions: TransactionRecordConvenience[];
|
|
1190
1567
|
};
|
|
1191
|
-
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;
|