chia-agent 9.0.1 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +128 -0
  2. package/README.md +5 -5
  3. package/api/chia/data_layer/data_layer_util.d.ts +30 -0
  4. package/api/chia/data_layer/data_layer_util.js +2 -0
  5. package/api/chia/data_layer/data_layer_wallet.d.ts +21 -0
  6. package/api/chia/data_layer/data_layer_wallet.js +2 -0
  7. package/api/chia/server/outbound_message.d.ts +1 -1
  8. package/api/chia/types/_python_types_.d.ts +1 -0
  9. package/api/chia/types/clvm_cost.d.ts +2 -0
  10. package/api/chia/types/clvm_cost.js +2 -0
  11. package/api/chia/types/mempool_item.d.ts +2 -3
  12. package/api/chia/util/keychain.d.ts +12 -0
  13. package/api/chia/util/keychain.js +2 -0
  14. package/api/chia/wallet/lineage_proof.d.ts +7 -0
  15. package/api/chia/wallet/lineage_proof.js +2 -0
  16. package/api/chia/wallet/nft_wallet/nft_info.d.ts +3 -0
  17. package/api/chia/wallet/util/wallet_types.d.ts +2 -1
  18. package/api/chia/wallet/util/wallet_types.js +3 -1
  19. package/api/rpc/common/index.d.ts +9 -8
  20. package/api/rpc/crawler/index.d.ts +2 -2
  21. package/api/rpc/data_layer/index.d.ts +291 -0
  22. package/api/rpc/data_layer/index.js +196 -0
  23. package/api/rpc/farmer/index.d.ts +13 -13
  24. package/api/rpc/full_node/index.d.ts +45 -25
  25. package/api/rpc/full_node/index.js +8 -1
  26. package/api/rpc/harvester/index.d.ts +6 -6
  27. package/api/rpc/index.d.ts +12 -9
  28. package/api/rpc/index.js +70 -20
  29. package/api/rpc/wallet/index.d.ts +329 -81
  30. package/api/rpc/wallet/index.js +144 -4
  31. package/api/ws/daemon/index.d.ts +102 -3
  32. package/api/ws/daemon/index.js +37 -2
  33. package/api/ws/index.d.ts +3 -3
  34. package/api/ws/index.js +15 -12
  35. package/api/ws/wallet/index.d.ts +1 -1
  36. package/package.json +1 -1
  37. package/rpc/index.d.ts +6 -2
  38. package/rpc/index.js +3 -0
@@ -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,42 @@ 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>;
135
+ export declare const push_transactions_command = "push_transactions";
136
+ export declare type push_transactions_command = typeof push_transactions_command;
137
+ export declare type TPushTransactionsRequest = {
138
+ transactions: str;
139
+ };
140
+ export declare type TPushTransactionsResponse = {};
141
+ export declare function push_transactions(agent: TRPCAgent, data: TPushTransactionsRequest): Promise<TPushTransactionsResponse | import("../../../rpc").ErrorResponse>;
134
142
  export declare const farm_block_command = "farm_block";
135
143
  export declare type farm_block_command = typeof farm_block_command;
136
144
  export declare type TFarmBlockRequest = {
137
145
  address: str;
138
146
  };
139
147
  export declare type TFarmBlockResponse = {};
140
- export declare function farm_block(agent: TRPCAgent, data: TFarmBlockRequest): Promise<TFarmBlockResponse>;
148
+ export declare function farm_block(agent: TRPCAgent, data: TFarmBlockRequest): Promise<TFarmBlockResponse | import("../../../rpc").ErrorResponse>;
141
149
  export declare const get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
142
150
  export declare type get_initial_freeze_period_command_of_wallet = typeof get_initial_freeze_period_command_of_wallet;
143
151
  export declare type TGetInitialFreezePeriodRequestOfWallet = {};
144
152
  export declare type TGetInitialFreezePeriodResponseOfWallet = {
145
153
  INITIAL_FREEZE_END_TIMESTAMP: 1620061200;
146
154
  };
147
- export declare function get_initial_freeze_period_of_wallet(agent: TRPCAgent): Promise<TGetInitialFreezePeriodResponseOfWallet>;
155
+ export declare function get_initial_freeze_period_of_wallet(agent: TRPCAgent): Promise<TGetInitialFreezePeriodResponseOfWallet | import("../../../rpc").ErrorResponse>;
148
156
  export declare const get_network_info_command_of_wallet = "get_network_info";
149
157
  export declare type get_network_info_command_of_wallet = typeof get_network_info_command_of_wallet;
150
158
  export declare type TGetNetworkInfoRequestOfWallet = {};
@@ -152,7 +160,7 @@ export declare type TGetNetworkInfoResponseOfWallet = {
152
160
  network_name: str;
153
161
  network_prefix: str;
154
162
  };
155
- export declare function get_network_info_of_wallet(agent: TRPCAgent): Promise<TGetNetworkInfoResponseOfWallet>;
163
+ export declare function get_network_info_of_wallet(agent: TRPCAgent): Promise<TGetNetworkInfoResponseOfWallet | import("../../../rpc").ErrorResponse>;
156
164
  export declare const get_wallets_command = "get_wallets";
157
165
  export declare type get_wallets_command = typeof get_wallets_command;
158
166
  export declare type TGetWalletsRequest = {
@@ -163,7 +171,7 @@ export declare type TGetWalletsResponse = {
163
171
  wallets: WalletInfo[];
164
172
  fingerprint?: int;
165
173
  };
166
- export declare function get_wallets(agent: TRPCAgent, data: TGetWalletsRequest): Promise<TGetWalletsResponse>;
174
+ export declare function get_wallets(agent: TRPCAgent, data: TGetWalletsRequest): Promise<TGetWalletsResponse | import("../../../rpc").ErrorResponse>;
167
175
  export declare type TCreate_New_CAT_WalletRequest = {
168
176
  fee?: uint64;
169
177
  wallet_type: "cat_wallet";
@@ -280,7 +288,7 @@ export declare const create_new_wallet_command = "create_new_wallet";
280
288
  export declare type create_new_wallet_command = typeof create_new_wallet_command;
281
289
  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
290
  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>;
291
+ export declare function create_new_wallet(agent: TRPCAgent, data: TCreateNewWalletRequest): Promise<TCreateNewWalletResponse | import("../../../rpc").ErrorResponse>;
284
292
  export declare const get_wallet_balance_command = "get_wallet_balance";
285
293
  export declare type get_wallet_balance_command = typeof get_wallet_balance_command;
286
294
  export declare type TGetWalletBalanceRequest = {
@@ -301,7 +309,7 @@ export declare type TGetWalletBalanceResponse = {
301
309
  asset_id?: str;
302
310
  };
303
311
  };
304
- export declare function get_wallet_balance(agent: TRPCAgent, data: TGetWalletBalanceRequest): Promise<TGetWalletBalanceResponse>;
312
+ export declare function get_wallet_balance(agent: TRPCAgent, data: TGetWalletBalanceRequest): Promise<TGetWalletBalanceResponse | import("../../../rpc").ErrorResponse>;
305
313
  export declare const get_transaction_command = "get_transaction";
306
314
  export declare type get_transaction_command = typeof get_transaction_command;
307
315
  export declare type TGetTransactionRequest = {
@@ -311,7 +319,7 @@ export declare type TGetTransactionResponse = {
311
319
  transaction: TransactionRecordConvenience;
312
320
  transaction_id: TransactionRecord["name"];
313
321
  };
314
- export declare function get_transaction(agent: TRPCAgent, data: TGetTransactionRequest): Promise<TGetTransactionResponse>;
322
+ export declare function get_transaction(agent: TRPCAgent, data: TGetTransactionRequest): Promise<TGetTransactionResponse | import("../../../rpc").ErrorResponse>;
315
323
  export declare const get_transactions_command = "get_transactions";
316
324
  export declare type get_transactions_command = typeof get_transactions_command;
317
325
  export declare type TGetTransactionsRequest = {
@@ -326,7 +334,7 @@ export declare type TGetTransactionsResponse = {
326
334
  transactions: TransactionRecordConvenience[];
327
335
  wallet_id: int;
328
336
  };
329
- export declare function get_transactions(agent: TRPCAgent, data: TGetTransactionsRequest): Promise<TGetTransactionsResponse>;
337
+ export declare function get_transactions(agent: TRPCAgent, data: TGetTransactionsRequest): Promise<TGetTransactionsResponse | import("../../../rpc").ErrorResponse>;
330
338
  export declare const get_next_address_command = "get_next_address";
331
339
  export declare type get_next_address_command = typeof get_next_address_command;
332
340
  export declare type TGetNextAddressRequest = {
@@ -337,7 +345,7 @@ export declare type TGetNextAddressResponse = {
337
345
  wallet_id: uint32;
338
346
  address: str;
339
347
  };
340
- export declare function get_next_address(agent: TRPCAgent, data: TGetNextAddressRequest): Promise<TGetNextAddressResponse>;
348
+ export declare function get_next_address(agent: TRPCAgent, data: TGetNextAddressRequest): Promise<TGetNextAddressResponse | import("../../../rpc").ErrorResponse>;
341
349
  export declare const send_transaction_command = "send_transaction";
342
350
  export declare type send_transaction_command = typeof send_transaction_command;
343
351
  export declare type TSendTransactionRequest = {
@@ -352,7 +360,7 @@ export declare type TSendTransactionResponse = {
352
360
  transaction: TransactionRecordConvenience;
353
361
  transaction_id: TransactionRecord["name"];
354
362
  };
355
- export declare function send_transaction(agent: TRPCAgent, data: TSendTransactionRequest): Promise<TSendTransactionResponse>;
363
+ export declare function send_transaction(agent: TRPCAgent, data: TSendTransactionRequest): Promise<TSendTransactionResponse | import("../../../rpc").ErrorResponse>;
356
364
  export declare const send_transaction_multi_command = "send_transaction_multi";
357
365
  export declare type send_transaction_multi_command = typeof send_transaction_multi_command;
358
366
  export declare type TSendTransactionMultiRequest = {
@@ -367,7 +375,7 @@ export declare type TSendTransactionMultiResponse = {
367
375
  transaction: TransactionRecordConvenience;
368
376
  transaction_id: TransactionRecordConvenience["name"];
369
377
  };
370
- export declare function send_transaction_multi(agent: TRPCAgent, data: TSendTransactionMultiRequest): Promise<TSendTransactionMultiResponse>;
378
+ export declare function send_transaction_multi(agent: TRPCAgent, data: TSendTransactionMultiRequest): Promise<TSendTransactionMultiResponse | import("../../../rpc").ErrorResponse>;
371
379
  export declare const get_transaction_count_command = "get_transaction_count";
372
380
  export declare type get_transaction_count_command = typeof get_transaction_count_command;
373
381
  export declare type TGetTransactionCountRequest = {
@@ -377,7 +385,7 @@ export declare type TGetTransactionCountResponse = {
377
385
  count: int;
378
386
  wallet_id: int;
379
387
  };
380
- export declare function get_transaction_count(agent: TRPCAgent, data: TGetTransactionCountRequest): Promise<TGetTransactionCountResponse>;
388
+ export declare function get_transaction_count(agent: TRPCAgent, data: TGetTransactionCountRequest): Promise<TGetTransactionCountResponse | import("../../../rpc").ErrorResponse>;
381
389
  export declare const get_farmed_amount_command = "get_farmed_amount";
382
390
  export declare type get_farmed_amount_command = typeof get_farmed_amount_command;
383
391
  export declare type TGetFarmedAmountRequest = {};
@@ -388,7 +396,7 @@ export declare type TGetFarmedAmountResponse = {
388
396
  fee_amount: int;
389
397
  last_height_farmed: int;
390
398
  };
391
- export declare function get_farmed_amount(agent: TRPCAgent): Promise<TGetFarmedAmountResponse>;
399
+ export declare function get_farmed_amount(agent: TRPCAgent): Promise<TGetFarmedAmountResponse | import("../../../rpc").ErrorResponse>;
392
400
  export declare type TAdditions = {
393
401
  amount: uint64;
394
402
  puzzle_hash: str;
@@ -407,6 +415,7 @@ export declare type TPuzzleAnnouncement = {
407
415
  export declare const create_signed_transaction_command = "create_signed_transaction";
408
416
  export declare type create_signed_transaction_command = typeof create_signed_transaction_command;
409
417
  export declare type TCreateSignedTransactionRequest = {
418
+ wallet_id?: uint32;
410
419
  additions: TAdditions[];
411
420
  fee?: uint64;
412
421
  min_coin_amount?: uint64;
@@ -416,16 +425,17 @@ export declare type TCreateSignedTransactionRequest = {
416
425
  puzzle_announcements?: TPuzzleAnnouncement[];
417
426
  };
418
427
  export declare type TCreateSignedTransactionResponse = {
428
+ signed_txs: TransactionRecordConvenience[];
419
429
  signed_tx: TransactionRecordConvenience;
420
430
  };
421
- export declare function create_signed_transaction(agent: TRPCAgent, data: TCreateSignedTransactionRequest): Promise<TCreateSignedTransactionResponse>;
431
+ export declare function create_signed_transaction(agent: TRPCAgent, data: TCreateSignedTransactionRequest): Promise<TCreateSignedTransactionResponse | import("../../../rpc").ErrorResponse>;
422
432
  export declare const delete_unconfirmed_transactions_command = "delete_unconfirmed_transactions";
423
433
  export declare type delete_unconfirmed_transactions_command = typeof delete_unconfirmed_transactions_command;
424
434
  export declare type TDeleteUnconfirmedTransactionsRequest = {
425
435
  wallet_id: uint32;
426
436
  };
427
437
  export declare type TDeleteUnconfirmedTransactionsResponse = {};
428
- export declare function delete_unconfirmed_transactions(agent: TRPCAgent, data: TDeleteUnconfirmedTransactionsRequest): Promise<TDeleteUnconfirmedTransactionsResponse>;
438
+ export declare function delete_unconfirmed_transactions(agent: TRPCAgent, data: TDeleteUnconfirmedTransactionsRequest): Promise<TDeleteUnconfirmedTransactionsResponse | import("../../../rpc").ErrorResponse>;
429
439
  export declare const select_coins_command = "select_coins";
430
440
  export declare type select_coins_command = typeof select_coins_command;
431
441
  export declare type TSelectCoinsRequest = {
@@ -437,14 +447,14 @@ export declare type TSelectCoinsRequest = {
437
447
  export declare type TSelectCoinsResponse = {
438
448
  coins: Coin[];
439
449
  };
440
- export declare function select_coins(agent: TRPCAgent, data: TSelectCoinsRequest): Promise<TSelectCoinsResponse>;
450
+ export declare function select_coins(agent: TRPCAgent, data: TSelectCoinsRequest): Promise<TSelectCoinsResponse | import("../../../rpc").ErrorResponse>;
441
451
  export declare const get_current_derivation_index_command = "get_current_derivation_index";
442
452
  export declare type get_current_derivation_index_command = typeof get_current_derivation_index_command;
443
453
  export declare type TGetCurrentDerivationIndexResponse = {
444
454
  success: True;
445
455
  index: Optional<uint32>;
446
456
  };
447
- export declare function get_current_derivation_index(agent: TRPCAgent): Promise<TGetCurrentDerivationIndexResponse>;
457
+ export declare function get_current_derivation_index(agent: TRPCAgent): Promise<TGetCurrentDerivationIndexResponse | import("../../../rpc").ErrorResponse>;
448
458
  export declare const extend_derivation_index_command = "extend_derivation_index";
449
459
  export declare type extend_derivation_index_command = typeof extend_derivation_index_command;
450
460
  export declare type TExtendDerivationIndexRequest = {
@@ -454,13 +464,74 @@ export declare type TExtendDerivationIndexResponse = {
454
464
  success: True;
455
465
  index: Optional<uint32>;
456
466
  };
457
- export declare function extend_derivation_index(agent: TRPCAgent, data: TExtendDerivationIndexRequest): Promise<TExtendDerivationIndexResponse>;
467
+ export declare function extend_derivation_index(agent: TRPCAgent, data: TExtendDerivationIndexRequest): Promise<TExtendDerivationIndexResponse | import("../../../rpc").ErrorResponse>;
468
+ export declare const get_notifications_command = "get_notifications";
469
+ export declare type get_notifications_command = typeof get_notifications_command;
470
+ export declare type TGetNotificationsRequest = {
471
+ ids?: str[];
472
+ start?: int;
473
+ end?: int;
474
+ };
475
+ export declare type TGetNotificationsResponse = {
476
+ notifications: Array<{
477
+ id: str;
478
+ message: str;
479
+ amount: uint64;
480
+ }>;
481
+ };
482
+ export declare function get_notifications(agent: TRPCAgent, data: TGetNotificationsRequest): Promise<TGetNotificationsResponse | import("../../../rpc").ErrorResponse>;
483
+ export declare const delete_notifications_command = "delete_notifications";
484
+ export declare type delete_notifications_command = typeof delete_notifications_command;
485
+ export declare type TDeleteNotificationsRequest = {
486
+ ids?: str[];
487
+ };
488
+ export declare type TDeleteNotificationsResponse = {};
489
+ export declare function delete_notifications(agent: TRPCAgent, data: TDeleteNotificationsRequest): Promise<TDeleteNotificationsResponse | import("../../../rpc").ErrorResponse>;
490
+ export declare const send_notification_command = "send_notification";
491
+ export declare type send_notification_command = typeof send_notification_command;
492
+ export declare type TSendNotificationRequest = {
493
+ target: str;
494
+ message: str;
495
+ amount: uint64;
496
+ fee?: uint64;
497
+ };
498
+ export declare type TSendNotificationResponse = {
499
+ tx: TransactionRecordConvenience;
500
+ };
501
+ export declare function send_notification(agent: TRPCAgent, data: TSendNotificationRequest): Promise<TSendNotificationResponse | import("../../../rpc").ErrorResponse>;
502
+ export declare const sign_message_by_address_command = "sign_message_by_address";
503
+ export declare type sign_message_by_address_command = typeof sign_message_by_address_command;
504
+ export declare type TSignMessageByAddressRequest = {
505
+ address: str;
506
+ message: str;
507
+ };
508
+ export declare type TSignMessageByAddressResponse = {
509
+ success: True;
510
+ pubkey: str;
511
+ signature: str;
512
+ };
513
+ export declare function sign_message_by_address(agent: TRPCAgent, data: TSignMessageByAddressRequest): Promise<TSignMessageByAddressResponse | import("../../../rpc").ErrorResponse>;
514
+ export declare const sign_message_by_id_command = "sign_message_by_id";
515
+ export declare type sign_message_by_id_command = typeof sign_message_by_id_command;
516
+ export declare type TSignMessageByIdRequest = {
517
+ id: str;
518
+ message: str;
519
+ };
520
+ export declare type TSignMessageByIdResponse = {
521
+ success: False;
522
+ error: str;
523
+ } | {
524
+ success: True;
525
+ pubkey: str;
526
+ signature: str;
527
+ };
528
+ export declare function sign_message_by_id(agent: TRPCAgent, data: TSignMessageByIdRequest): Promise<TSignMessageByIdResponse | import("../../../rpc").ErrorResponse>;
458
529
  export declare const get_cat_list_command = "get_cat_list";
459
530
  export declare type get_cat_list_command = typeof get_cat_list_command;
460
531
  export declare type TGetCatListResponse = {
461
532
  cat_list: CAT[];
462
533
  };
463
- export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse>;
534
+ export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse | import("../../../rpc").ErrorResponse>;
464
535
  export declare const cat_set_name_command = "cat_set_name";
465
536
  export declare type cat_set_name_command = typeof cat_set_name_command;
466
537
  export declare type TCatSetNameRequest = {
@@ -470,7 +541,7 @@ export declare type TCatSetNameRequest = {
470
541
  export declare type TCatSetNameResponse = {
471
542
  wallet_id: uint32;
472
543
  };
473
- export declare function cat_set_name(agent: TRPCAgent, data: TCatSetNameRequest): Promise<TCatSetNameResponse>;
544
+ export declare function cat_set_name(agent: TRPCAgent, data: TCatSetNameRequest): Promise<TCatSetNameResponse | import("../../../rpc").ErrorResponse>;
474
545
  export declare const cat_asset_id_to_name_command = "cat_asset_id_to_name";
475
546
  export declare type cat_asset_id_to_name_command = typeof cat_asset_id_to_name_command;
476
547
  export declare type TCatAssetIdToNameRequest = {
@@ -480,7 +551,7 @@ export declare type TCatAssetIdToNameResponse = {
480
551
  wallet_id: Optional<uint32>;
481
552
  name: str;
482
553
  };
483
- export declare function cat_asset_id_to_name(agent: TRPCAgent, data: TCatAssetIdToNameRequest): Promise<TCatAssetIdToNameResponse>;
554
+ export declare function cat_asset_id_to_name(agent: TRPCAgent, data: TCatAssetIdToNameRequest): Promise<TCatAssetIdToNameResponse | import("../../../rpc").ErrorResponse>;
484
555
  export declare const cat_get_name_command = "cat_get_name";
485
556
  export declare type cat_get_name_command = typeof cat_get_name_command;
486
557
  export declare type TCatGetNameRequest = {
@@ -490,7 +561,7 @@ export declare type TCatGetNameResponse = {
490
561
  wallet_id: uint32;
491
562
  name: str;
492
563
  };
493
- export declare function cat_get_name(agent: TRPCAgent, data: TCatGetNameRequest): Promise<TCatGetNameResponse>;
564
+ export declare function cat_get_name(agent: TRPCAgent, data: TCatGetNameRequest): Promise<TCatGetNameResponse | import("../../../rpc").ErrorResponse>;
494
565
  export declare const get_stray_cats_command = "get_stray_cats";
495
566
  export declare type get_stray_cats_command = typeof get_stray_cats_command;
496
567
  export declare type TGetStrayCatsResponse = {
@@ -501,7 +572,7 @@ export declare type TGetStrayCatsResponse = {
501
572
  sender_puzzle_hash: str;
502
573
  }>;
503
574
  };
504
- export declare function get_stray_cats(agent: TRPCAgent): Promise<TGetStrayCatsResponse>;
575
+ export declare function get_stray_cats(agent: TRPCAgent): Promise<TGetStrayCatsResponse | import("../../../rpc").ErrorResponse>;
505
576
  export declare const cat_spend_command = "cat_spend";
506
577
  export declare type cat_spend_command = typeof cat_spend_command;
507
578
  export declare type TCatSpendRequest = {
@@ -516,7 +587,7 @@ export declare type TCatSpendResponse = {
516
587
  transaction: TransactionRecordConvenience;
517
588
  transaction_id: TransactionRecord["name"];
518
589
  };
519
- export declare function cat_spend(agent: TRPCAgent, data: TCatSpendRequest): Promise<TCatSpendResponse>;
590
+ export declare function cat_spend(agent: TRPCAgent, data: TCatSpendRequest): Promise<TCatSpendResponse | import("../../../rpc").ErrorResponse>;
520
591
  export declare const cat_get_asset_id_command = "cat_get_asset_id";
521
592
  export declare type cat_get_asset_id_command = typeof cat_get_asset_id_command;
522
593
  export declare type TCatGetAssetIdRequest = {
@@ -526,7 +597,7 @@ export declare type TCatGetAssetIdResponse = {
526
597
  asset_id: str;
527
598
  wallet_id: uint32;
528
599
  };
529
- export declare function cat_get_asset_id(agent: TRPCAgent, data: TCatGetAssetIdRequest): Promise<TCatGetAssetIdResponse>;
600
+ export declare function cat_get_asset_id(agent: TRPCAgent, data: TCatGetAssetIdRequest): Promise<TCatGetAssetIdResponse | import("../../../rpc").ErrorResponse>;
530
601
  export declare const create_offer_for_ids_command = "create_offer_for_ids";
531
602
  export declare type create_offer_for_ids_command = typeof create_offer_for_ids_command;
532
603
  export declare type TCreateOfferForIdsRequest = {
@@ -540,11 +611,12 @@ export declare type TCreateOfferForIdsResponse = {
540
611
  offer: str;
541
612
  trade_record: TradeRecordConvenience;
542
613
  };
543
- export declare function create_offer_for_ids(agent: TRPCAgent, data: TCreateOfferForIdsRequest): Promise<TCreateOfferForIdsResponse>;
614
+ export declare function create_offer_for_ids(agent: TRPCAgent, data: TCreateOfferForIdsRequest): Promise<TCreateOfferForIdsResponse | import("../../../rpc").ErrorResponse>;
544
615
  export declare const get_offer_summary_command = "get_offer_summary";
545
616
  export declare type get_offer_summary_command = typeof get_offer_summary_command;
546
617
  export declare type TGetOfferSummaryRequest = {
547
618
  offer: str;
619
+ advanced?: bool;
548
620
  };
549
621
  export declare type TGetOfferSummaryResponse = {
550
622
  summary: {
@@ -554,7 +626,7 @@ export declare type TGetOfferSummaryResponse = {
554
626
  infos: TDriverDict;
555
627
  };
556
628
  };
557
- export declare function get_offer_summary(agent: TRPCAgent, data: TGetOfferSummaryRequest): Promise<TGetOfferSummaryResponse>;
629
+ export declare function get_offer_summary(agent: TRPCAgent, data: TGetOfferSummaryRequest): Promise<TGetOfferSummaryResponse | import("../../../rpc").ErrorResponse>;
558
630
  export declare const check_offer_validity_command = "check_offer_validity";
559
631
  export declare type check_offer_validity_command = typeof check_offer_validity_command;
560
632
  export declare type TCheckOfferValidityRequest = {
@@ -563,18 +635,19 @@ export declare type TCheckOfferValidityRequest = {
563
635
  export declare type TCheckOfferValidityResponse = {
564
636
  valid: bool;
565
637
  };
566
- export declare function check_offer_validity(agent: TRPCAgent, data: TCheckOfferValidityRequest): Promise<TCheckOfferValidityResponse>;
638
+ export declare function check_offer_validity(agent: TRPCAgent, data: TCheckOfferValidityRequest): Promise<TCheckOfferValidityResponse | import("../../../rpc").ErrorResponse>;
567
639
  export declare const take_offer_command = "take_offer";
568
640
  export declare type take_offer_command = typeof take_offer_command;
569
641
  export declare type TTakeOfferRequest = {
570
642
  offer: str;
571
643
  fee?: uint64;
572
644
  min_coin_amount?: uint64;
645
+ solver?: Record<str, any>;
573
646
  };
574
647
  export declare type TTakeOfferResponse = {
575
648
  trade_record: TradeRecordConvenience;
576
649
  };
577
- export declare function take_offer(agent: TRPCAgent, data: TTakeOfferRequest): Promise<TTakeOfferResponse>;
650
+ export declare function take_offer(agent: TRPCAgent, data: TTakeOfferRequest): Promise<TTakeOfferResponse | import("../../../rpc").ErrorResponse>;
578
651
  export declare const get_offer_command = "get_offer";
579
652
  export declare type get_offer_command = typeof get_offer_command;
580
653
  export declare type TGetOfferRequest = {
@@ -585,7 +658,7 @@ export declare type TGetOfferResponse = {
585
658
  trade_record: TradeRecordConvenience;
586
659
  offer: Optional<str>;
587
660
  };
588
- export declare function get_offer(agent: TRPCAgent, data: TGetOfferRequest): Promise<TGetOfferResponse>;
661
+ export declare function get_offer(agent: TRPCAgent, data: TGetOfferRequest): Promise<TGetOfferResponse | import("../../../rpc").ErrorResponse>;
589
662
  export declare const get_all_offers_command = "get_all_offers";
590
663
  export declare type get_all_offers_command = typeof get_all_offers_command;
591
664
  export declare type TGetAllOffersRequest = {
@@ -602,7 +675,7 @@ export declare type TGetAllOffersResponse = {
602
675
  trade_records: TradeRecordConvenience[];
603
676
  offers: Optional<str[]>;
604
677
  };
605
- export declare function get_all_offers(agent: TRPCAgent, data: TGetAllOffersRequest): Promise<TGetAllOffersResponse>;
678
+ export declare function get_all_offers(agent: TRPCAgent, data: TGetAllOffersRequest): Promise<TGetAllOffersResponse | import("../../../rpc").ErrorResponse>;
606
679
  export declare const get_offers_count_command = "get_offers_count";
607
680
  export declare type get_offers_count_command = typeof get_offers_count_command;
608
681
  export declare type TGetOffersCountResponse = {
@@ -610,7 +683,7 @@ export declare type TGetOffersCountResponse = {
610
683
  my_offers_count: int;
611
684
  taken_offers_count: int;
612
685
  };
613
- export declare function get_offers_count(agent: TRPCAgent): Promise<TGetOffersCountResponse>;
686
+ export declare function get_offers_count(agent: TRPCAgent): Promise<TGetOffersCountResponse | import("../../../rpc").ErrorResponse>;
614
687
  export declare const cancel_offer_command = "cancel_offer";
615
688
  export declare type cancel_offer_command = typeof cancel_offer_command;
616
689
  export declare type TCancelOfferRequest = {
@@ -619,7 +692,7 @@ export declare type TCancelOfferRequest = {
619
692
  fee?: uint64;
620
693
  };
621
694
  export declare type TCancelOfferResponse = {};
622
- export declare function cancel_offer(agent: TRPCAgent, data: TCancelOfferRequest): Promise<TCancelOfferResponse>;
695
+ export declare function cancel_offer(agent: TRPCAgent, data: TCancelOfferRequest): Promise<TCancelOfferResponse | import("../../../rpc").ErrorResponse>;
623
696
  export declare const cancel_offers_command = "cancel_offers";
624
697
  export declare type cancel_offers_command = typeof cancel_offers_command;
625
698
  export declare type TCancelOffersRequest = {
@@ -632,7 +705,7 @@ export declare type TCancelOffersRequest = {
632
705
  export declare type TCancelOffersResponse = {
633
706
  success: True;
634
707
  };
635
- export declare function cancel_offers(agent: TRPCAgent, data: TCancelOffersRequest): Promise<TCancelOffersResponse>;
708
+ export declare function cancel_offers(agent: TRPCAgent, data: TCancelOffersRequest): Promise<TCancelOffersResponse | import("../../../rpc").ErrorResponse>;
636
709
  export declare const did_set_wallet_name_command = "did_set_wallet_name";
637
710
  export declare type did_set_wallet_name_command = typeof did_set_wallet_name_command;
638
711
  export declare type TDidSetWalletNameRequest = {
@@ -646,7 +719,7 @@ export declare type TDidSetWalletNameResponse = {
646
719
  success: False;
647
720
  error: str;
648
721
  };
649
- export declare function did_set_wallet_name(agent: TRPCAgent, data: TDidSetWalletNameRequest): Promise<TDidSetWalletNameResponse>;
722
+ export declare function did_set_wallet_name(agent: TRPCAgent, data: TDidSetWalletNameRequest): Promise<TDidSetWalletNameResponse | import("../../../rpc").ErrorResponse>;
650
723
  export declare const did_get_wallet_name_command = "did_get_wallet_name";
651
724
  export declare type did_get_wallet_name_command = typeof did_get_wallet_name_command;
652
725
  export declare type TDidGetWalletNameRequest = {
@@ -657,7 +730,7 @@ export declare type TDidGetWalletNameResponse = {
657
730
  wallet_id: uint32;
658
731
  name: str;
659
732
  };
660
- export declare function did_get_wallet_name(agent: TRPCAgent, data: TDidGetWalletNameRequest): Promise<TDidGetWalletNameResponse>;
733
+ export declare function did_get_wallet_name(agent: TRPCAgent, data: TDidGetWalletNameRequest): Promise<TDidGetWalletNameResponse | import("../../../rpc").ErrorResponse>;
661
734
  export declare const did_update_recovery_ids_command = "did_update_recovery_ids";
662
735
  export declare type did_update_recovery_ids_command = typeof did_update_recovery_ids_command;
663
736
  export declare type TDidUpdateRecoveryIdsRequest = {
@@ -668,7 +741,7 @@ export declare type TDidUpdateRecoveryIdsRequest = {
668
741
  export declare type TDidUpdateRecoveryIdsResponse = {
669
742
  success: bool;
670
743
  };
671
- export declare function did_update_recovery_ids(agent: TRPCAgent, data: TDidUpdateRecoveryIdsRequest): Promise<TDidUpdateRecoveryIdsResponse>;
744
+ export declare function did_update_recovery_ids(agent: TRPCAgent, data: TDidUpdateRecoveryIdsRequest): Promise<TDidUpdateRecoveryIdsResponse | import("../../../rpc").ErrorResponse>;
672
745
  export declare const did_update_metadata_command = "did_update_metadata";
673
746
  export declare type did_update_metadata_command = typeof did_update_metadata_command;
674
747
  export declare type TDidUpdateMetadataRequest = {
@@ -684,7 +757,7 @@ export declare type TDidUpdateMetadataResponse = {
684
757
  success: False;
685
758
  error: str;
686
759
  };
687
- export declare function did_update_metadata(agent: TRPCAgent, data: TDidUpdateMetadataRequest): Promise<TDidUpdateMetadataResponse>;
760
+ export declare function did_update_metadata(agent: TRPCAgent, data: TDidUpdateMetadataRequest): Promise<TDidUpdateMetadataResponse | import("../../../rpc").ErrorResponse>;
688
761
  export declare const did_spend_command = "did_spend";
689
762
  export declare type did_spend_command = typeof did_spend_command;
690
763
  export declare type TDidSpendRequest = {
@@ -694,7 +767,7 @@ export declare type TDidSpendRequest = {
694
767
  export declare type TDidSpendResponse = {
695
768
  success: bool;
696
769
  };
697
- export declare function did_spend(agent: TRPCAgent, data: TDidSpendRequest): Promise<TDidSpendResponse>;
770
+ export declare function did_spend(agent: TRPCAgent, data: TDidSpendRequest): Promise<TDidSpendResponse | import("../../../rpc").ErrorResponse>;
698
771
  export declare const did_get_pubkey_command = "did_get_pubkey";
699
772
  export declare type did_get_pubkey_command = typeof did_get_pubkey_command;
700
773
  export declare type TDidGetPubkeyRequest = {
@@ -704,7 +777,7 @@ export declare type TDidGetPubkeyResponse = {
704
777
  success: bool;
705
778
  pubkey: str;
706
779
  };
707
- export declare function did_get_pubkey(agent: TRPCAgent): Promise<TDidGetPubkeyResponse>;
780
+ export declare function did_get_pubkey(agent: TRPCAgent): Promise<TDidGetPubkeyResponse | import("../../../rpc").ErrorResponse>;
708
781
  export declare const did_get_did_command = "did_get_did";
709
782
  export declare type did_get_did_command = typeof did_get_did_command;
710
783
  export declare type TDidGetDidRequest = {
@@ -716,7 +789,7 @@ export declare type TDidGetDidResponse = {
716
789
  my_did: str;
717
790
  coin_id?: bytes32;
718
791
  };
719
- export declare function did_get_did(agent: TRPCAgent, data: TDidGetDidRequest): Promise<TDidGetDidResponse>;
792
+ export declare function did_get_did(agent: TRPCAgent, data: TDidGetDidRequest): Promise<TDidGetDidResponse | import("../../../rpc").ErrorResponse>;
720
793
  export declare const did_recovery_spend_command = "did_recovery_spend";
721
794
  export declare type did_recovery_spend_command = typeof did_recovery_spend_command;
722
795
  export declare type TDidRecoverySpendRequest = {
@@ -731,7 +804,7 @@ export declare type TDidRecoverySpendResponse = {
731
804
  } | {
732
805
  success: False;
733
806
  };
734
- export declare function did_recovery_spend(agent: TRPCAgent, data: TDidRecoverySpendRequest): Promise<TDidRecoverySpendResponse>;
807
+ export declare function did_recovery_spend(agent: TRPCAgent, data: TDidRecoverySpendRequest): Promise<TDidRecoverySpendResponse | import("../../../rpc").ErrorResponse>;
735
808
  export declare const did_get_recovery_list_command = "did_get_recovery_list";
736
809
  export declare type did_get_recovery_list_command = typeof did_get_recovery_list_command;
737
810
  export declare type TDidGetRecoveryListRequest = {
@@ -743,7 +816,7 @@ export declare type TDidGetRecoveryListResponse = {
743
816
  recovery_list: str[];
744
817
  num_required: uint64;
745
818
  };
746
- export declare function did_get_recovery_list(agent: TRPCAgent, data: TDidGetRecoveryListRequest): Promise<TDidGetRecoveryListResponse>;
819
+ export declare function did_get_recovery_list(agent: TRPCAgent, data: TDidGetRecoveryListRequest): Promise<TDidGetRecoveryListResponse | import("../../../rpc").ErrorResponse>;
747
820
  export declare const did_get_metadata_command = "did_get_metadata";
748
821
  export declare type did_get_metadata_command = typeof did_get_metadata_command;
749
822
  export declare type TDidGetMetadataRequest = {
@@ -754,7 +827,7 @@ export declare type TDidGetMetadataResponse = {
754
827
  wallet_id: uint32;
755
828
  metadata: Record<str, str>;
756
829
  };
757
- export declare function did_get_metadata(agent: TRPCAgent, data: TDidGetMetadataRequest): Promise<TDidGetMetadataResponse>;
830
+ export declare function did_get_metadata(agent: TRPCAgent, data: TDidGetMetadataRequest): Promise<TDidGetMetadataResponse | import("../../../rpc").ErrorResponse>;
758
831
  export declare const did_create_attest_command = "did_create_attest";
759
832
  export declare type did_create_attest_command = typeof did_create_attest_command;
760
833
  export declare type TDidCreateAttestRequest = {
@@ -770,7 +843,7 @@ export declare type TDidCreateAttestResponse = {
770
843
  } | {
771
844
  success: False;
772
845
  };
773
- export declare function did_create_attest(agent: TRPCAgent, data: TDidCreateAttestRequest): Promise<TDidCreateAttestResponse>;
846
+ export declare function did_create_attest(agent: TRPCAgent, data: TDidCreateAttestRequest): Promise<TDidCreateAttestResponse | import("../../../rpc").ErrorResponse>;
774
847
  export declare const did_get_information_needed_for_recovery_command = "did_get_information_needed_for_recovery";
775
848
  export declare type did_get_information_needed_for_recovery_command = typeof did_get_information_needed_for_recovery_command;
776
849
  export declare type TDidGetInformationNeededForRecoveryRequest = {
@@ -785,7 +858,7 @@ export declare type TDidGetInformationNeededForRecoveryResponse = {
785
858
  pubkey: Optional<bytes>;
786
859
  backup_dids: bytes[];
787
860
  };
788
- export declare function did_get_information_needed_for_recovery(agent: TRPCAgent, data: TDidGetInformationNeededForRecoveryRequest): Promise<TDidGetInformationNeededForRecoveryResponse>;
861
+ export declare function did_get_information_needed_for_recovery(agent: TRPCAgent, data: TDidGetInformationNeededForRecoveryRequest): Promise<TDidGetInformationNeededForRecoveryResponse | import("../../../rpc").ErrorResponse>;
789
862
  export declare const did_get_current_coin_info_command = "did_get_current_coin_info";
790
863
  export declare type did_get_current_coin_info_command = typeof did_get_current_coin_info_command;
791
864
  export declare type TDidGetCurrentCoinInfoRequest = {
@@ -799,7 +872,7 @@ export declare type TDidGetCurrentCoinInfoResponse = {
799
872
  did_innerpuz: bytes32;
800
873
  did_amount: uint64;
801
874
  };
802
- export declare function did_get_current_coin_info(agent: TRPCAgent, data: TDidGetCurrentCoinInfoRequest): Promise<TDidGetCurrentCoinInfoResponse>;
875
+ export declare function did_get_current_coin_info(agent: TRPCAgent, data: TDidGetCurrentCoinInfoRequest): Promise<TDidGetCurrentCoinInfoResponse | import("../../../rpc").ErrorResponse>;
803
876
  export declare const did_create_backup_file_command = "did_create_backup_file";
804
877
  export declare type did_create_backup_file_command = typeof did_create_backup_file_command;
805
878
  export declare type TDidCreateBackupFileRequest = {
@@ -810,7 +883,7 @@ export declare type TDidCreateBackupFileResponse = {
810
883
  success: True;
811
884
  backup_data: str;
812
885
  };
813
- export declare function did_create_backup_file(agent: TRPCAgent, data: TDidCreateBackupFileRequest): Promise<TDidCreateBackupFileResponse>;
886
+ export declare function did_create_backup_file(agent: TRPCAgent, data: TDidCreateBackupFileRequest): Promise<TDidCreateBackupFileResponse | import("../../../rpc").ErrorResponse>;
814
887
  export declare const did_transfer_did_command = "did_transfer_did";
815
888
  export declare type did_transfer_did_command = typeof did_transfer_did_command;
816
889
  export declare type TDidTransferDidRequest = {
@@ -824,7 +897,7 @@ export declare type TDidTransferDidResponse = {
824
897
  transaction: TransactionRecordConvenience;
825
898
  transaction_id: bytes32;
826
899
  };
827
- export declare function did_transfer_did(agent: TRPCAgent, data: TDidTransferDidRequest): Promise<TDidTransferDidResponse>;
900
+ export declare function did_transfer_did(agent: TRPCAgent, data: TDidTransferDidRequest): Promise<TDidTransferDidResponse | import("../../../rpc").ErrorResponse>;
828
901
  export declare const nft_mint_nft_command = "nft_mint_nft";
829
902
  export declare type nft_mint_nft_command = typeof nft_mint_nft_command;
830
903
  export declare type TNftMintNftRequest = {
@@ -848,23 +921,26 @@ export declare type TNftMintNftResponse = {
848
921
  success: True;
849
922
  spend_bundle: SpendBundle;
850
923
  };
851
- export declare function nft_mint_nft(agent: TRPCAgent, data: TNftMintNftRequest): Promise<TNftMintNftResponse>;
924
+ export declare function nft_mint_nft(agent: TRPCAgent, data: TNftMintNftRequest): Promise<TNftMintNftResponse | import("../../../rpc").ErrorResponse>;
852
925
  export declare const nft_get_nfts_command = "nft_get_nfts";
853
926
  export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
854
927
  export declare type TNftGetNftsRequest = {
855
- wallet_id: uint32;
928
+ wallet_id?: uint32;
929
+ start_index?: int;
930
+ num?: int;
931
+ ignore_size_limit?: bool;
856
932
  };
857
933
  export declare type TNftGetNftsResponse = {
858
934
  wallet_id: uint32;
859
935
  success: True;
860
936
  nft_list: NFTInfo[];
861
937
  };
862
- export declare function nft_get_nfts(agent: TRPCAgent, data: TNftGetNftsRequest): Promise<TNftGetNftsResponse>;
938
+ export declare function nft_get_nfts(agent: TRPCAgent, data: TNftGetNftsRequest): Promise<TNftGetNftsResponse | import("../../../rpc").ErrorResponse>;
863
939
  export declare const nft_set_nft_did_command = "nft_set_nft_did";
864
940
  export declare type nft_set_nft_did_command = typeof nft_set_nft_did_command;
865
941
  export declare type TNftSetNftDidRequest = {
866
942
  wallet_id: uint32;
867
- did_id: str;
943
+ did_id?: str;
868
944
  nft_coin_id: str;
869
945
  fee?: uint64;
870
946
  };
@@ -876,7 +952,7 @@ export declare type TNftSetNftDidResponse = {
876
952
  success: False;
877
953
  error: str;
878
954
  };
879
- export declare function nft_set_nft_did(agent: TRPCAgent, data: TNftSetNftDidRequest): Promise<TNftSetNftDidResponse>;
955
+ export declare function nft_set_nft_did(agent: TRPCAgent, data: TNftSetNftDidRequest): Promise<TNftSetNftDidResponse | import("../../../rpc").ErrorResponse>;
880
956
  export declare const nft_get_by_did_command = "nft_get_by_did";
881
957
  export declare type nft_get_by_did_command = typeof nft_get_by_did_command;
882
958
  export declare type TNftGetByDidRequest = {
@@ -889,7 +965,7 @@ export declare type TNftGetByDidResponse = {
889
965
  success: False;
890
966
  error: str;
891
967
  };
892
- export declare function nft_get_by_did(agent: TRPCAgent, data: TNftGetByDidRequest): Promise<TNftGetByDidResponse>;
968
+ export declare function nft_get_by_did(agent: TRPCAgent, data: TNftGetByDidRequest): Promise<TNftGetByDidResponse | import("../../../rpc").ErrorResponse>;
893
969
  export declare const nft_get_wallet_did_command = "nft_get_wallet_did";
894
970
  export declare type nft_get_wallet_did_command = typeof nft_get_wallet_did_command;
895
971
  export declare type TNftGetWalletDidRequest = {
@@ -902,7 +978,7 @@ export declare type TNftGetWalletDidResponse = {
902
978
  success: False;
903
979
  error: str;
904
980
  };
905
- export declare function nft_get_wallet_did(agent: TRPCAgent, data: TNftGetWalletDidRequest): Promise<TNftGetWalletDidResponse>;
981
+ export declare function nft_get_wallet_did(agent: TRPCAgent, data: TNftGetWalletDidRequest): Promise<TNftGetWalletDidResponse | import("../../../rpc").ErrorResponse>;
906
982
  export declare const nft_get_wallets_with_dids_command = "nft_get_wallets_with_dids";
907
983
  export declare type nft_get_wallets_with_dids_command = typeof nft_get_wallets_with_dids_command;
908
984
  export declare type TNftGetWalletsWithDidsResponse = {
@@ -913,7 +989,7 @@ export declare type TNftGetWalletsWithDidsResponse = {
913
989
  did_wallet_id: uint32;
914
990
  }>;
915
991
  };
916
- export declare function nft_get_wallets_with_dids(agent: TRPCAgent): Promise<TNftGetWalletsWithDidsResponse>;
992
+ export declare function nft_get_wallets_with_dids(agent: TRPCAgent): Promise<TNftGetWalletsWithDidsResponse | import("../../../rpc").ErrorResponse>;
917
993
  export declare const nft_set_nft_status_command = "nft_set_nft_status";
918
994
  export declare type nft_set_nft_status_command = typeof nft_set_nft_status_command;
919
995
  export declare type TNftSetNftStatusRequest = {
@@ -927,7 +1003,7 @@ export declare type TNftSetNftStatusResponse = {
927
1003
  success: False;
928
1004
  error: str;
929
1005
  };
930
- export declare function nft_set_nft_status(agent: TRPCAgent, data: TNftSetNftStatusRequest): Promise<TNftSetNftStatusResponse>;
1006
+ export declare function nft_set_nft_status(agent: TRPCAgent, data: TNftSetNftStatusRequest): Promise<TNftSetNftStatusResponse | import("../../../rpc").ErrorResponse>;
931
1007
  export declare const nft_transfer_nft_command = "nft_transfer_nft";
932
1008
  export declare type nft_transfer_nft_command = typeof nft_transfer_nft_command;
933
1009
  export declare type TNftTransferNftRequest = {
@@ -944,12 +1020,13 @@ export declare type TNftTransferNftResponse = {
944
1020
  success: False;
945
1021
  error: str;
946
1022
  };
947
- export declare function nft_transfer_nft(agent: TRPCAgent, data: TNftTransferNftRequest): Promise<TNftTransferNftResponse>;
1023
+ export declare function nft_transfer_nft(agent: TRPCAgent, data: TNftTransferNftRequest): Promise<TNftTransferNftResponse | import("../../../rpc").ErrorResponse>;
948
1024
  export declare const nft_get_info_command = "nft_get_info";
949
1025
  export declare type nft_get_info_command = typeof nft_get_info_command;
950
1026
  export declare type TNftGetInfoRequest = {
951
1027
  coin_id: str;
952
1028
  latest?: bool;
1029
+ ignore_size_limit?: bool;
953
1030
  };
954
1031
  export declare type TNftGetInfoResponse = {
955
1032
  success: True;
@@ -958,7 +1035,7 @@ export declare type TNftGetInfoResponse = {
958
1035
  success: False;
959
1036
  error: str;
960
1037
  };
961
- export declare function nft_get_info(agent: TRPCAgent, data: TNftGetInfoRequest): Promise<TNftGetInfoResponse>;
1038
+ export declare function nft_get_info(agent: TRPCAgent, data: TNftGetInfoRequest): Promise<TNftGetInfoResponse | import("../../../rpc").ErrorResponse>;
962
1039
  export declare const nft_add_uri_command = "nft_add_uri";
963
1040
  export declare type nft_add_uri_command = typeof nft_add_uri_command;
964
1041
  export declare type TNftAddUriRequest = {
@@ -972,11 +1049,63 @@ export declare type TNftAddUriResponse = {
972
1049
  success: True;
973
1050
  wallet_id: uint32;
974
1051
  spend_bundle: SpendBundle;
975
- } | {
1052
+ };
1053
+ export declare function nft_add_uri(agent: TRPCAgent, data: TNftAddUriRequest): Promise<TNftAddUriResponse | import("../../../rpc").ErrorResponse>;
1054
+ export declare const nft_calculate_royalties_command = "nft_calculate_royalties";
1055
+ export declare type nft_calculate_royalties_command = typeof nft_calculate_royalties_command;
1056
+ export declare type TNftCalculateRoyaltiesRequest = {
1057
+ royalty_assets?: Array<{
1058
+ asset: str;
1059
+ royalty_address: str;
1060
+ royalty_percentage: uint16;
1061
+ }>;
1062
+ fungible_assets?: Array<{
1063
+ asset: str;
1064
+ amount: uint64;
1065
+ }>;
1066
+ };
1067
+ export declare type TNftCalculateRoyaltiesResponse = Record<str, Array<{
1068
+ asset: str;
1069
+ address: str;
1070
+ amount: uint64;
1071
+ }>>;
1072
+ export declare function nft_calculate_royalties(agent: TRPCAgent, data: TNftCalculateRoyaltiesRequest): Promise<TNftCalculateRoyaltiesResponse | import("../../../rpc").ErrorResponse>;
1073
+ export declare const nft_mint_bulk_command = "nft_mint_bulk";
1074
+ export declare type nft_mint_bulk_command = typeof nft_mint_bulk_command;
1075
+ export declare type TNftMintBulkRequest = {
1076
+ wallet_id: uint32;
1077
+ royalty_address?: str;
1078
+ royalty_percentage?: uint16;
1079
+ metadata_list: Array<{
1080
+ uris: str[];
1081
+ meta_uris: str[];
1082
+ license_uris: str[];
1083
+ hash: str;
1084
+ edition_number?: uint64;
1085
+ edition_total?: uint64;
1086
+ meta_hash?: str;
1087
+ license_hash?: str;
1088
+ }>;
1089
+ target_list?: str[];
1090
+ mint_number_start?: int;
1091
+ mint_total?: int;
1092
+ xch_coins?: Coin[];
1093
+ xch_change_target?: str;
1094
+ new_innerpuzhash?: str;
1095
+ new_p2_puzhash?: str;
1096
+ did_coin?: Coin;
1097
+ did_lineage_parent?: str;
1098
+ mint_from_did?: bool;
1099
+ fee?: uint64;
1100
+ };
1101
+ export declare type TNftMintBulkResponse = {
976
1102
  success: False;
977
1103
  error: str;
1104
+ } | {
1105
+ success: True;
1106
+ spend_bundle: SpendBundle;
978
1107
  };
979
- export declare function nft_add_uri(agent: TRPCAgent, data: TNftAddUriRequest): Promise<TNftAddUriResponse>;
1108
+ export declare function nft_mint_bulk(agent: TRPCAgent, data: TNftMintBulkRequest): Promise<TNftMintBulkResponse | import("../../../rpc").ErrorResponse>;
980
1109
  export declare const rl_set_user_info_command = "rl_set_user_info";
981
1110
  export declare type rl_set_user_info_command = typeof rl_set_user_info_command;
982
1111
  export declare type TRlSetUserInfoRequest = {
@@ -991,7 +1120,7 @@ export declare type TRlSetUserInfoRequest = {
991
1120
  admin_pubkey: str;
992
1121
  };
993
1122
  export declare type TRlSetUserInfoResponse = {};
994
- export declare function rl_set_user_info(agent: TRPCAgent, data: TRlSetUserInfoRequest): Promise<TRlSetUserInfoResponse>;
1123
+ export declare function rl_set_user_info(agent: TRPCAgent, data: TRlSetUserInfoRequest): Promise<TRlSetUserInfoResponse | import("../../../rpc").ErrorResponse>;
995
1124
  export declare const send_clawback_transaction_command = "send_clawback_transaction:";
996
1125
  export declare type send_clawback_transaction_command = typeof send_clawback_transaction_command;
997
1126
  export declare type TSendClawbackTransactionRequest = {
@@ -1002,7 +1131,7 @@ export declare type TSendClawbackTransactionResponse = {
1002
1131
  transaction: TransactionRecord;
1003
1132
  transaction_id: TransactionRecord["name"];
1004
1133
  };
1005
- export declare function send_clawback_transaction(agent: TRPCAgent, data: TSendClawbackTransactionRequest): Promise<TSendClawbackTransactionResponse>;
1134
+ export declare function send_clawback_transaction(agent: TRPCAgent, data: TSendClawbackTransactionRequest): Promise<TSendClawbackTransactionResponse | import("../../../rpc").ErrorResponse>;
1006
1135
  export declare const add_rate_limited_funds_command = "add_rate_limited_funds:";
1007
1136
  export declare type add_rate_limited_funds_command = typeof add_rate_limited_funds_command;
1008
1137
  export declare type TAddRateLimitedFundsRequest = {
@@ -1013,7 +1142,7 @@ export declare type TAddRateLimitedFundsRequest = {
1013
1142
  export declare type TAddRateLimitedFundsResponse = {
1014
1143
  status: "SUCCESS";
1015
1144
  };
1016
- export declare function add_rate_limited_funds(agent: TRPCAgent, data: TAddRateLimitedFundsRequest): Promise<TAddRateLimitedFundsResponse>;
1145
+ export declare function add_rate_limited_funds(agent: TRPCAgent, data: TAddRateLimitedFundsRequest): Promise<TAddRateLimitedFundsResponse | import("../../../rpc").ErrorResponse>;
1017
1146
  export declare const pw_join_pool_command = "pw_join_pool";
1018
1147
  export declare type pw_join_pool_command = typeof pw_join_pool_command;
1019
1148
  export declare type TPwJoinPoolRequest = {
@@ -1031,7 +1160,7 @@ export declare type TPwJoinPoolResponse = {
1031
1160
  success: False;
1032
1161
  error: "not_initialized";
1033
1162
  };
1034
- export declare function pw_join_pool(agent: TRPCAgent, data: TPwJoinPoolRequest): Promise<TPwJoinPoolResponse>;
1163
+ export declare function pw_join_pool(agent: TRPCAgent, data: TPwJoinPoolRequest): Promise<TPwJoinPoolResponse | import("../../../rpc").ErrorResponse>;
1035
1164
  export declare const pw_self_pool_command = "pw_self_pool";
1036
1165
  export declare type pw_self_pool_command = typeof pw_self_pool_command;
1037
1166
  export declare type TPwSelfPoolRequest = {
@@ -1043,7 +1172,7 @@ export declare type TPwSelfPoolResponse = {
1043
1172
  transaction: TransactionRecord;
1044
1173
  fee_transaction: Optional<TransactionRecord>;
1045
1174
  };
1046
- export declare function pw_self_pool(agent: TRPCAgent, data: TPwSelfPoolRequest): Promise<TPwSelfPoolResponse>;
1175
+ export declare function pw_self_pool(agent: TRPCAgent, data: TPwSelfPoolRequest): Promise<TPwSelfPoolResponse | import("../../../rpc").ErrorResponse>;
1047
1176
  export declare const pw_absorb_rewards_command = "pw_absorb_rewards";
1048
1177
  export declare type pw_absorb_rewards_command = typeof pw_absorb_rewards_command;
1049
1178
  export declare type TPwAbsorbRewardsRequest = {
@@ -1056,7 +1185,7 @@ export declare type TPwAbsorbRewardsResponse = {
1056
1185
  transaction: TransactionRecord;
1057
1186
  fee_transaction: Optional<TransactionRecord>;
1058
1187
  };
1059
- export declare function pw_absorb_rewards(agent: TRPCAgent, data: TPwAbsorbRewardsRequest): Promise<TPwAbsorbRewardsResponse>;
1188
+ export declare function pw_absorb_rewards(agent: TRPCAgent, data: TPwAbsorbRewardsRequest): Promise<TPwAbsorbRewardsResponse | import("../../../rpc").ErrorResponse>;
1060
1189
  export declare const pw_status_command = "pw_status";
1061
1190
  export declare type pw_status_command = typeof pw_status_command;
1062
1191
  export declare type TPwStatusRequest = {
@@ -1066,4 +1195,123 @@ export declare type TPwStatusResponse = {
1066
1195
  state: PoolWalletInfo;
1067
1196
  unconfirmed_transactions: TransactionRecord[];
1068
1197
  };
1069
- export declare function pw_status(agent: TRPCAgent, data: TPwStatusRequest): Promise<TPwStatusResponse>;
1198
+ export declare function pw_status(agent: TRPCAgent, data: TPwStatusRequest): Promise<TPwStatusResponse | import("../../../rpc").ErrorResponse>;
1199
+ export declare const create_new_dl_command = "create_new_dl";
1200
+ export declare type create_new_dl_command = typeof create_new_dl_command;
1201
+ export declare type TCreateNewDlRequest = {
1202
+ root: str;
1203
+ fee?: uint64;
1204
+ };
1205
+ export declare type TCreateNewDlResponse = {
1206
+ success: False;
1207
+ error: str;
1208
+ } | {
1209
+ success: True;
1210
+ transactions: TransactionRecordConvenience[];
1211
+ launcher_id: bytes32;
1212
+ };
1213
+ export declare function create_new_dl(agent: TRPCAgent, data: TCreateNewDlRequest): Promise<TCreateNewDlResponse | import("../../../rpc").ErrorResponse>;
1214
+ export declare const dl_track_new_command = "dl_track_new";
1215
+ export declare type dl_track_new_command = typeof dl_track_new_command;
1216
+ export declare type TDlTrackNewRequest = {
1217
+ launcher_id: str;
1218
+ };
1219
+ export declare type TDlTrackNewResponse = {};
1220
+ export declare function dl_track_new(agent: TRPCAgent, data: TDlTrackNewRequest): Promise<TDlTrackNewResponse | import("../../../rpc").ErrorResponse>;
1221
+ export declare const dl_stop_tracking_command = "dl_stop_tracking";
1222
+ export declare type dl_stop_tracking_command = typeof dl_stop_tracking_command;
1223
+ export declare type TDlStopTrackingRequest = {
1224
+ launcher_id: str;
1225
+ };
1226
+ export declare type TDlStopTrackingResponse = {};
1227
+ export declare function dl_stop_tracking(agent: TRPCAgent, data: TDlStopTrackingRequest): Promise<TDlStopTrackingResponse | import("../../../rpc").ErrorResponse>;
1228
+ export declare const dl_latest_singleton_command = "dl_latest_singleton";
1229
+ export declare type dl_latest_singleton_command = typeof dl_latest_singleton_command;
1230
+ export declare type TDlLatestSingletonRequest = {
1231
+ launcher_id: str;
1232
+ only_confirmed?: bool;
1233
+ };
1234
+ export declare type TDlLatestSingletonResponse = {
1235
+ singleton: Optional<SingletonRecord>;
1236
+ };
1237
+ export declare function dl_latest_singleton(agent: TRPCAgent, data: TDlLatestSingletonRequest): Promise<TDlLatestSingletonResponse | import("../../../rpc").ErrorResponse>;
1238
+ export declare const dl_singletons_by_root_command = "dl_singletons_by_root";
1239
+ export declare type dl_singletons_by_root_command = typeof dl_singletons_by_root_command;
1240
+ export declare type TDlSingletonsByRootRequest = {
1241
+ launcher_id: str;
1242
+ root: str;
1243
+ };
1244
+ export declare type TDlSingletonsByRootResponse = {
1245
+ singletons: SingletonRecord[];
1246
+ };
1247
+ export declare function dl_singletons_by_root(agent: TRPCAgent, data: TDlSingletonsByRootRequest): Promise<TDlSingletonsByRootResponse | import("../../../rpc").ErrorResponse>;
1248
+ export declare const dl_update_root_command = "dl_update_root";
1249
+ export declare type dl_update_root_command = typeof dl_update_root_command;
1250
+ export declare type TDlUpdateRootRequest = {
1251
+ launcher_id: str;
1252
+ new_root: str;
1253
+ fee?: uint64;
1254
+ };
1255
+ export declare type TDlUpdateRootResponse = {
1256
+ tx_record: TransactionRecordConvenience;
1257
+ };
1258
+ export declare function dl_update_root(agent: TRPCAgent, data: TDlUpdateRootRequest): Promise<TDlUpdateRootResponse | import("../../../rpc").ErrorResponse>;
1259
+ export declare const dl_update_multiple_command = "dl_update_multiple";
1260
+ export declare type dl_update_multiple_command = typeof dl_update_multiple_command;
1261
+ export declare type TDlUpdateMultipleRequest = {
1262
+ updates: Record<str, str>;
1263
+ };
1264
+ export declare type TDlUpdateMultipleResponse = {
1265
+ tx_records: TransactionRecordConvenience[];
1266
+ };
1267
+ export declare function dl_update_multiple(agent: TRPCAgent, data: TDlUpdateMultipleRequest): Promise<TDlUpdateMultipleResponse | import("../../../rpc").ErrorResponse>;
1268
+ export declare const dl_history_command = "dl_history";
1269
+ export declare type dl_history_command = typeof dl_history_command;
1270
+ export declare type TDlHistoryRequest = {
1271
+ min_generation?: uint32;
1272
+ max_generation?: uint32;
1273
+ num_results?: uint32;
1274
+ };
1275
+ export declare type TDlHistoryResponse = {
1276
+ history: SingletonRecord[];
1277
+ count: int;
1278
+ };
1279
+ export declare function dl_history(agent: TRPCAgent, data: TDlHistoryRequest): Promise<TDlHistoryResponse | import("../../../rpc").ErrorResponse>;
1280
+ export declare const dl_owned_singletons_command = "dl_owned_singletons";
1281
+ export declare type dl_owned_singletons_command = typeof dl_owned_singletons_command;
1282
+ export declare type TDlOwnedSingletonsResponse = {
1283
+ singletons: SingletonRecord[];
1284
+ count: int;
1285
+ };
1286
+ export declare function dl_owned_singletons(agent: TRPCAgent): Promise<TDlOwnedSingletonsResponse | import("../../../rpc").ErrorResponse>;
1287
+ export declare const dl_get_mirrors_command = "dl_get_mirrors";
1288
+ export declare type dl_get_mirrors_command = typeof dl_get_mirrors_command;
1289
+ export declare type TDlGetMirrorsRequest = {
1290
+ launcher_id: str;
1291
+ };
1292
+ export declare type TDlGetMirrorsResponse = {
1293
+ mirrors: Mirror[];
1294
+ };
1295
+ export declare function dl_get_mirrors(agent: TRPCAgent, data: TDlGetMirrorsRequest): Promise<TDlGetMirrorsResponse | import("../../../rpc").ErrorResponse>;
1296
+ export declare const dl_new_mirror_command = "dl_new_mirror";
1297
+ export declare type dl_new_mirror_command = typeof dl_new_mirror_command;
1298
+ export declare type TDlNewMirrorRequest = {
1299
+ launcher_id: str;
1300
+ amount: uint64;
1301
+ urls: str[];
1302
+ fee?: uint64;
1303
+ };
1304
+ export declare type TDlNewMirrorResponse = {
1305
+ transactions: TransactionRecordConvenience[];
1306
+ };
1307
+ export declare function dl_new_mirror(agent: TRPCAgent, data: TDlNewMirrorRequest): Promise<TDlNewMirrorResponse | import("../../../rpc").ErrorResponse>;
1308
+ export declare const dl_delete_mirror_command = "dl_delete_mirror";
1309
+ export declare type dl_delete_mirror_command = typeof dl_delete_mirror_command;
1310
+ export declare type TDlDeleteMirrorRequest = {
1311
+ coin_id: str;
1312
+ fee?: uint64;
1313
+ };
1314
+ export declare type TDlDeleteMirrorResponse = {
1315
+ transactions: TransactionRecordConvenience[];
1316
+ };
1317
+ export declare function dl_delete_mirror(agent: TRPCAgent, data: TDlDeleteMirrorRequest): Promise<TDlDeleteMirrorResponse | import("../../../rpc").ErrorResponse>;