chia-agent 9.0.1 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ import { TradeRecordConvenience } from "../../chia/wallet/trade_record";
10
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
+ import { Mirror, SingletonRecord } from "../../chia/data_layer/data_layer_wallet";
13
14
  export declare const chia_wallet_service = "chia_wallet";
14
15
  export declare type chia_wallet_service = typeof chia_wallet_service;
15
16
  export declare const log_in_command = "log_in";
@@ -23,13 +24,13 @@ export declare type TLoginResponse = {
23
24
  success: False;
24
25
  error: "Unknown Error";
25
26
  };
26
- export declare function log_in(agent: TRPCAgent, data: TLoginRequest): Promise<TLoginResponse>;
27
+ export declare function log_in(agent: TRPCAgent, data: TLoginRequest): Promise<TLoginResponse | import("../../../rpc").ErrorResponse>;
27
28
  export declare const get_logged_in_fingerprint_command = "get_logged_in_fingerprint";
28
29
  export declare type get_logged_in_fingerprint_command = typeof get_logged_in_fingerprint_command;
29
30
  export declare type TGetLoggedInFingerprintResponse = {
30
31
  fingerprint: Optional<int>;
31
32
  };
32
- export declare function get_logged_in_fingerprint(agent: TRPCAgent): Promise<TGetLoggedInFingerprintResponse>;
33
+ export declare function get_logged_in_fingerprint(agent: TRPCAgent): Promise<TGetLoggedInFingerprintResponse | import("../../../rpc").ErrorResponse>;
33
34
  export declare const get_public_keys_command = "get_public_keys";
34
35
  export declare type get_public_keys_command = typeof get_public_keys_command;
35
36
  export declare type TGetPublicKeysRequest = {};
@@ -38,7 +39,7 @@ export declare type TGetPublicKeysResponse = {
38
39
  } | {
39
40
  keyring_is_locked: True;
40
41
  };
41
- export declare function get_public_keys(agent: TRPCAgent): Promise<TGetPublicKeysResponse>;
42
+ export declare function get_public_keys(agent: TRPCAgent): Promise<TGetPublicKeysResponse | import("../../../rpc").ErrorResponse>;
42
43
  export declare const get_private_key_command = "get_private_key";
43
44
  export declare type get_private_key_command = typeof get_private_key_command;
44
45
  export declare type TGetPrivateKeyRequest = {
@@ -59,14 +60,14 @@ export declare type TGetPrivateKeyResponse = {
59
60
  fingerprint: int;
60
61
  };
61
62
  };
62
- export declare function get_private_key(agent: TRPCAgent, data: TGetPrivateKeyRequest): Promise<TGetPrivateKeyResponse>;
63
+ export declare function get_private_key(agent: TRPCAgent, data: TGetPrivateKeyRequest): Promise<TGetPrivateKeyResponse | import("../../../rpc").ErrorResponse>;
63
64
  export declare const generate_mnemonic_command = "generate_mnemonic";
64
65
  export declare type generate_mnemonic_command = typeof generate_mnemonic_command;
65
66
  export declare type TGenerateMnemonicRequest = {};
66
67
  export declare type TGenerateMnemonicResponse = {
67
68
  mnemonic: str[];
68
69
  };
69
- export declare function generate_mnemonic(agent: TRPCAgent): Promise<TGenerateMnemonicResponse>;
70
+ export declare function generate_mnemonic(agent: TRPCAgent): Promise<TGenerateMnemonicResponse | import("../../../rpc").ErrorResponse>;
70
71
  export declare const add_key_command = "add_key";
71
72
  export declare type add_key_command = typeof add_key_command;
72
73
  export declare type TAddKeyRequest = {
@@ -79,14 +80,14 @@ export declare type TAddKeyResponse = {
79
80
  } | {
80
81
  fingerprint: int;
81
82
  };
82
- export declare function add_key(agent: TRPCAgent, data: TAddKeyRequest): Promise<TAddKeyResponse>;
83
+ export declare function add_key(agent: TRPCAgent, data: TAddKeyRequest): Promise<TAddKeyResponse | import("../../../rpc").ErrorResponse>;
83
84
  export declare const delete_key_command = "delete_key";
84
85
  export declare type delete_key_command = typeof delete_key_command;
85
86
  export declare type TDeleteKeyRequest = {
86
87
  fingerprint: int;
87
88
  };
88
89
  export declare type TDeleteKeyResponse = {};
89
- export declare function delete_key(agent: TRPCAgent, data: TDeleteKeyRequest): Promise<TDeleteKeyResponse>;
90
+ export declare function delete_key(agent: TRPCAgent, data: TDeleteKeyRequest): Promise<TDeleteKeyResponse | import("../../../rpc").ErrorResponse>;
90
91
  export declare const check_delete_key_command = "check_delete_key";
91
92
  export declare type check_delete_key_command = typeof check_delete_key_command;
92
93
  export declare type TCheckDeleteKeyRequest = {
@@ -99,7 +100,7 @@ export declare type TCheckDeleteKeyResponse = {
99
100
  used_for_pool_rewards: bool;
100
101
  wallet_balance: bool;
101
102
  };
102
- export declare function check_delete_key(agent: TRPCAgent, data: TCheckDeleteKeyRequest): Promise<TCheckDeleteKeyResponse>;
103
+ export declare function check_delete_key(agent: TRPCAgent, data: TCheckDeleteKeyRequest): Promise<import("../../../rpc").ErrorResponse | TCheckDeleteKeyResponse>;
103
104
  export declare const delete_all_keys_command = "delete_all_keys";
104
105
  export declare type delete_all_keys_command = typeof delete_all_keys_command;
105
106
  export declare type TDeleteAllKeysRequest = {};
@@ -107,7 +108,7 @@ export declare type TDeleteAllKeysResponse = {} | {
107
108
  success: False;
108
109
  error: str;
109
110
  };
110
- export declare function delete_all_keys(agent: TRPCAgent): Promise<TDeleteAllKeysResponse>;
111
+ export declare function delete_all_keys(agent: TRPCAgent): Promise<TDeleteAllKeysResponse | import("../../../rpc").ErrorResponse>;
111
112
  export declare const get_sync_status_command = "get_sync_status";
112
113
  export declare type get_sync_status_command = typeof get_sync_status_command;
113
114
  export declare type TGetSyncStatusRequest = {};
@@ -116,35 +117,35 @@ export declare type TGetSyncStatusResponse = {
116
117
  syncing: bool;
117
118
  genesis_initialized: bool;
118
119
  };
119
- export declare function get_sync_status(agent: TRPCAgent): Promise<TGetSyncStatusResponse>;
120
+ export declare function get_sync_status(agent: TRPCAgent): Promise<TGetSyncStatusResponse | import("../../../rpc").ErrorResponse>;
120
121
  export declare const get_height_info_command = "get_height_info";
121
122
  export declare type get_height_info_command = typeof get_height_info_command;
122
123
  export declare type TGetHeightInfoRequest = {};
123
124
  export declare type TGetHeightInfoResponse = {
124
125
  height: uint32;
125
126
  };
126
- export declare function get_height_info(agent: TRPCAgent): Promise<TGetHeightInfoResponse>;
127
+ export declare function get_height_info(agent: TRPCAgent): Promise<TGetHeightInfoResponse | import("../../../rpc").ErrorResponse>;
127
128
  export declare const push_tx_command = "push_tx";
128
129
  export declare type push_tx_command = typeof push_tx_command;
129
130
  export declare type TPushTxRequest = {
130
131
  spend_bundle: str;
131
132
  };
132
133
  export declare type TPushTxResponse = {};
133
- export declare function push_tx(agent: TRPCAgent, data: TPushTxRequest): Promise<TPushTxResponse>;
134
+ export declare function push_tx(agent: TRPCAgent, data: TPushTxRequest): Promise<TPushTxResponse | import("../../../rpc").ErrorResponse>;
134
135
  export declare const farm_block_command = "farm_block";
135
136
  export declare type farm_block_command = typeof farm_block_command;
136
137
  export declare type TFarmBlockRequest = {
137
138
  address: str;
138
139
  };
139
140
  export declare type TFarmBlockResponse = {};
140
- export declare function farm_block(agent: TRPCAgent, data: TFarmBlockRequest): Promise<TFarmBlockResponse>;
141
+ export declare function farm_block(agent: TRPCAgent, data: TFarmBlockRequest): Promise<TFarmBlockResponse | import("../../../rpc").ErrorResponse>;
141
142
  export declare const get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
142
143
  export declare type get_initial_freeze_period_command_of_wallet = typeof get_initial_freeze_period_command_of_wallet;
143
144
  export declare type TGetInitialFreezePeriodRequestOfWallet = {};
144
145
  export declare type TGetInitialFreezePeriodResponseOfWallet = {
145
146
  INITIAL_FREEZE_END_TIMESTAMP: 1620061200;
146
147
  };
147
- export declare function get_initial_freeze_period_of_wallet(agent: TRPCAgent): Promise<TGetInitialFreezePeriodResponseOfWallet>;
148
+ export declare function get_initial_freeze_period_of_wallet(agent: TRPCAgent): Promise<TGetInitialFreezePeriodResponseOfWallet | import("../../../rpc").ErrorResponse>;
148
149
  export declare const get_network_info_command_of_wallet = "get_network_info";
149
150
  export declare type get_network_info_command_of_wallet = typeof get_network_info_command_of_wallet;
150
151
  export declare type TGetNetworkInfoRequestOfWallet = {};
@@ -152,7 +153,7 @@ export declare type TGetNetworkInfoResponseOfWallet = {
152
153
  network_name: str;
153
154
  network_prefix: str;
154
155
  };
155
- export declare function get_network_info_of_wallet(agent: TRPCAgent): Promise<TGetNetworkInfoResponseOfWallet>;
156
+ export declare function get_network_info_of_wallet(agent: TRPCAgent): Promise<TGetNetworkInfoResponseOfWallet | import("../../../rpc").ErrorResponse>;
156
157
  export declare const get_wallets_command = "get_wallets";
157
158
  export declare type get_wallets_command = typeof get_wallets_command;
158
159
  export declare type TGetWalletsRequest = {
@@ -163,7 +164,7 @@ export declare type TGetWalletsResponse = {
163
164
  wallets: WalletInfo[];
164
165
  fingerprint?: int;
165
166
  };
166
- export declare function get_wallets(agent: TRPCAgent, data: TGetWalletsRequest): Promise<TGetWalletsResponse>;
167
+ export declare function get_wallets(agent: TRPCAgent, data: TGetWalletsRequest): Promise<TGetWalletsResponse | import("../../../rpc").ErrorResponse>;
167
168
  export declare type TCreate_New_CAT_WalletRequest = {
168
169
  fee?: uint64;
169
170
  wallet_type: "cat_wallet";
@@ -280,7 +281,7 @@ export declare const create_new_wallet_command = "create_new_wallet";
280
281
  export declare type create_new_wallet_command = typeof create_new_wallet_command;
281
282
  export declare type TCreateNewWalletRequest = TCreate_New_CAT_WalletRequest | TCreate_New_RL_WalletRequest | TCreate_New_DID_WalletRequest | TCreate_New_NFT_WalletRequest | TCreate_New_Pool_WalletRequest;
282
283
  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;
283
- export declare function create_new_wallet(agent: TRPCAgent, data: TCreateNewWalletRequest): Promise<TCreateNewWalletResponse>;
284
+ export declare function create_new_wallet(agent: TRPCAgent, data: TCreateNewWalletRequest): Promise<TCreateNewWalletResponse | import("../../../rpc").ErrorResponse>;
284
285
  export declare const get_wallet_balance_command = "get_wallet_balance";
285
286
  export declare type get_wallet_balance_command = typeof get_wallet_balance_command;
286
287
  export declare type TGetWalletBalanceRequest = {
@@ -301,7 +302,7 @@ export declare type TGetWalletBalanceResponse = {
301
302
  asset_id?: str;
302
303
  };
303
304
  };
304
- export declare function get_wallet_balance(agent: TRPCAgent, data: TGetWalletBalanceRequest): Promise<TGetWalletBalanceResponse>;
305
+ export declare function get_wallet_balance(agent: TRPCAgent, data: TGetWalletBalanceRequest): Promise<TGetWalletBalanceResponse | import("../../../rpc").ErrorResponse>;
305
306
  export declare const get_transaction_command = "get_transaction";
306
307
  export declare type get_transaction_command = typeof get_transaction_command;
307
308
  export declare type TGetTransactionRequest = {
@@ -311,7 +312,7 @@ export declare type TGetTransactionResponse = {
311
312
  transaction: TransactionRecordConvenience;
312
313
  transaction_id: TransactionRecord["name"];
313
314
  };
314
- export declare function get_transaction(agent: TRPCAgent, data: TGetTransactionRequest): Promise<TGetTransactionResponse>;
315
+ export declare function get_transaction(agent: TRPCAgent, data: TGetTransactionRequest): Promise<TGetTransactionResponse | import("../../../rpc").ErrorResponse>;
315
316
  export declare const get_transactions_command = "get_transactions";
316
317
  export declare type get_transactions_command = typeof get_transactions_command;
317
318
  export declare type TGetTransactionsRequest = {
@@ -326,7 +327,7 @@ export declare type TGetTransactionsResponse = {
326
327
  transactions: TransactionRecordConvenience[];
327
328
  wallet_id: int;
328
329
  };
329
- export declare function get_transactions(agent: TRPCAgent, data: TGetTransactionsRequest): Promise<TGetTransactionsResponse>;
330
+ export declare function get_transactions(agent: TRPCAgent, data: TGetTransactionsRequest): Promise<TGetTransactionsResponse | import("../../../rpc").ErrorResponse>;
330
331
  export declare const get_next_address_command = "get_next_address";
331
332
  export declare type get_next_address_command = typeof get_next_address_command;
332
333
  export declare type TGetNextAddressRequest = {
@@ -337,7 +338,7 @@ export declare type TGetNextAddressResponse = {
337
338
  wallet_id: uint32;
338
339
  address: str;
339
340
  };
340
- export declare function get_next_address(agent: TRPCAgent, data: TGetNextAddressRequest): Promise<TGetNextAddressResponse>;
341
+ export declare function get_next_address(agent: TRPCAgent, data: TGetNextAddressRequest): Promise<TGetNextAddressResponse | import("../../../rpc").ErrorResponse>;
341
342
  export declare const send_transaction_command = "send_transaction";
342
343
  export declare type send_transaction_command = typeof send_transaction_command;
343
344
  export declare type TSendTransactionRequest = {
@@ -352,7 +353,7 @@ export declare type TSendTransactionResponse = {
352
353
  transaction: TransactionRecordConvenience;
353
354
  transaction_id: TransactionRecord["name"];
354
355
  };
355
- export declare function send_transaction(agent: TRPCAgent, data: TSendTransactionRequest): Promise<TSendTransactionResponse>;
356
+ export declare function send_transaction(agent: TRPCAgent, data: TSendTransactionRequest): Promise<TSendTransactionResponse | import("../../../rpc").ErrorResponse>;
356
357
  export declare const send_transaction_multi_command = "send_transaction_multi";
357
358
  export declare type send_transaction_multi_command = typeof send_transaction_multi_command;
358
359
  export declare type TSendTransactionMultiRequest = {
@@ -367,7 +368,7 @@ export declare type TSendTransactionMultiResponse = {
367
368
  transaction: TransactionRecordConvenience;
368
369
  transaction_id: TransactionRecordConvenience["name"];
369
370
  };
370
- export declare function send_transaction_multi(agent: TRPCAgent, data: TSendTransactionMultiRequest): Promise<TSendTransactionMultiResponse>;
371
+ export declare function send_transaction_multi(agent: TRPCAgent, data: TSendTransactionMultiRequest): Promise<TSendTransactionMultiResponse | import("../../../rpc").ErrorResponse>;
371
372
  export declare const get_transaction_count_command = "get_transaction_count";
372
373
  export declare type get_transaction_count_command = typeof get_transaction_count_command;
373
374
  export declare type TGetTransactionCountRequest = {
@@ -377,7 +378,7 @@ export declare type TGetTransactionCountResponse = {
377
378
  count: int;
378
379
  wallet_id: int;
379
380
  };
380
- export declare function get_transaction_count(agent: TRPCAgent, data: TGetTransactionCountRequest): Promise<TGetTransactionCountResponse>;
381
+ export declare function get_transaction_count(agent: TRPCAgent, data: TGetTransactionCountRequest): Promise<TGetTransactionCountResponse | import("../../../rpc").ErrorResponse>;
381
382
  export declare const get_farmed_amount_command = "get_farmed_amount";
382
383
  export declare type get_farmed_amount_command = typeof get_farmed_amount_command;
383
384
  export declare type TGetFarmedAmountRequest = {};
@@ -388,7 +389,7 @@ export declare type TGetFarmedAmountResponse = {
388
389
  fee_amount: int;
389
390
  last_height_farmed: int;
390
391
  };
391
- export declare function get_farmed_amount(agent: TRPCAgent): Promise<TGetFarmedAmountResponse>;
392
+ export declare function get_farmed_amount(agent: TRPCAgent): Promise<TGetFarmedAmountResponse | import("../../../rpc").ErrorResponse>;
392
393
  export declare type TAdditions = {
393
394
  amount: uint64;
394
395
  puzzle_hash: str;
@@ -418,14 +419,14 @@ export declare type TCreateSignedTransactionRequest = {
418
419
  export declare type TCreateSignedTransactionResponse = {
419
420
  signed_tx: TransactionRecordConvenience;
420
421
  };
421
- export declare function create_signed_transaction(agent: TRPCAgent, data: TCreateSignedTransactionRequest): Promise<TCreateSignedTransactionResponse>;
422
+ export declare function create_signed_transaction(agent: TRPCAgent, data: TCreateSignedTransactionRequest): Promise<TCreateSignedTransactionResponse | import("../../../rpc").ErrorResponse>;
422
423
  export declare const delete_unconfirmed_transactions_command = "delete_unconfirmed_transactions";
423
424
  export declare type delete_unconfirmed_transactions_command = typeof delete_unconfirmed_transactions_command;
424
425
  export declare type TDeleteUnconfirmedTransactionsRequest = {
425
426
  wallet_id: uint32;
426
427
  };
427
428
  export declare type TDeleteUnconfirmedTransactionsResponse = {};
428
- export declare function delete_unconfirmed_transactions(agent: TRPCAgent, data: TDeleteUnconfirmedTransactionsRequest): Promise<TDeleteUnconfirmedTransactionsResponse>;
429
+ export declare function delete_unconfirmed_transactions(agent: TRPCAgent, data: TDeleteUnconfirmedTransactionsRequest): Promise<TDeleteUnconfirmedTransactionsResponse | import("../../../rpc").ErrorResponse>;
429
430
  export declare const select_coins_command = "select_coins";
430
431
  export declare type select_coins_command = typeof select_coins_command;
431
432
  export declare type TSelectCoinsRequest = {
@@ -437,14 +438,14 @@ export declare type TSelectCoinsRequest = {
437
438
  export declare type TSelectCoinsResponse = {
438
439
  coins: Coin[];
439
440
  };
440
- export declare function select_coins(agent: TRPCAgent, data: TSelectCoinsRequest): Promise<TSelectCoinsResponse>;
441
+ export declare function select_coins(agent: TRPCAgent, data: TSelectCoinsRequest): Promise<TSelectCoinsResponse | import("../../../rpc").ErrorResponse>;
441
442
  export declare const get_current_derivation_index_command = "get_current_derivation_index";
442
443
  export declare type get_current_derivation_index_command = typeof get_current_derivation_index_command;
443
444
  export declare type TGetCurrentDerivationIndexResponse = {
444
445
  success: True;
445
446
  index: Optional<uint32>;
446
447
  };
447
- export declare function get_current_derivation_index(agent: TRPCAgent): Promise<TGetCurrentDerivationIndexResponse>;
448
+ export declare function get_current_derivation_index(agent: TRPCAgent): Promise<TGetCurrentDerivationIndexResponse | import("../../../rpc").ErrorResponse>;
448
449
  export declare const extend_derivation_index_command = "extend_derivation_index";
449
450
  export declare type extend_derivation_index_command = typeof extend_derivation_index_command;
450
451
  export declare type TExtendDerivationIndexRequest = {
@@ -454,13 +455,13 @@ export declare type TExtendDerivationIndexResponse = {
454
455
  success: True;
455
456
  index: Optional<uint32>;
456
457
  };
457
- export declare function extend_derivation_index(agent: TRPCAgent, data: TExtendDerivationIndexRequest): Promise<TExtendDerivationIndexResponse>;
458
+ export declare function extend_derivation_index(agent: TRPCAgent, data: TExtendDerivationIndexRequest): Promise<TExtendDerivationIndexResponse | import("../../../rpc").ErrorResponse>;
458
459
  export declare const get_cat_list_command = "get_cat_list";
459
460
  export declare type get_cat_list_command = typeof get_cat_list_command;
460
461
  export declare type TGetCatListResponse = {
461
462
  cat_list: CAT[];
462
463
  };
463
- export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse>;
464
+ export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse | import("../../../rpc").ErrorResponse>;
464
465
  export declare const cat_set_name_command = "cat_set_name";
465
466
  export declare type cat_set_name_command = typeof cat_set_name_command;
466
467
  export declare type TCatSetNameRequest = {
@@ -470,7 +471,7 @@ export declare type TCatSetNameRequest = {
470
471
  export declare type TCatSetNameResponse = {
471
472
  wallet_id: uint32;
472
473
  };
473
- export declare function cat_set_name(agent: TRPCAgent, data: TCatSetNameRequest): Promise<TCatSetNameResponse>;
474
+ export declare function cat_set_name(agent: TRPCAgent, data: TCatSetNameRequest): Promise<TCatSetNameResponse | import("../../../rpc").ErrorResponse>;
474
475
  export declare const cat_asset_id_to_name_command = "cat_asset_id_to_name";
475
476
  export declare type cat_asset_id_to_name_command = typeof cat_asset_id_to_name_command;
476
477
  export declare type TCatAssetIdToNameRequest = {
@@ -480,7 +481,7 @@ export declare type TCatAssetIdToNameResponse = {
480
481
  wallet_id: Optional<uint32>;
481
482
  name: str;
482
483
  };
483
- export declare function cat_asset_id_to_name(agent: TRPCAgent, data: TCatAssetIdToNameRequest): Promise<TCatAssetIdToNameResponse>;
484
+ export declare function cat_asset_id_to_name(agent: TRPCAgent, data: TCatAssetIdToNameRequest): Promise<TCatAssetIdToNameResponse | import("../../../rpc").ErrorResponse>;
484
485
  export declare const cat_get_name_command = "cat_get_name";
485
486
  export declare type cat_get_name_command = typeof cat_get_name_command;
486
487
  export declare type TCatGetNameRequest = {
@@ -490,7 +491,7 @@ export declare type TCatGetNameResponse = {
490
491
  wallet_id: uint32;
491
492
  name: str;
492
493
  };
493
- export declare function cat_get_name(agent: TRPCAgent, data: TCatGetNameRequest): Promise<TCatGetNameResponse>;
494
+ export declare function cat_get_name(agent: TRPCAgent, data: TCatGetNameRequest): Promise<TCatGetNameResponse | import("../../../rpc").ErrorResponse>;
494
495
  export declare const get_stray_cats_command = "get_stray_cats";
495
496
  export declare type get_stray_cats_command = typeof get_stray_cats_command;
496
497
  export declare type TGetStrayCatsResponse = {
@@ -501,7 +502,7 @@ export declare type TGetStrayCatsResponse = {
501
502
  sender_puzzle_hash: str;
502
503
  }>;
503
504
  };
504
- export declare function get_stray_cats(agent: TRPCAgent): Promise<TGetStrayCatsResponse>;
505
+ export declare function get_stray_cats(agent: TRPCAgent): Promise<TGetStrayCatsResponse | import("../../../rpc").ErrorResponse>;
505
506
  export declare const cat_spend_command = "cat_spend";
506
507
  export declare type cat_spend_command = typeof cat_spend_command;
507
508
  export declare type TCatSpendRequest = {
@@ -516,7 +517,7 @@ export declare type TCatSpendResponse = {
516
517
  transaction: TransactionRecordConvenience;
517
518
  transaction_id: TransactionRecord["name"];
518
519
  };
519
- export declare function cat_spend(agent: TRPCAgent, data: TCatSpendRequest): Promise<TCatSpendResponse>;
520
+ export declare function cat_spend(agent: TRPCAgent, data: TCatSpendRequest): Promise<TCatSpendResponse | import("../../../rpc").ErrorResponse>;
520
521
  export declare const cat_get_asset_id_command = "cat_get_asset_id";
521
522
  export declare type cat_get_asset_id_command = typeof cat_get_asset_id_command;
522
523
  export declare type TCatGetAssetIdRequest = {
@@ -526,7 +527,7 @@ export declare type TCatGetAssetIdResponse = {
526
527
  asset_id: str;
527
528
  wallet_id: uint32;
528
529
  };
529
- export declare function cat_get_asset_id(agent: TRPCAgent, data: TCatGetAssetIdRequest): Promise<TCatGetAssetIdResponse>;
530
+ export declare function cat_get_asset_id(agent: TRPCAgent, data: TCatGetAssetIdRequest): Promise<TCatGetAssetIdResponse | import("../../../rpc").ErrorResponse>;
530
531
  export declare const create_offer_for_ids_command = "create_offer_for_ids";
531
532
  export declare type create_offer_for_ids_command = typeof create_offer_for_ids_command;
532
533
  export declare type TCreateOfferForIdsRequest = {
@@ -540,11 +541,12 @@ export declare type TCreateOfferForIdsResponse = {
540
541
  offer: str;
541
542
  trade_record: TradeRecordConvenience;
542
543
  };
543
- export declare function create_offer_for_ids(agent: TRPCAgent, data: TCreateOfferForIdsRequest): Promise<TCreateOfferForIdsResponse>;
544
+ export declare function create_offer_for_ids(agent: TRPCAgent, data: TCreateOfferForIdsRequest): Promise<TCreateOfferForIdsResponse | import("../../../rpc").ErrorResponse>;
544
545
  export declare const get_offer_summary_command = "get_offer_summary";
545
546
  export declare type get_offer_summary_command = typeof get_offer_summary_command;
546
547
  export declare type TGetOfferSummaryRequest = {
547
548
  offer: str;
549
+ advanced?: bool;
548
550
  };
549
551
  export declare type TGetOfferSummaryResponse = {
550
552
  summary: {
@@ -554,7 +556,7 @@ export declare type TGetOfferSummaryResponse = {
554
556
  infos: TDriverDict;
555
557
  };
556
558
  };
557
- export declare function get_offer_summary(agent: TRPCAgent, data: TGetOfferSummaryRequest): Promise<TGetOfferSummaryResponse>;
559
+ export declare function get_offer_summary(agent: TRPCAgent, data: TGetOfferSummaryRequest): Promise<TGetOfferSummaryResponse | import("../../../rpc").ErrorResponse>;
558
560
  export declare const check_offer_validity_command = "check_offer_validity";
559
561
  export declare type check_offer_validity_command = typeof check_offer_validity_command;
560
562
  export declare type TCheckOfferValidityRequest = {
@@ -563,18 +565,19 @@ export declare type TCheckOfferValidityRequest = {
563
565
  export declare type TCheckOfferValidityResponse = {
564
566
  valid: bool;
565
567
  };
566
- export declare function check_offer_validity(agent: TRPCAgent, data: TCheckOfferValidityRequest): Promise<TCheckOfferValidityResponse>;
568
+ export declare function check_offer_validity(agent: TRPCAgent, data: TCheckOfferValidityRequest): Promise<TCheckOfferValidityResponse | import("../../../rpc").ErrorResponse>;
567
569
  export declare const take_offer_command = "take_offer";
568
570
  export declare type take_offer_command = typeof take_offer_command;
569
571
  export declare type TTakeOfferRequest = {
570
572
  offer: str;
571
573
  fee?: uint64;
572
574
  min_coin_amount?: uint64;
575
+ solver?: Record<str, any>;
573
576
  };
574
577
  export declare type TTakeOfferResponse = {
575
578
  trade_record: TradeRecordConvenience;
576
579
  };
577
- export declare function take_offer(agent: TRPCAgent, data: TTakeOfferRequest): Promise<TTakeOfferResponse>;
580
+ export declare function take_offer(agent: TRPCAgent, data: TTakeOfferRequest): Promise<TTakeOfferResponse | import("../../../rpc").ErrorResponse>;
578
581
  export declare const get_offer_command = "get_offer";
579
582
  export declare type get_offer_command = typeof get_offer_command;
580
583
  export declare type TGetOfferRequest = {
@@ -585,7 +588,7 @@ export declare type TGetOfferResponse = {
585
588
  trade_record: TradeRecordConvenience;
586
589
  offer: Optional<str>;
587
590
  };
588
- export declare function get_offer(agent: TRPCAgent, data: TGetOfferRequest): Promise<TGetOfferResponse>;
591
+ export declare function get_offer(agent: TRPCAgent, data: TGetOfferRequest): Promise<TGetOfferResponse | import("../../../rpc").ErrorResponse>;
589
592
  export declare const get_all_offers_command = "get_all_offers";
590
593
  export declare type get_all_offers_command = typeof get_all_offers_command;
591
594
  export declare type TGetAllOffersRequest = {
@@ -602,7 +605,7 @@ export declare type TGetAllOffersResponse = {
602
605
  trade_records: TradeRecordConvenience[];
603
606
  offers: Optional<str[]>;
604
607
  };
605
- export declare function get_all_offers(agent: TRPCAgent, data: TGetAllOffersRequest): Promise<TGetAllOffersResponse>;
608
+ export declare function get_all_offers(agent: TRPCAgent, data: TGetAllOffersRequest): Promise<TGetAllOffersResponse | import("../../../rpc").ErrorResponse>;
606
609
  export declare const get_offers_count_command = "get_offers_count";
607
610
  export declare type get_offers_count_command = typeof get_offers_count_command;
608
611
  export declare type TGetOffersCountResponse = {
@@ -610,7 +613,7 @@ export declare type TGetOffersCountResponse = {
610
613
  my_offers_count: int;
611
614
  taken_offers_count: int;
612
615
  };
613
- export declare function get_offers_count(agent: TRPCAgent): Promise<TGetOffersCountResponse>;
616
+ export declare function get_offers_count(agent: TRPCAgent): Promise<TGetOffersCountResponse | import("../../../rpc").ErrorResponse>;
614
617
  export declare const cancel_offer_command = "cancel_offer";
615
618
  export declare type cancel_offer_command = typeof cancel_offer_command;
616
619
  export declare type TCancelOfferRequest = {
@@ -619,7 +622,7 @@ export declare type TCancelOfferRequest = {
619
622
  fee?: uint64;
620
623
  };
621
624
  export declare type TCancelOfferResponse = {};
622
- export declare function cancel_offer(agent: TRPCAgent, data: TCancelOfferRequest): Promise<TCancelOfferResponse>;
625
+ export declare function cancel_offer(agent: TRPCAgent, data: TCancelOfferRequest): Promise<TCancelOfferResponse | import("../../../rpc").ErrorResponse>;
623
626
  export declare const cancel_offers_command = "cancel_offers";
624
627
  export declare type cancel_offers_command = typeof cancel_offers_command;
625
628
  export declare type TCancelOffersRequest = {
@@ -632,7 +635,7 @@ export declare type TCancelOffersRequest = {
632
635
  export declare type TCancelOffersResponse = {
633
636
  success: True;
634
637
  };
635
- export declare function cancel_offers(agent: TRPCAgent, data: TCancelOffersRequest): Promise<TCancelOffersResponse>;
638
+ export declare function cancel_offers(agent: TRPCAgent, data: TCancelOffersRequest): Promise<TCancelOffersResponse | import("../../../rpc").ErrorResponse>;
636
639
  export declare const did_set_wallet_name_command = "did_set_wallet_name";
637
640
  export declare type did_set_wallet_name_command = typeof did_set_wallet_name_command;
638
641
  export declare type TDidSetWalletNameRequest = {
@@ -646,7 +649,7 @@ export declare type TDidSetWalletNameResponse = {
646
649
  success: False;
647
650
  error: str;
648
651
  };
649
- export declare function did_set_wallet_name(agent: TRPCAgent, data: TDidSetWalletNameRequest): Promise<TDidSetWalletNameResponse>;
652
+ export declare function did_set_wallet_name(agent: TRPCAgent, data: TDidSetWalletNameRequest): Promise<TDidSetWalletNameResponse | import("../../../rpc").ErrorResponse>;
650
653
  export declare const did_get_wallet_name_command = "did_get_wallet_name";
651
654
  export declare type did_get_wallet_name_command = typeof did_get_wallet_name_command;
652
655
  export declare type TDidGetWalletNameRequest = {
@@ -657,7 +660,7 @@ export declare type TDidGetWalletNameResponse = {
657
660
  wallet_id: uint32;
658
661
  name: str;
659
662
  };
660
- export declare function did_get_wallet_name(agent: TRPCAgent, data: TDidGetWalletNameRequest): Promise<TDidGetWalletNameResponse>;
663
+ export declare function did_get_wallet_name(agent: TRPCAgent, data: TDidGetWalletNameRequest): Promise<TDidGetWalletNameResponse | import("../../../rpc").ErrorResponse>;
661
664
  export declare const did_update_recovery_ids_command = "did_update_recovery_ids";
662
665
  export declare type did_update_recovery_ids_command = typeof did_update_recovery_ids_command;
663
666
  export declare type TDidUpdateRecoveryIdsRequest = {
@@ -668,7 +671,7 @@ export declare type TDidUpdateRecoveryIdsRequest = {
668
671
  export declare type TDidUpdateRecoveryIdsResponse = {
669
672
  success: bool;
670
673
  };
671
- export declare function did_update_recovery_ids(agent: TRPCAgent, data: TDidUpdateRecoveryIdsRequest): Promise<TDidUpdateRecoveryIdsResponse>;
674
+ export declare function did_update_recovery_ids(agent: TRPCAgent, data: TDidUpdateRecoveryIdsRequest): Promise<TDidUpdateRecoveryIdsResponse | import("../../../rpc").ErrorResponse>;
672
675
  export declare const did_update_metadata_command = "did_update_metadata";
673
676
  export declare type did_update_metadata_command = typeof did_update_metadata_command;
674
677
  export declare type TDidUpdateMetadataRequest = {
@@ -684,7 +687,7 @@ export declare type TDidUpdateMetadataResponse = {
684
687
  success: False;
685
688
  error: str;
686
689
  };
687
- export declare function did_update_metadata(agent: TRPCAgent, data: TDidUpdateMetadataRequest): Promise<TDidUpdateMetadataResponse>;
690
+ export declare function did_update_metadata(agent: TRPCAgent, data: TDidUpdateMetadataRequest): Promise<TDidUpdateMetadataResponse | import("../../../rpc").ErrorResponse>;
688
691
  export declare const did_spend_command = "did_spend";
689
692
  export declare type did_spend_command = typeof did_spend_command;
690
693
  export declare type TDidSpendRequest = {
@@ -694,7 +697,7 @@ export declare type TDidSpendRequest = {
694
697
  export declare type TDidSpendResponse = {
695
698
  success: bool;
696
699
  };
697
- export declare function did_spend(agent: TRPCAgent, data: TDidSpendRequest): Promise<TDidSpendResponse>;
700
+ export declare function did_spend(agent: TRPCAgent, data: TDidSpendRequest): Promise<TDidSpendResponse | import("../../../rpc").ErrorResponse>;
698
701
  export declare const did_get_pubkey_command = "did_get_pubkey";
699
702
  export declare type did_get_pubkey_command = typeof did_get_pubkey_command;
700
703
  export declare type TDidGetPubkeyRequest = {
@@ -704,7 +707,7 @@ export declare type TDidGetPubkeyResponse = {
704
707
  success: bool;
705
708
  pubkey: str;
706
709
  };
707
- export declare function did_get_pubkey(agent: TRPCAgent): Promise<TDidGetPubkeyResponse>;
710
+ export declare function did_get_pubkey(agent: TRPCAgent): Promise<TDidGetPubkeyResponse | import("../../../rpc").ErrorResponse>;
708
711
  export declare const did_get_did_command = "did_get_did";
709
712
  export declare type did_get_did_command = typeof did_get_did_command;
710
713
  export declare type TDidGetDidRequest = {
@@ -716,7 +719,7 @@ export declare type TDidGetDidResponse = {
716
719
  my_did: str;
717
720
  coin_id?: bytes32;
718
721
  };
719
- export declare function did_get_did(agent: TRPCAgent, data: TDidGetDidRequest): Promise<TDidGetDidResponse>;
722
+ export declare function did_get_did(agent: TRPCAgent, data: TDidGetDidRequest): Promise<TDidGetDidResponse | import("../../../rpc").ErrorResponse>;
720
723
  export declare const did_recovery_spend_command = "did_recovery_spend";
721
724
  export declare type did_recovery_spend_command = typeof did_recovery_spend_command;
722
725
  export declare type TDidRecoverySpendRequest = {
@@ -731,7 +734,7 @@ export declare type TDidRecoverySpendResponse = {
731
734
  } | {
732
735
  success: False;
733
736
  };
734
- export declare function did_recovery_spend(agent: TRPCAgent, data: TDidRecoverySpendRequest): Promise<TDidRecoverySpendResponse>;
737
+ export declare function did_recovery_spend(agent: TRPCAgent, data: TDidRecoverySpendRequest): Promise<TDidRecoverySpendResponse | import("../../../rpc").ErrorResponse>;
735
738
  export declare const did_get_recovery_list_command = "did_get_recovery_list";
736
739
  export declare type did_get_recovery_list_command = typeof did_get_recovery_list_command;
737
740
  export declare type TDidGetRecoveryListRequest = {
@@ -743,7 +746,7 @@ export declare type TDidGetRecoveryListResponse = {
743
746
  recovery_list: str[];
744
747
  num_required: uint64;
745
748
  };
746
- export declare function did_get_recovery_list(agent: TRPCAgent, data: TDidGetRecoveryListRequest): Promise<TDidGetRecoveryListResponse>;
749
+ export declare function did_get_recovery_list(agent: TRPCAgent, data: TDidGetRecoveryListRequest): Promise<TDidGetRecoveryListResponse | import("../../../rpc").ErrorResponse>;
747
750
  export declare const did_get_metadata_command = "did_get_metadata";
748
751
  export declare type did_get_metadata_command = typeof did_get_metadata_command;
749
752
  export declare type TDidGetMetadataRequest = {
@@ -754,7 +757,7 @@ export declare type TDidGetMetadataResponse = {
754
757
  wallet_id: uint32;
755
758
  metadata: Record<str, str>;
756
759
  };
757
- export declare function did_get_metadata(agent: TRPCAgent, data: TDidGetMetadataRequest): Promise<TDidGetMetadataResponse>;
760
+ export declare function did_get_metadata(agent: TRPCAgent, data: TDidGetMetadataRequest): Promise<TDidGetMetadataResponse | import("../../../rpc").ErrorResponse>;
758
761
  export declare const did_create_attest_command = "did_create_attest";
759
762
  export declare type did_create_attest_command = typeof did_create_attest_command;
760
763
  export declare type TDidCreateAttestRequest = {
@@ -770,7 +773,7 @@ export declare type TDidCreateAttestResponse = {
770
773
  } | {
771
774
  success: False;
772
775
  };
773
- export declare function did_create_attest(agent: TRPCAgent, data: TDidCreateAttestRequest): Promise<TDidCreateAttestResponse>;
776
+ export declare function did_create_attest(agent: TRPCAgent, data: TDidCreateAttestRequest): Promise<TDidCreateAttestResponse | import("../../../rpc").ErrorResponse>;
774
777
  export declare const did_get_information_needed_for_recovery_command = "did_get_information_needed_for_recovery";
775
778
  export declare type did_get_information_needed_for_recovery_command = typeof did_get_information_needed_for_recovery_command;
776
779
  export declare type TDidGetInformationNeededForRecoveryRequest = {
@@ -785,7 +788,7 @@ export declare type TDidGetInformationNeededForRecoveryResponse = {
785
788
  pubkey: Optional<bytes>;
786
789
  backup_dids: bytes[];
787
790
  };
788
- export declare function did_get_information_needed_for_recovery(agent: TRPCAgent, data: TDidGetInformationNeededForRecoveryRequest): Promise<TDidGetInformationNeededForRecoveryResponse>;
791
+ export declare function did_get_information_needed_for_recovery(agent: TRPCAgent, data: TDidGetInformationNeededForRecoveryRequest): Promise<TDidGetInformationNeededForRecoveryResponse | import("../../../rpc").ErrorResponse>;
789
792
  export declare const did_get_current_coin_info_command = "did_get_current_coin_info";
790
793
  export declare type did_get_current_coin_info_command = typeof did_get_current_coin_info_command;
791
794
  export declare type TDidGetCurrentCoinInfoRequest = {
@@ -799,7 +802,7 @@ export declare type TDidGetCurrentCoinInfoResponse = {
799
802
  did_innerpuz: bytes32;
800
803
  did_amount: uint64;
801
804
  };
802
- export declare function did_get_current_coin_info(agent: TRPCAgent, data: TDidGetCurrentCoinInfoRequest): Promise<TDidGetCurrentCoinInfoResponse>;
805
+ export declare function did_get_current_coin_info(agent: TRPCAgent, data: TDidGetCurrentCoinInfoRequest): Promise<TDidGetCurrentCoinInfoResponse | import("../../../rpc").ErrorResponse>;
803
806
  export declare const did_create_backup_file_command = "did_create_backup_file";
804
807
  export declare type did_create_backup_file_command = typeof did_create_backup_file_command;
805
808
  export declare type TDidCreateBackupFileRequest = {
@@ -810,7 +813,7 @@ export declare type TDidCreateBackupFileResponse = {
810
813
  success: True;
811
814
  backup_data: str;
812
815
  };
813
- export declare function did_create_backup_file(agent: TRPCAgent, data: TDidCreateBackupFileRequest): Promise<TDidCreateBackupFileResponse>;
816
+ export declare function did_create_backup_file(agent: TRPCAgent, data: TDidCreateBackupFileRequest): Promise<TDidCreateBackupFileResponse | import("../../../rpc").ErrorResponse>;
814
817
  export declare const did_transfer_did_command = "did_transfer_did";
815
818
  export declare type did_transfer_did_command = typeof did_transfer_did_command;
816
819
  export declare type TDidTransferDidRequest = {
@@ -824,7 +827,7 @@ export declare type TDidTransferDidResponse = {
824
827
  transaction: TransactionRecordConvenience;
825
828
  transaction_id: bytes32;
826
829
  };
827
- export declare function did_transfer_did(agent: TRPCAgent, data: TDidTransferDidRequest): Promise<TDidTransferDidResponse>;
830
+ export declare function did_transfer_did(agent: TRPCAgent, data: TDidTransferDidRequest): Promise<TDidTransferDidResponse | import("../../../rpc").ErrorResponse>;
828
831
  export declare const nft_mint_nft_command = "nft_mint_nft";
829
832
  export declare type nft_mint_nft_command = typeof nft_mint_nft_command;
830
833
  export declare type TNftMintNftRequest = {
@@ -848,7 +851,7 @@ export declare type TNftMintNftResponse = {
848
851
  success: True;
849
852
  spend_bundle: SpendBundle;
850
853
  };
851
- export declare function nft_mint_nft(agent: TRPCAgent, data: TNftMintNftRequest): Promise<TNftMintNftResponse>;
854
+ export declare function nft_mint_nft(agent: TRPCAgent, data: TNftMintNftRequest): Promise<TNftMintNftResponse | import("../../../rpc").ErrorResponse>;
852
855
  export declare const nft_get_nfts_command = "nft_get_nfts";
853
856
  export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
854
857
  export declare type TNftGetNftsRequest = {
@@ -859,7 +862,7 @@ export declare type TNftGetNftsResponse = {
859
862
  success: True;
860
863
  nft_list: NFTInfo[];
861
864
  };
862
- export declare function nft_get_nfts(agent: TRPCAgent, data: TNftGetNftsRequest): Promise<TNftGetNftsResponse>;
865
+ export declare function nft_get_nfts(agent: TRPCAgent, data: TNftGetNftsRequest): Promise<TNftGetNftsResponse | import("../../../rpc").ErrorResponse>;
863
866
  export declare const nft_set_nft_did_command = "nft_set_nft_did";
864
867
  export declare type nft_set_nft_did_command = typeof nft_set_nft_did_command;
865
868
  export declare type TNftSetNftDidRequest = {
@@ -876,7 +879,7 @@ export declare type TNftSetNftDidResponse = {
876
879
  success: False;
877
880
  error: str;
878
881
  };
879
- export declare function nft_set_nft_did(agent: TRPCAgent, data: TNftSetNftDidRequest): Promise<TNftSetNftDidResponse>;
882
+ export declare function nft_set_nft_did(agent: TRPCAgent, data: TNftSetNftDidRequest): Promise<TNftSetNftDidResponse | import("../../../rpc").ErrorResponse>;
880
883
  export declare const nft_get_by_did_command = "nft_get_by_did";
881
884
  export declare type nft_get_by_did_command = typeof nft_get_by_did_command;
882
885
  export declare type TNftGetByDidRequest = {
@@ -889,7 +892,7 @@ export declare type TNftGetByDidResponse = {
889
892
  success: False;
890
893
  error: str;
891
894
  };
892
- export declare function nft_get_by_did(agent: TRPCAgent, data: TNftGetByDidRequest): Promise<TNftGetByDidResponse>;
895
+ export declare function nft_get_by_did(agent: TRPCAgent, data: TNftGetByDidRequest): Promise<TNftGetByDidResponse | import("../../../rpc").ErrorResponse>;
893
896
  export declare const nft_get_wallet_did_command = "nft_get_wallet_did";
894
897
  export declare type nft_get_wallet_did_command = typeof nft_get_wallet_did_command;
895
898
  export declare type TNftGetWalletDidRequest = {
@@ -902,7 +905,7 @@ export declare type TNftGetWalletDidResponse = {
902
905
  success: False;
903
906
  error: str;
904
907
  };
905
- export declare function nft_get_wallet_did(agent: TRPCAgent, data: TNftGetWalletDidRequest): Promise<TNftGetWalletDidResponse>;
908
+ export declare function nft_get_wallet_did(agent: TRPCAgent, data: TNftGetWalletDidRequest): Promise<TNftGetWalletDidResponse | import("../../../rpc").ErrorResponse>;
906
909
  export declare const nft_get_wallets_with_dids_command = "nft_get_wallets_with_dids";
907
910
  export declare type nft_get_wallets_with_dids_command = typeof nft_get_wallets_with_dids_command;
908
911
  export declare type TNftGetWalletsWithDidsResponse = {
@@ -913,7 +916,7 @@ export declare type TNftGetWalletsWithDidsResponse = {
913
916
  did_wallet_id: uint32;
914
917
  }>;
915
918
  };
916
- export declare function nft_get_wallets_with_dids(agent: TRPCAgent): Promise<TNftGetWalletsWithDidsResponse>;
919
+ export declare function nft_get_wallets_with_dids(agent: TRPCAgent): Promise<TNftGetWalletsWithDidsResponse | import("../../../rpc").ErrorResponse>;
917
920
  export declare const nft_set_nft_status_command = "nft_set_nft_status";
918
921
  export declare type nft_set_nft_status_command = typeof nft_set_nft_status_command;
919
922
  export declare type TNftSetNftStatusRequest = {
@@ -927,7 +930,7 @@ export declare type TNftSetNftStatusResponse = {
927
930
  success: False;
928
931
  error: str;
929
932
  };
930
- export declare function nft_set_nft_status(agent: TRPCAgent, data: TNftSetNftStatusRequest): Promise<TNftSetNftStatusResponse>;
933
+ export declare function nft_set_nft_status(agent: TRPCAgent, data: TNftSetNftStatusRequest): Promise<TNftSetNftStatusResponse | import("../../../rpc").ErrorResponse>;
931
934
  export declare const nft_transfer_nft_command = "nft_transfer_nft";
932
935
  export declare type nft_transfer_nft_command = typeof nft_transfer_nft_command;
933
936
  export declare type TNftTransferNftRequest = {
@@ -944,7 +947,7 @@ export declare type TNftTransferNftResponse = {
944
947
  success: False;
945
948
  error: str;
946
949
  };
947
- export declare function nft_transfer_nft(agent: TRPCAgent, data: TNftTransferNftRequest): Promise<TNftTransferNftResponse>;
950
+ export declare function nft_transfer_nft(agent: TRPCAgent, data: TNftTransferNftRequest): Promise<TNftTransferNftResponse | import("../../../rpc").ErrorResponse>;
948
951
  export declare const nft_get_info_command = "nft_get_info";
949
952
  export declare type nft_get_info_command = typeof nft_get_info_command;
950
953
  export declare type TNftGetInfoRequest = {
@@ -958,7 +961,7 @@ export declare type TNftGetInfoResponse = {
958
961
  success: False;
959
962
  error: str;
960
963
  };
961
- export declare function nft_get_info(agent: TRPCAgent, data: TNftGetInfoRequest): Promise<TNftGetInfoResponse>;
964
+ export declare function nft_get_info(agent: TRPCAgent, data: TNftGetInfoRequest): Promise<TNftGetInfoResponse | import("../../../rpc").ErrorResponse>;
962
965
  export declare const nft_add_uri_command = "nft_add_uri";
963
966
  export declare type nft_add_uri_command = typeof nft_add_uri_command;
964
967
  export declare type TNftAddUriRequest = {
@@ -976,7 +979,7 @@ export declare type TNftAddUriResponse = {
976
979
  success: False;
977
980
  error: str;
978
981
  };
979
- export declare function nft_add_uri(agent: TRPCAgent, data: TNftAddUriRequest): Promise<TNftAddUriResponse>;
982
+ export declare function nft_add_uri(agent: TRPCAgent, data: TNftAddUriRequest): Promise<TNftAddUriResponse | import("../../../rpc").ErrorResponse>;
980
983
  export declare const rl_set_user_info_command = "rl_set_user_info";
981
984
  export declare type rl_set_user_info_command = typeof rl_set_user_info_command;
982
985
  export declare type TRlSetUserInfoRequest = {
@@ -991,7 +994,7 @@ export declare type TRlSetUserInfoRequest = {
991
994
  admin_pubkey: str;
992
995
  };
993
996
  export declare type TRlSetUserInfoResponse = {};
994
- export declare function rl_set_user_info(agent: TRPCAgent, data: TRlSetUserInfoRequest): Promise<TRlSetUserInfoResponse>;
997
+ export declare function rl_set_user_info(agent: TRPCAgent, data: TRlSetUserInfoRequest): Promise<TRlSetUserInfoResponse | import("../../../rpc").ErrorResponse>;
995
998
  export declare const send_clawback_transaction_command = "send_clawback_transaction:";
996
999
  export declare type send_clawback_transaction_command = typeof send_clawback_transaction_command;
997
1000
  export declare type TSendClawbackTransactionRequest = {
@@ -1002,7 +1005,7 @@ export declare type TSendClawbackTransactionResponse = {
1002
1005
  transaction: TransactionRecord;
1003
1006
  transaction_id: TransactionRecord["name"];
1004
1007
  };
1005
- export declare function send_clawback_transaction(agent: TRPCAgent, data: TSendClawbackTransactionRequest): Promise<TSendClawbackTransactionResponse>;
1008
+ export declare function send_clawback_transaction(agent: TRPCAgent, data: TSendClawbackTransactionRequest): Promise<TSendClawbackTransactionResponse | import("../../../rpc").ErrorResponse>;
1006
1009
  export declare const add_rate_limited_funds_command = "add_rate_limited_funds:";
1007
1010
  export declare type add_rate_limited_funds_command = typeof add_rate_limited_funds_command;
1008
1011
  export declare type TAddRateLimitedFundsRequest = {
@@ -1013,7 +1016,7 @@ export declare type TAddRateLimitedFundsRequest = {
1013
1016
  export declare type TAddRateLimitedFundsResponse = {
1014
1017
  status: "SUCCESS";
1015
1018
  };
1016
- export declare function add_rate_limited_funds(agent: TRPCAgent, data: TAddRateLimitedFundsRequest): Promise<TAddRateLimitedFundsResponse>;
1019
+ export declare function add_rate_limited_funds(agent: TRPCAgent, data: TAddRateLimitedFundsRequest): Promise<TAddRateLimitedFundsResponse | import("../../../rpc").ErrorResponse>;
1017
1020
  export declare const pw_join_pool_command = "pw_join_pool";
1018
1021
  export declare type pw_join_pool_command = typeof pw_join_pool_command;
1019
1022
  export declare type TPwJoinPoolRequest = {
@@ -1031,7 +1034,7 @@ export declare type TPwJoinPoolResponse = {
1031
1034
  success: False;
1032
1035
  error: "not_initialized";
1033
1036
  };
1034
- export declare function pw_join_pool(agent: TRPCAgent, data: TPwJoinPoolRequest): Promise<TPwJoinPoolResponse>;
1037
+ export declare function pw_join_pool(agent: TRPCAgent, data: TPwJoinPoolRequest): Promise<TPwJoinPoolResponse | import("../../../rpc").ErrorResponse>;
1035
1038
  export declare const pw_self_pool_command = "pw_self_pool";
1036
1039
  export declare type pw_self_pool_command = typeof pw_self_pool_command;
1037
1040
  export declare type TPwSelfPoolRequest = {
@@ -1043,7 +1046,7 @@ export declare type TPwSelfPoolResponse = {
1043
1046
  transaction: TransactionRecord;
1044
1047
  fee_transaction: Optional<TransactionRecord>;
1045
1048
  };
1046
- export declare function pw_self_pool(agent: TRPCAgent, data: TPwSelfPoolRequest): Promise<TPwSelfPoolResponse>;
1049
+ export declare function pw_self_pool(agent: TRPCAgent, data: TPwSelfPoolRequest): Promise<TPwSelfPoolResponse | import("../../../rpc").ErrorResponse>;
1047
1050
  export declare const pw_absorb_rewards_command = "pw_absorb_rewards";
1048
1051
  export declare type pw_absorb_rewards_command = typeof pw_absorb_rewards_command;
1049
1052
  export declare type TPwAbsorbRewardsRequest = {
@@ -1056,7 +1059,7 @@ export declare type TPwAbsorbRewardsResponse = {
1056
1059
  transaction: TransactionRecord;
1057
1060
  fee_transaction: Optional<TransactionRecord>;
1058
1061
  };
1059
- export declare function pw_absorb_rewards(agent: TRPCAgent, data: TPwAbsorbRewardsRequest): Promise<TPwAbsorbRewardsResponse>;
1062
+ export declare function pw_absorb_rewards(agent: TRPCAgent, data: TPwAbsorbRewardsRequest): Promise<TPwAbsorbRewardsResponse | import("../../../rpc").ErrorResponse>;
1060
1063
  export declare const pw_status_command = "pw_status";
1061
1064
  export declare type pw_status_command = typeof pw_status_command;
1062
1065
  export declare type TPwStatusRequest = {
@@ -1066,4 +1069,123 @@ export declare type TPwStatusResponse = {
1066
1069
  state: PoolWalletInfo;
1067
1070
  unconfirmed_transactions: TransactionRecord[];
1068
1071
  };
1069
- export declare function pw_status(agent: TRPCAgent, data: TPwStatusRequest): Promise<TPwStatusResponse>;
1072
+ export declare function pw_status(agent: TRPCAgent, data: TPwStatusRequest): Promise<TPwStatusResponse | import("../../../rpc").ErrorResponse>;
1073
+ export declare const create_new_dl_command = "create_new_dl";
1074
+ export declare type create_new_dl_command = typeof create_new_dl_command;
1075
+ export declare type TCreateNewDlRequest = {
1076
+ root: str;
1077
+ fee?: uint64;
1078
+ };
1079
+ export declare type TCreateNewDlResponse = {
1080
+ success: False;
1081
+ error: str;
1082
+ } | {
1083
+ success: True;
1084
+ transactions: TransactionRecordConvenience[];
1085
+ launcher_id: bytes32;
1086
+ };
1087
+ export declare function create_new_dl(agent: TRPCAgent, data: TCreateNewDlRequest): Promise<TCreateNewDlResponse | import("../../../rpc").ErrorResponse>;
1088
+ export declare const dl_track_new_command = "dl_track_new";
1089
+ export declare type dl_track_new_command = typeof dl_track_new_command;
1090
+ export declare type TDlTrackNewRequest = {
1091
+ launcher_id: str;
1092
+ };
1093
+ export declare type TDlTrackNewResponse = {};
1094
+ export declare function dl_track_new(agent: TRPCAgent, data: TDlTrackNewRequest): Promise<TDlTrackNewResponse | import("../../../rpc").ErrorResponse>;
1095
+ export declare const dl_stop_tracking_command = "dl_stop_tracking";
1096
+ export declare type dl_stop_tracking_command = typeof dl_stop_tracking_command;
1097
+ export declare type TDlStopTrackingRequest = {
1098
+ launcher_id: str;
1099
+ };
1100
+ export declare type TDlStopTrackingResponse = {};
1101
+ export declare function dl_stop_tracking(agent: TRPCAgent, data: TDlStopTrackingRequest): Promise<TDlStopTrackingResponse | import("../../../rpc").ErrorResponse>;
1102
+ export declare const dl_latest_singleton_command = "dl_latest_singleton";
1103
+ export declare type dl_latest_singleton_command = typeof dl_latest_singleton_command;
1104
+ export declare type TDlLatestSingletonRequest = {
1105
+ launcher_id: str;
1106
+ only_confirmed?: bool;
1107
+ };
1108
+ export declare type TDlLatestSingletonResponse = {
1109
+ singleton: Optional<SingletonRecord>;
1110
+ };
1111
+ export declare function dl_latest_singleton(agent: TRPCAgent, data: TDlLatestSingletonRequest): Promise<TDlLatestSingletonResponse | import("../../../rpc").ErrorResponse>;
1112
+ export declare const dl_singletons_by_root_command = "dl_singletons_by_root";
1113
+ export declare type dl_singletons_by_root_command = typeof dl_singletons_by_root_command;
1114
+ export declare type TDlSingletonsByRootRequest = {
1115
+ launcher_id: str;
1116
+ root: str;
1117
+ };
1118
+ export declare type TDlSingletonsByRootResponse = {
1119
+ singletons: SingletonRecord[];
1120
+ };
1121
+ export declare function dl_singletons_by_root(agent: TRPCAgent, data: TDlSingletonsByRootRequest): Promise<TDlSingletonsByRootResponse | import("../../../rpc").ErrorResponse>;
1122
+ export declare const dl_update_root_command = "dl_update_root";
1123
+ export declare type dl_update_root_command = typeof dl_update_root_command;
1124
+ export declare type TDlUpdateRootRequest = {
1125
+ launcher_id: str;
1126
+ new_root: str;
1127
+ fee?: uint64;
1128
+ };
1129
+ export declare type TDlUpdateRootResponse = {
1130
+ tx_record: TransactionRecordConvenience;
1131
+ };
1132
+ export declare function dl_update_root(agent: TRPCAgent, data: TDlUpdateRootRequest): Promise<TDlUpdateRootResponse | import("../../../rpc").ErrorResponse>;
1133
+ export declare const dl_update_multiple_command = "dl_update_multiple";
1134
+ export declare type dl_update_multiple_command = typeof dl_update_multiple_command;
1135
+ export declare type TDlUpdateMultipleRequest = {
1136
+ updates: Record<str, str>;
1137
+ };
1138
+ export declare type TDlUpdateMultipleResponse = {
1139
+ tx_records: TransactionRecordConvenience[];
1140
+ };
1141
+ export declare function dl_update_multiple(agent: TRPCAgent, data: TDlUpdateMultipleRequest): Promise<TDlUpdateMultipleResponse | import("../../../rpc").ErrorResponse>;
1142
+ export declare const dl_history_command = "dl_history";
1143
+ export declare type dl_history_command = typeof dl_history_command;
1144
+ export declare type TDlHistoryRequest = {
1145
+ min_generation?: uint32;
1146
+ max_generation?: uint32;
1147
+ num_results?: uint32;
1148
+ };
1149
+ export declare type TDlHistoryResponse = {
1150
+ history: SingletonRecord[];
1151
+ count: int;
1152
+ };
1153
+ export declare function dl_history(agent: TRPCAgent, data: TDlHistoryRequest): Promise<TDlHistoryResponse | import("../../../rpc").ErrorResponse>;
1154
+ export declare const dl_owned_singletons_command = "dl_owned_singletons";
1155
+ export declare type dl_owned_singletons_command = typeof dl_owned_singletons_command;
1156
+ export declare type TDlOwnedSingletonsResponse = {
1157
+ singletons: SingletonRecord[];
1158
+ count: int;
1159
+ };
1160
+ export declare function dl_owned_singletons(agent: TRPCAgent): Promise<TDlOwnedSingletonsResponse | import("../../../rpc").ErrorResponse>;
1161
+ export declare const dl_get_mirrors_command = "dl_get_mirrors";
1162
+ export declare type dl_get_mirrors_command = typeof dl_get_mirrors_command;
1163
+ export declare type TDlGetMirrorsRequest = {
1164
+ launcher_id: str;
1165
+ };
1166
+ export declare type TDlGetMirrorsResponse = {
1167
+ mirrors: Mirror[];
1168
+ };
1169
+ export declare function dl_get_mirrors(agent: TRPCAgent, data: TDlGetMirrorsRequest): Promise<TDlGetMirrorsResponse | import("../../../rpc").ErrorResponse>;
1170
+ export declare const dl_new_mirror_command = "dl_new_mirror";
1171
+ export declare type dl_new_mirror_command = typeof dl_new_mirror_command;
1172
+ export declare type TDlNewMirrorRequest = {
1173
+ launcher_id: str;
1174
+ amount: uint64;
1175
+ urls: str[];
1176
+ fee?: uint64;
1177
+ };
1178
+ export declare type TDlNewMirrorResponse = {
1179
+ transactions: TransactionRecordConvenience[];
1180
+ };
1181
+ export declare function dl_new_mirror(agent: TRPCAgent, data: TDlNewMirrorRequest): Promise<TDlNewMirrorResponse | import("../../../rpc").ErrorResponse>;
1182
+ export declare const dl_delete_mirror_command = "dl_delete_mirror";
1183
+ export declare type dl_delete_mirror_command = typeof dl_delete_mirror_command;
1184
+ export declare type TDlDeleteMirrorRequest = {
1185
+ coin_id: str;
1186
+ fee?: uint64;
1187
+ };
1188
+ export declare type TDlDeleteMirrorResponse = {
1189
+ transactions: TransactionRecordConvenience[];
1190
+ };
1191
+ export declare function dl_delete_mirror(agent: TRPCAgent, data: TDlDeleteMirrorRequest): Promise<TDlDeleteMirrorResponse | import("../../../rpc").ErrorResponse>;